Table of Contents

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

did Did

The idunno.AtProto.Did of the message author.

conversationId string

The conversation identifier.

messageId string

The message identifier.

Exceptions

ArgumentNullException

Thrown when did is null.

ArgumentException

Thrown when either conversationId or messageId are 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

did Did

The idunno.AtProto.Did of the message author.

conversationId string

The conversation identifier.

messageId string

The message identifier.

Exceptions

ArgumentNullException

Thrown when did is null.

ArgumentException

Thrown when either conversationId or messageId are 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

did Did

The idunno.AtProto.Did of the message author.

conversationId string

The conversation identifier.

messageId string

The message identifier.

Exceptions

ArgumentNullException

Thrown when did is null.

ArgumentException

Thrown when either conversationId or messageId are null or whitespace.

Properties

ConversationId

Gets the conversation identifier.

[JsonInclude]
[JsonRequired]
public string ConversationId { get; init; }

Property Value

string

ConversationId

Gets the conversation identifier.

[JsonInclude]
[JsonRequired]
public string ConversationId { get; init; }

Property Value

string

ConversationId

Gets the conversation identifier.

[JsonInclude]
[JsonRequired]
public string ConversationId { get; init; }

Property Value

string

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

string

MessageId

Gets the message identifier.

[JsonInclude]
[JsonRequired]
public string MessageId { get; init; }

Property Value

string

MessageId

Gets the message identifier.

[JsonInclude]
[JsonRequired]
public string MessageId { get; init; }

Property Value

string

Methods

<Clone>$()

public MessageReference <Clone>$()

Returns

MessageReference

<Clone>$()

public MessageReference <Clone>$()

Returns

MessageReference

<Clone>$()

public MessageReference <Clone>$()

Returns

MessageReference

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(MessageReference?)

public bool Equals(MessageReference? other)

Parameters

other MessageReference?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(MessageReference?)

public bool Equals(MessageReference? other)

Parameters

other MessageReference?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(MessageReference?)

public bool Equals(MessageReference? other)

Parameters

other MessageReference?

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

Operators

operator ==(MessageReference?, MessageReference?)

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

Parameters

left MessageReference?
right MessageReference?

Returns

bool

operator ==(MessageReference?, MessageReference?)

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

Parameters

left MessageReference?
right MessageReference?

Returns

bool

operator ==(MessageReference?, MessageReference?)

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

Parameters

left MessageReference?
right MessageReference?

Returns

bool

operator !=(MessageReference?, MessageReference?)

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

Parameters

left MessageReference?
right MessageReference?

Returns

bool

operator !=(MessageReference?, MessageReference?)

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

Parameters

left MessageReference?
right MessageReference?

Returns

bool

operator !=(MessageReference?, MessageReference?)

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

Parameters

left MessageReference?
right MessageReference?

Returns

bool