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
-
AtProtoObjectAtProtoRepositoryObject
Implements
Inherited Members
-
AtProtoRepositoryObject.ToString()AtProtoRepositoryObject.GetHashCode()AtProtoRepositoryObject.Equals(object?)AtProtoRepositoryObject.Equals(AtProtoObject?)AtProtoRepositoryObject.Equals(AtProtoRepositoryObject?)AtProtoRepositoryObject.<Clone>$()AtProtoRepositoryObject.UriAtProtoRepositoryObject.CidAtProtoRepositoryObject.StrongReferenceAtProtoObject.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
Author
Gets the idunno.Bluesky.Actor.ProfileView of the actor that triggered the notification.
[JsonInclude]
[JsonRequired]
public ProfileView Author { get; init; }Property Value
Author
Gets the idunno.Bluesky.Actor.ProfileView of the actor that triggered the notification.
[JsonInclude]
[JsonRequired]
public ProfileView Author { get; init; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
IndexedAt
Gets the System.DateTimeOffset the notification record was indexed on.
[JsonInclude]
[JsonRequired]
public DateTimeOffset IndexedAt { get; init; }Property Value
IndexedAt
Gets the System.DateTimeOffset the notification record was indexed on.
[JsonInclude]
[JsonRequired]
public DateTimeOffset IndexedAt { get; init; }Property Value
IndexedAt
Gets the System.DateTimeOffset the notification record was indexed on.
[JsonInclude]
[JsonRequired]
public DateTimeOffset IndexedAt { get; init; }Property Value
IsRead
Gets a flag indicating whether the notification has been read by the authenticated user.
[JsonInclude]
[JsonRequired]
public bool IsRead { get; init; }Property Value
IsRead
Gets a flag indicating whether the notification has been read by the authenticated user.
[JsonInclude]
[JsonRequired]
public bool IsRead { get; init; }Property Value
IsRead
Gets a flag indicating whether the notification has been read by the authenticated user.
[JsonInclude]
[JsonRequired]
public bool IsRead { get; init; }Property Value
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
RawReason
Gets the raw reason for the notification.
[JsonInclude]
[JsonRequired]
[JsonPropertyName("reason")]
public string RawReason { get; init; }Property Value
RawReason
Gets the raw reason for the notification.
[JsonInclude]
[JsonRequired]
[JsonPropertyName("reason")]
public string RawReason { get; init; }Property Value
Reason
Gets the reason for the notification.
[JsonIgnore]
public NotificationReason Reason { get; init; }Property Value
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
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
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
Record
Gets the underlying idunno.Bluesky.Record.BlueskyRecord for the notification.
[JsonInclude]
public BlueskyRecord Record { get; init; }Property Value
Record
Gets the underlying idunno.Bluesky.Record.BlueskyRecord for the notification.
[JsonInclude]
public BlueskyRecord Record { get; init; }Property Value
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
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
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
Methods
<Clone>$()
public override Notification <Clone>$()Returns
<Clone>$()
public override Notification <Clone>$()Returns
<Clone>$()
public override Notification <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(AtProtoRepositoryObject?)
public override sealed bool Equals(AtProtoRepositoryObject? other)Parameters
otherAtProtoRepositoryObject?
Returns
Equals(Notification?)
public bool Equals(Notification? other)Parameters
otherNotification?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(AtProtoRepositoryObject?)
public override sealed bool Equals(AtProtoRepositoryObject? other)Parameters
otherAtProtoRepositoryObject?
Returns
Equals(Notification?)
public bool Equals(Notification? other)Parameters
otherNotification?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(AtProtoRepositoryObject?)
public override sealed bool Equals(AtProtoRepositoryObject? other)Parameters
otherAtProtoRepositoryObject?
Returns
Equals(Notification?)
public bool Equals(Notification? other)Parameters
otherNotification?
Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(Notification?, Notification?)
public static bool operator ==(Notification? left, Notification? right)Parameters
leftNotification?rightNotification?
Returns
operator ==(Notification?, Notification?)
public static bool operator ==(Notification? left, Notification? right)Parameters
leftNotification?rightNotification?
Returns
operator ==(Notification?, Notification?)
public static bool operator ==(Notification? left, Notification? right)Parameters
leftNotification?rightNotification?
Returns
operator !=(Notification?, Notification?)
public static bool operator !=(Notification? left, Notification? right)Parameters
leftNotification?rightNotification?
Returns
operator !=(Notification?, Notification?)
public static bool operator !=(Notification? left, Notification? right)Parameters
leftNotification?rightNotification?
Returns
operator !=(Notification?, Notification?)
public static bool operator !=(Notification? left, Notification? right)Parameters
leftNotification?rightNotification?