Table of Contents

Class Notification

Namespace
idunno.Bluesky.Notifications
Assembly
idunno.Bluesky.dll

A record containing information on a Bluesky notification.

public sealed record Notification : AtProtoRepositoryObject, IEquatable<AtProtoObject>, IEquatable<AtProtoRepositoryObject>, IEquatable<Notification>

Inheritance

AtProtoObject
AtProtoRepositoryObject

Implements

Inherited Members

AtProtoRepositoryObject.ToString()
AtProtoRepositoryObject.GetHashCode()
AtProtoRepositoryObject.Equals(object?)
AtProtoRepositoryObject.Equals(AtProtoObject?)
AtProtoRepositoryObject.Equals(AtProtoRepositoryObject?)
AtProtoRepositoryObject.<Clone>$()
AtProtoRepositoryObject.Uri
AtProtoRepositoryObject.Cid
AtProtoRepositoryObject.StrongReference
AtProtoObject.ToString()
AtProtoObject.GetHashCode()
AtProtoObject.Equals(object?)
AtProtoObject.Equals(AtProtoObject?)
AtProtoObject.<Clone>$()

Properties

Author

Gets the idunno.Bluesky.Actor.ProfileView of the actor that triggered the notification.

[JsonInclude]
[JsonRequired]
public ProfileView Author { get; init; }

Property Value

ProfileView

Author

Gets the idunno.Bluesky.Actor.ProfileView of the actor that triggered the notification.

[JsonInclude]
[JsonRequired]
public ProfileView Author { get; init; }

Property Value

ProfileView

Author

Gets the idunno.Bluesky.Actor.ProfileView of the actor that triggered the notification.

[JsonInclude]
[JsonRequired]
public ProfileView Author { get; init; }

Property Value

ProfileView

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

IndexedAt

Gets the System.DateTimeOffset the notification record was indexed on.

[JsonInclude]
[JsonRequired]
public DateTimeOffset IndexedAt { get; init; }

Property Value

DateTimeOffset

IndexedAt

Gets the System.DateTimeOffset the notification record was indexed on.

[JsonInclude]
[JsonRequired]
public DateTimeOffset IndexedAt { get; init; }

Property Value

DateTimeOffset

IndexedAt

Gets the System.DateTimeOffset the notification record was indexed on.

[JsonInclude]
[JsonRequired]
public DateTimeOffset IndexedAt { get; init; }

Property Value

DateTimeOffset

IsRead

Gets a flag indicating whether the notification has been read by the authenticated user.

[JsonInclude]
[JsonRequired]
public bool IsRead { get; init; }

Property Value

bool

IsRead

Gets a flag indicating whether the notification has been read by the authenticated user.

[JsonInclude]
[JsonRequired]
public bool IsRead { get; init; }

Property Value

bool

IsRead

Gets a flag indicating whether the notification has been read by the authenticated user.

[JsonInclude]
[JsonRequired]
public bool IsRead { get; init; }

Property Value

bool

Labels

Gets a collection of idunno.AtProto.Labels.Labels for the notification.

[JsonInclude]
public IReadOnlyCollection<Label> Labels { get; init; }

Property Value

IReadOnlyCollection<Label>

Labels

Gets a collection of idunno.AtProto.Labels.Labels for the notification.

[JsonInclude]
public IReadOnlyCollection<Label> Labels { get; init; }

Property Value

IReadOnlyCollection<Label>

Labels

Gets a collection of idunno.AtProto.Labels.Labels for the notification.

[JsonInclude]
public IReadOnlyCollection<Label> Labels { get; init; }

Property Value

IReadOnlyCollection<Label>

RawReason

Gets the raw reason for the notification.

[JsonInclude]
[JsonRequired]
[JsonPropertyName("reason")]
public string RawReason { get; init; }

Property Value

string

RawReason

Gets the raw reason for the notification.

[JsonInclude]
[JsonRequired]
[JsonPropertyName("reason")]
public string RawReason { get; init; }

Property Value

string

RawReason

Gets the raw reason for the notification.

[JsonInclude]
[JsonRequired]
[JsonPropertyName("reason")]
public string RawReason { get; init; }

Property Value

string

Reason

Gets the reason for the notification.

[JsonIgnore]
public NotificationReason Reason { get; init; }

Property Value

NotificationReason

Remarks

If the reason is idunno.Bluesky.Notifications.NotificationReason.Unknown the unparsed reason can be accessed via idunno.Bluesky.Notifications.Notification.RawReason.

