> ## 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.

# SourceWorker

> A worker as an HRIS source reports them, keyed by SourceId for reconciliation against the stored worker.

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

**Implements:** `IEquatable<SourceWorker>`

## Constructors

```csharp
public SourceWorker(string SourceId, string? EmployeeId, PersonName LegalName, PersonName PreferredName, IReadOnlyList<WorkerEmail> Emails, IReadOnlyList<WorkerPhone> Phones, WorkerProfile Profile, WorkAuthorization WorkAuthorization, WorkerStatus Status, WorkerLifecycle Lifecycle, WorkerLeave Leave, IReadOnlyList<CustomField> CustomFields, IReadOnlyList<SourceAssignment> Assignments, string? PhotoUrl = null)
```

A worker as an HRIS source reports them, keyed by `SourceId` for reconciliation against the stored worker.

### Parameters

**SourceId** `string` *required*

**EmployeeId** `string` *required*

**LegalName** `PersonName` *required*

**PreferredName** `PersonName` *required*

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

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

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

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

**Profile** `WorkerProfile` *required*

**WorkAuthorization** `WorkAuthorization` *required*

**Status** `WorkerStatus` *required*

**Lifecycle** `WorkerLifecycle` *required*

**Leave** `WorkerLeave` *required*

**CustomFields** `IReadOnlyList\<CustomField\>` *required*

**Type:** `IReadOnlyList<CustomField>`

**Assignments** `IReadOnlyList\<SourceAssignment\>` *required*

**Type:** `IReadOnlyList<SourceAssignment>`

**PhotoUrl** `string`

Where the source serves the worker's photo. The host copies the image into its own storage, and the link itself is never stored.

## Properties

**Assignments** `IReadOnlyList\<SourceAssignment\>` *required*

**Type:** `IReadOnlyList<SourceAssignment>`

**CustomFields** `IReadOnlyList\<CustomField\>` *required*

**Type:** `IReadOnlyList<CustomField>`

**DisplayName** `string` *required*

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

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

**EmployeeId** `string`

**Leave** `WorkerLeave` *required*

**LegalName** `PersonName` *required*

**Lifecycle** `WorkerLifecycle` *required*

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

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

**PhotoUrl** `string`

Where the source serves the worker's photo. The host copies the image into its own storage, and the link itself is never stored.

**PreferredName** `PersonName` *required*

**Profile** `WorkerProfile` *required*

**SourceId** `string` *required*

**Status** `WorkerStatus` *required*

**WorkAuthorization** `WorkAuthorization` *required*

## Methods

### Deconstruct()

```csharp
public void Deconstruct(out string SourceId, out string? EmployeeId, out PersonName LegalName, out PersonName PreferredName, out IReadOnlyList<WorkerEmail> Emails, out IReadOnlyList<WorkerPhone> Phones, out WorkerProfile Profile, out WorkAuthorization WorkAuthorization, out WorkerStatus Status, out WorkerLifecycle Lifecycle, out WorkerLeave Leave, out IReadOnlyList<CustomField> CustomFields, out IReadOnlyList<SourceAssignment> Assignments, out string? PhotoUrl)
```

#### Parameters

**SourceId** `string` *required*

**EmployeeId** `string` *required*

**LegalName** `PersonName` *required*

**PreferredName** `PersonName` *required*

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

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

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

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

**Profile** `WorkerProfile` *required*

**WorkAuthorization** `WorkAuthorization` *required*

**Status** `WorkerStatus` *required*

**Lifecycle** `WorkerLifecycle` *required*

**Leave** `WorkerLeave` *required*

**CustomFields** `IReadOnlyList\<CustomField\>` *required*

**Type:** `IReadOnlyList<CustomField>`

**Assignments** `IReadOnlyList\<SourceAssignment\>` *required*

**Type:** `IReadOnlyList<SourceAssignment>`

**PhotoUrl** `string` *required*

### Equals()

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

#### Parameters

**other** `SourceWorker` *required*

#### Returns

`bool`

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

#### Parameters

**obj** `object` *required*

#### Returns

`bool`

### GetHashCode()

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

#### Returns

`int`

### operator !=()

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

#### Parameters

**left** `SourceWorker` *required*

**right** `SourceWorker` *required*

#### Returns

`bool`

### operator ==()

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

#### Parameters

**left** `SourceWorker` *required*

**right** `SourceWorker` *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.