Class DeletedMessageView
- Namespace
- idunno.Bluesky.Chat
- Assembly
- idunno.Bluesky.dll
Presents a view over a message that has been deleted.
public sealed record DeletedMessageView : MessageViewBase, IEquatable<View>, IEquatable<MessageViewBase>, IEquatable<DeletedMessageView>Inheritance
Implements
Inherited Members
Constructors
DeletedMessageView(string, string, MessageViewSender, DateTimeOffset)
Creates a new instance of idunno.Bluesky.Chat.DeletedMessageView.
public DeletedMessageView(string id, string revision, MessageViewSender sender, DateTimeOffset sentAt)Parameters
idstring-
The message ID.
revisionstring-
The message revision.
senderMessageViewSender-
A view over the message author.
sentAtDateTimeOffset-
The System.DateTimeOffset the message was sent on.
Exceptions
- ArgumentException
-
Thrown when
idorrevisionis null or whitespace. - ArgumentNullException
-
Thrown when
senderis null.
DeletedMessageView(string, string, MessageViewSender, DateTimeOffset)
Creates a new instance of idunno.Bluesky.Chat.DeletedMessageView.
public DeletedMessageView(string id, string revision, MessageViewSender sender, DateTimeOffset sentAt)Parameters
idstring-
The message ID.
revisionstring-
The message revision.
senderMessageViewSender-
A view over the message author.
sentAtDateTimeOffset-
The System.DateTimeOffset the message was sent on.
Exceptions
- ArgumentException
-
Thrown when
idorrevisionis null or whitespace. - ArgumentNullException
-
Thrown when
senderis null.
DeletedMessageView(string, string, MessageViewSender, DateTimeOffset)
Creates a new instance of idunno.Bluesky.Chat.DeletedMessageView.
public DeletedMessageView(string id, string revision, MessageViewSender sender, DateTimeOffset sentAt)Parameters
idstring-
The message ID.
revisionstring-
The message revision.
senderMessageViewSender-
A view over the message author.
sentAtDateTimeOffset-
The System.DateTimeOffset the message was sent on.
Exceptions
- ArgumentException
-
Thrown when
idorrevisionis null or whitespace. - ArgumentNullException
-
Thrown when
senderis null.
Properties
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
Id
Gets the id of a message.
[JsonInclude]
[JsonRequired]
public string Id { get; init; }Property Value
Id
Gets the id of a message.
[JsonInclude]
[JsonRequired]
public string Id { get; init; }Property Value
Id
Gets the id of a message.
[JsonInclude]
[JsonRequired]
public string Id { get; init; }Property Value
Revision
Gets the revision of a message.
[JsonInclude]
[JsonRequired]
[JsonPropertyName("rev")]
public string Revision { get; init; }Property Value
Revision
Gets the revision of a message.
[JsonInclude]
[JsonRequired]
[JsonPropertyName("rev")]
public string Revision { get; init; }Property Value
Revision
Gets the revision of a message.
[JsonInclude]
[JsonRequired]
[JsonPropertyName("rev")]
public string Revision { get; init; }Property Value
Sender
Gets a view over the message author.
[JsonInclude]
[JsonRequired]
public MessageViewSender Sender { get; init; }Property Value
Sender
Gets a view over the message author.
[JsonInclude]
[JsonRequired]
public MessageViewSender Sender { get; init; }Property Value
Sender
Gets a view over the message author.
[JsonInclude]
[JsonRequired]
public MessageViewSender Sender { get; init; }Property Value
SentAt
Gets the System.DateTimeOffset the message was sent on.
[JsonInclude]
[JsonRequired]
public DateTimeOffset SentAt { get; init; }Property Value
SentAt
Gets the System.DateTimeOffset the message was sent on.
[JsonInclude]
[JsonRequired]
public DateTimeOffset SentAt { get; init; }Property Value
SentAt
Gets the System.DateTimeOffset the message was sent on.
[JsonInclude]
[JsonRequired]
public DateTimeOffset SentAt { get; init; }Property Value
Methods
<Clone>$()
public override DeletedMessageView <Clone>$()Returns
<Clone>$()
public override DeletedMessageView <Clone>$()Returns
<Clone>$()
public override DeletedMessageView <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(MessageViewBase?)
public override sealed bool Equals(MessageViewBase? other)Parameters
otherMessageViewBase?
Returns
Equals(DeletedMessageView?)
public bool Equals(DeletedMessageView? other)Parameters
otherDeletedMessageView?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(MessageViewBase?)
public override sealed bool Equals(MessageViewBase? other)Parameters
otherMessageViewBase?
Returns
Equals(DeletedMessageView?)
public bool Equals(DeletedMessageView? other)Parameters
otherDeletedMessageView?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(MessageViewBase?)
public override sealed bool Equals(MessageViewBase? other)Parameters
otherMessageViewBase?
Returns
Equals(DeletedMessageView?)
public bool Equals(DeletedMessageView? other)Parameters
otherDeletedMessageView?
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 ==(DeletedMessageView?, DeletedMessageView?)
public static bool operator ==(DeletedMessageView? left, DeletedMessageView? right)Parameters
leftDeletedMessageView?rightDeletedMessageView?
Returns
operator ==(DeletedMessageView?, DeletedMessageView?)
public static bool operator ==(DeletedMessageView? left, DeletedMessageView? right)Parameters
leftDeletedMessageView?rightDeletedMessageView?
Returns
operator ==(DeletedMessageView?, DeletedMessageView?)
public static bool operator ==(DeletedMessageView? left, DeletedMessageView? right)Parameters
leftDeletedMessageView?rightDeletedMessageView?
Returns
operator !=(DeletedMessageView?, DeletedMessageView?)
public static bool operator !=(DeletedMessageView? left, DeletedMessageView? right)Parameters
leftDeletedMessageView?rightDeletedMessageView?
Returns
operator !=(DeletedMessageView?, DeletedMessageView?)
public static bool operator !=(DeletedMessageView? left, DeletedMessageView? right)Parameters
leftDeletedMessageView?rightDeletedMessageView?
Returns
operator !=(DeletedMessageView?, DeletedMessageView?)
public static bool operator !=(DeletedMessageView? left, DeletedMessageView? right)Parameters
leftDeletedMessageView?rightDeletedMessageView?