Class SystemMessageView
- Namespace
- idunno.Bluesky.Chat
- Assembly
- idunno.Bluesky.dll
Presents a view over a system message.
public sealed record SystemMessageView : MessageViewBase, IEquatable<View>, IEquatable<MessageViewBase>, IEquatable<SystemMessageView>Inheritance
Implements
Inherited Members
Constructors
SystemMessageView(SystemMessage, string, string, DateTimeOffset)
Creates a new instance of idunno.Bluesky.Chat.SystemMessageView.
public SystemMessageView(SystemMessage data, string id, string revision, DateTimeOffset sentAt)Parameters
dataSystemMessage-
The system message data.
idstring-
The message ID.
revisionstring-
The message revision.
sentAtDateTimeOffset-
The System.DateTimeOffset the message was sent on.
Exceptions
- ArgumentException
-
Thrown when
idorrevisionis null or whitespace.
SystemMessageView(SystemMessage, string, string, DateTimeOffset)
Creates a new instance of idunno.Bluesky.Chat.SystemMessageView.
public SystemMessageView(SystemMessage data, string id, string revision, DateTimeOffset sentAt)Parameters
dataSystemMessage-
The system message data.
idstring-
The message ID.
revisionstring-
The message revision.
sentAtDateTimeOffset-
The System.DateTimeOffset the message was sent on.
Exceptions
- ArgumentException
-
Thrown when
idorrevisionis null or whitespace.
SystemMessageView(SystemMessage, string, string, DateTimeOffset)
Creates a new instance of idunno.Bluesky.Chat.SystemMessageView.
public SystemMessageView(SystemMessage data, string id, string revision, DateTimeOffset sentAt)Parameters
dataSystemMessage-
The system message data.
idstring-
The message ID.
revisionstring-
The message revision.
sentAtDateTimeOffset-
The System.DateTimeOffset the message was sent on.
Exceptions
- ArgumentException
-
Thrown when
idorrevisionis null or whitespace.
Properties
Data
Gets the system message data.
[JsonInclude]
[JsonRequired]
public SystemMessage Data { get; init; }Property Value
Data
Gets the system message data.
[JsonInclude]
[JsonRequired]
public SystemMessage Data { get; init; }Property Value
Data
Gets the system message data.
[JsonInclude]
[JsonRequired]
public SystemMessage Data { 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
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
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 SystemMessageView <Clone>$()Returns
<Clone>$()
public override SystemMessageView <Clone>$()Returns
<Clone>$()
public override SystemMessageView <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(SystemMessageView?)
public bool Equals(SystemMessageView? other)Parameters
otherSystemMessageView?
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(SystemMessageView?)
public bool Equals(SystemMessageView? other)Parameters
otherSystemMessageView?
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(SystemMessageView?)
public bool Equals(SystemMessageView? other)Parameters
otherSystemMessageView?
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 ==(SystemMessageView?, SystemMessageView?)
public static bool operator ==(SystemMessageView? left, SystemMessageView? right)Parameters
leftSystemMessageView?rightSystemMessageView?
Returns
operator ==(SystemMessageView?, SystemMessageView?)
public static bool operator ==(SystemMessageView? left, SystemMessageView? right)Parameters
leftSystemMessageView?rightSystemMessageView?
Returns
operator ==(SystemMessageView?, SystemMessageView?)
public static bool operator ==(SystemMessageView? left, SystemMessageView? right)Parameters
leftSystemMessageView?rightSystemMessageView?
Returns
operator !=(SystemMessageView?, SystemMessageView?)
public static bool operator !=(SystemMessageView? left, SystemMessageView? right)Parameters
leftSystemMessageView?rightSystemMessageView?
Returns
operator !=(SystemMessageView?, SystemMessageView?)
public static bool operator !=(SystemMessageView? left, SystemMessageView? right)Parameters
leftSystemMessageView?rightSystemMessageView?
Returns
operator !=(SystemMessageView?, SystemMessageView?)
public static bool operator !=(SystemMessageView? left, SystemMessageView? right)Parameters
leftSystemMessageView?rightSystemMessageView?