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

# SourceEvent

> A record a source says changed, identified for dedupe by .

A record a source says changed, identified for dedupe by [EventId](https://klef.ai/docs/connector-sdk/reference/model/sourceevent.md). [Record](https://klef.ai/docs/connector-sdk/reference/model/sourceevent.md) names it as `{ object, id }`; when [Subject](https://klef.ai/docs/connector-sdk/reference/model/sourceevent.md) is an assignment, its id is that of one of the worker's assignments. [Type](https://klef.ai/docs/connector-sdk/reference/model/sourceevent.md), [OccurredAt](https://klef.ai/docs/connector-sdk/reference/model/sourceevent.md) and the source [Account](https://klef.ai/docs/connector-sdk/reference/model/sourceevent.md) it names are as the source wrote them, when it did. An event is a hint: the host reads the record again (rule E1).

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

**Implements:** `IEquatable<SourceEvent>`

## Constructors

```csharp
public SourceEvent(string EventId, ObjectLink Record, string? Type = null, string? OccurredAt = null, string? Account = null, SourceEventSubject Subject = SourceEventSubject.Worker)
```

A record a source says changed, identified for dedupe by [EventId](https://klef.ai/docs/connector-sdk/reference/model/sourceevent.md). [Record](https://klef.ai/docs/connector-sdk/reference/model/sourceevent.md) names it as `{ object, id }`; when [Subject](https://klef.ai/docs/connector-sdk/reference/model/sourceevent.md) is an assignment, its id is that of one of the worker's assignments. [Type](https://klef.ai/docs/connector-sdk/reference/model/sourceevent.md), [OccurredAt](https://klef.ai/docs/connector-sdk/reference/model/sourceevent.md) and the source [Account](https://klef.ai/docs/connector-sdk/reference/model/sourceevent.md) it names are as the source wrote them, when it did. An event is a hint: the host reads the record again (rule E1).

### Parameters

**EventId** `string` *required*

**Record** `ObjectLink` *required*

**Type** `string`

**OccurredAt** `string`

**Account** `string`

**Subject** `SourceEventSubject`

## Properties

**Account** `string`

**EventId** `string` *required*

**OccurredAt** `string`

**Record** `ObjectLink` *required*

**Subject** `SourceEventSubject` *required*

**Type** `string`

## Methods

### Deconstruct()

```csharp
public void Deconstruct(out string EventId, out ObjectLink Record, out string? Type, out string? OccurredAt, out string? Account, out SourceEventSubject Subject)
```

#### Parameters

**EventId** `string` *required*

**Record** `ObjectLink` *required*

**Type** `string` *required*

**OccurredAt** `string` *required*

**Account** `string` *required*

**Subject** `SourceEventSubject` *required*

### Equals()

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

#### Parameters

**other** `SourceEvent` *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 !=(SourceEvent? left, SourceEvent? right)
```

#### Parameters

**left** `SourceEvent` *required*

**right** `SourceEvent` *required*

#### Returns

`bool`

### operator ==()

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

#### Parameters

**left** `SourceEvent` *required*

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