Reason

Gets the reason for the notification.

[JsonIgnore]
public NotificationReason Reason { get; init; }

Property Value

NotificationReason

Remarks

If the reason is idunno.Bluesky.Notifications.NotificationReason.Unknown the unparsed reason can be accessed via idunno.Bluesky.Notifications.Notification.RawReason.

Reason

Gets the reason for the notification.

[JsonIgnore]
public NotificationReason Reason { get; init; }

Property Value

NotificationReason

Remarks

If the reason is idunno.Bluesky.Notifications.NotificationReason.Unknown the unparsed reason can be accessed via idunno.Bluesky.Notifications.Notification.RawReason.

ReasonSubject

Gets the idunno.AtProto.AtUri of the subject that triggered the notification, if any.

[JsonInclude]
public AtUri? ReasonSubject { get; init; }

Property Value

AtUri?

ReasonSubject

Gets the idunno.AtProto.AtUri of the subject that triggered the notification, if any.

[JsonInclude]
public AtUri? ReasonSubject { get; init; }

Property Value

AtUri?

ReasonSubject

Gets the idunno.AtProto.AtUri of the subject that triggered the notification, if any.

[JsonInclude]
public AtUri? ReasonSubject { get; init; }

Property Value

AtUri?

Record

Gets the underlying idunno.Bluesky.Record.BlueskyRecord for the notification.

[JsonInclude]
public BlueskyRecord Record { get; init; }

Property Value

BlueskyRecord

Record

Gets the underlying idunno.Bluesky.Record.BlueskyRecord for the notification.

[JsonInclude]
public BlueskyRecord Record { get; init; }

Property Value

BlueskyRecord

Record

Gets the underlying idunno.Bluesky.Record.BlueskyRecord for the notification.

[JsonInclude]
public BlueskyRecord Record { get; init; }

Property Value

BlueskyRecord

StarterPack

Gets the starter pack associated with the notification, if any. Present when the notification is for a follow originating from a starter pack.

public StarterPackViewBasic? StarterPack { get; init; }

Property Value

StarterPackViewBasic?

StarterPack

Gets the starter pack associated with the notification, if any. Present when the notification is for a follow originating from a starter pack.

public StarterPackViewBasic? StarterPack { get; init; }

Property Value

StarterPackViewBasic?

StarterPack

Gets the starter pack associated with the notification, if any. Present when the notification is for a follow originating from a starter pack.

public StarterPackViewBasic? StarterPack { get; init; }

Property Value

StarterPackViewBasic?

Methods

<Clone>$()

public override Notification <Clone>$()

Returns

Notification

<Clone>$()

public override Notification <Clone>$()

Returns

Notification

<Clone>$()

public override Notification <Clone>$()

Returns

Notification

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(AtProtoRepositoryObject?)

public override sealed bool Equals(AtProtoRepositoryObject? other)

Parameters

other AtProtoRepositoryObject?

Returns

bool

Equals(Notification?)

public bool Equals(Notification? other)

Parameters

other Notification?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(AtProtoRepositoryObject?)

public override sealed bool Equals(AtProtoRepositoryObject? other)

Parameters

other AtProtoRepositoryObject?

Returns

bool

Equals(Notification?)

public bool Equals(Notification? other)

Parameters

other Notification?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(AtProtoRepositoryObject?)

public override sealed bool Equals(AtProtoRepositoryObject? other)

Parameters

other AtProtoRepositoryObject?

Returns

bool

Equals(Notification?)

public bool Equals(Notification? other)

Parameters

other Notification?

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Notification?, Notification?)

public static bool operator ==(Notification? left, Notification? right)

Parameters

left Notification?
right Notification?

Returns

bool

operator ==(Notification?, Notification?)

public static bool operator ==(Notification? left, Notification? right)

Parameters

left Notification?
right Notification?

Returns

bool

operator ==(Notification?, Notification?)

public static bool operator ==(Notification? left, Notification? right)

Parameters

left Notification?
right Notification?

Returns

bool

operator !=(Notification?, Notification?)

public static bool operator !=(Notification? left, Notification? right)

Parameters

left Notification?
right Notification?

Returns

bool

operator !=(Notification?, Notification?)

public static bool operator !=(Notification? left, Notification? right)

Parameters

left Notification?
right Notification?

Returns

bool

operator !=(Notification?, Notification?)

public static bool operator !=(Notification? left, Notification? right)

Parameters

left Notification?
right Notification?

Returns

bool