Class MessageReference
- Namespace
- idunno.Bluesky.Chat
- Assembly
- idunno.Bluesky.dll
Encapsulates a reference to an individual message in a conversation.
public sealed record MessageReference : IEquatable<MessageReference>Inheritance
Implements
Inherited Members
Constructors
MessageReference(Did, string, string)
Creates a new instance of idunno.Bluesky.Chat.MessageReference.
[JsonConstructor]
public MessageReference(Did did, string conversationId, string messageId)Parameters
didDid-
The idunno.AtProto.Did of the message author.
conversationIdstring-
The conversation identifier.
messageIdstring-
The message identifier.
Exceptions
- ArgumentNullException
-
Thrown when
didis null. - ArgumentException
-
Thrown when either
conversationIdormessageIdare null or whitespace.
MessageReference(Did, string, string)
Creates a new instance of idunno.Bluesky.Chat.MessageReference.
[JsonConstructor]
public MessageReference(Did did, string conversationId, string messageId)Parameters
didDid-
The idunno.AtProto.Did of the message author.
conversationIdstring-
The conversation identifier.
messageIdstring-
The message identifier.
Exceptions
- ArgumentNullException
-
Thrown when
didis null. - ArgumentException
-
Thrown when either
conversationIdormessageIdare null or whitespace.
MessageReference(Did, string, string)
Creates a new instance of idunno.Bluesky.Chat.MessageReference.
[JsonConstructor]
public MessageReference(Did did, string conversationId, string messageId)Parameters
didDid-
The idunno.AtProto.Did of the message author.
conversationIdstring-
The conversation identifier.
messageIdstring-
The message identifier.
Exceptions
- ArgumentNullException
-
Thrown when
didis null. - ArgumentException
-
Thrown when either
conversationIdormessageIdare null or whitespace.
Properties
ConversationId
Gets the conversation identifier.
[JsonInclude]
[JsonRequired]
public string ConversationId { get; init; }Property Value
ConversationId
Gets the conversation identifier.
[JsonInclude]
[JsonRequired]
public string ConversationId { get; init; }Property Value
ConversationId
Gets the conversation identifier.
[JsonInclude]
[JsonRequired]
public string ConversationId { get; init; }Property Value
Did
Gets the idunno.AtProto.Did of the message author.
[JsonInclude]
[JsonRequired]
public Did Did { get; init; }Property Value
- Did
Did
Gets the idunno.AtProto.Did of the message author.
[JsonInclude]
[JsonRequired]
public Did Did { get; init; }Property Value
- Did
Did
Gets the idunno.AtProto.Did of the message author.
[JsonInclude]
[JsonRequired]
public Did Did { get; init; }Property Value
- Did
MessageId
Gets the message identifier.
[JsonInclude]
[JsonRequired]
public string MessageId { get; init; }Property Value
MessageId
Gets the message identifier.
[JsonInclude]
[JsonRequired]
public string MessageId { get; init; }Property Value
MessageId
Gets the message identifier.
[JsonInclude]
[JsonRequired]
public string MessageId { get; init; }Property Value
Methods
<Clone>$()
public MessageReference <Clone>$()Returns
<Clone>$()
public MessageReference <Clone>$()Returns
<Clone>$()
public MessageReference <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(MessageReference?)
public bool Equals(MessageReference? other)Parameters
otherMessageReference?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(MessageReference?)
public bool Equals(MessageReference? other)Parameters
otherMessageReference?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(MessageReference?)
public bool Equals(MessageReference? other)Parameters
otherMessageReference?
Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(MessageReference?, MessageReference?)
public static bool operator ==(MessageReference? left, MessageReference? right)Parameters
leftMessageReference?rightMessageReference?
Returns
operator ==(MessageReference?, MessageReference?)
public static bool operator ==(MessageReference? left, MessageReference? right)Parameters
leftMessageReference?rightMessageReference?
Returns
operator ==(MessageReference?, MessageReference?)
public static bool operator ==(MessageReference? left, MessageReference? right)Parameters
leftMessageReference?rightMessageReference?
Returns
operator !=(MessageReference?, MessageReference?)
public static bool operator !=(MessageReference? left, MessageReference? right)Parameters
leftMessageReference?rightMessageReference?
Returns
operator !=(MessageReference?, MessageReference?)
public static bool operator !=(MessageReference? left, MessageReference? right)Parameters
leftMessageReference?rightMessageReference?
Returns
operator !=(MessageReference?, MessageReference?)
public static bool operator !=(MessageReference? left, MessageReference? right)Parameters
leftMessageReference?rightMessageReference?