> ## Documentation Index
> Fetch the complete documentation index at: https://klef.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Communication

> A worker's contact channels for one usage.

```csharp
public sealed record Communication : IEquatable<Communication>
```

**Implements:** `IEquatable<Communication>`

## Constructors

```csharp
public Communication(IReadOnlyList<WorkerEmail> Emails, IReadOnlyList<WorkerPhone> Phones)
```

A worker's contact channels for one usage.

### Parameters

**Emails** `IReadOnlyList\<WorkerEmail\>` *required*

**Type:** `IReadOnlyList<WorkerEmail>`

**Phones** `IReadOnlyList\<WorkerPhone\>` *required*

**Type:** `IReadOnlyList<WorkerPhone>`

## Properties

**Emails** `IReadOnlyList\<WorkerEmail\>` *required*

**Type:** `IReadOnlyList<WorkerEmail>`

**Phones** `IReadOnlyList\<WorkerPhone\>` *required*

**Type:** `IReadOnlyList<WorkerPhone>`

**PrimaryEmail** `WorkerEmail`

**PrimaryPhone** `WorkerPhone`

## Methods

### Deconstruct()

```csharp
public void Deconstruct(out IReadOnlyList<WorkerEmail> Emails, out IReadOnlyList<WorkerPhone> Phones)
```

#### Parameters

**Emails** `IReadOnlyList\<WorkerEmail\>` *required*

**Type:** `IReadOnlyList<WorkerEmail>`

**Phones** `IReadOnlyList\<WorkerPhone\>` *required*

**Type:** `IReadOnlyList<WorkerPhone>`

### Equals()

```csharp
public bool Equals(Communication? other)
```

#### Parameters

**other** `Communication` *required*

#### Returns

`bool`

```csharp
public override bool Equals(object? obj)
```

#### Parameters

**obj** `object` *required*

#### Returns

`bool`

### For()

```csharp
public static Communication For(IEnumerable<WorkerEmail> emails, IEnumerable<WorkerPhone> phones, ContactUsage usage)
```

Projects the channels of one usage from a worker's full contact set.

#### Parameters

**emails** `IEnumerable\<WorkerEmail\>` *required*

**Type:** `IEnumerable<WorkerEmail>`

**phones** `IEnumerable\<WorkerPhone\>` *required*

**Type:** `IEnumerable<WorkerPhone>`

**usage** `ContactUsage` *required*

#### Returns

`Communication`

### GetHashCode()

```csharp
public override int GetHashCode()
```

#### Returns

`int`

### operator !=()

```csharp
public static bool operator !=(Communication? left, Communication? right)
```

#### Parameters

**left** `Communication` *required*

**right** `Communication` *required*

#### Returns

`bool`

### operator ==()

```csharp
public static bool operator ==(Communication? left, Communication? right)
```

#### Parameters

**left** `Communication` *required*

**right** `Communication` *required*

#### Returns

`bool`

### ToString()

```csharp
public override string ToString()
```

#### Returns

`string`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.