Table of Contents

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

id string

The message ID.

revision string

The message revision.

sender MessageViewSender

A view over the message author.

sentAt DateTimeOffset

The System.DateTimeOffset the message was sent on.

Exceptions

ArgumentException

Thrown when id or revision is null or whitespace.

ArgumentNullException

Thrown when sender is 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

id string

The message ID.

revision string

The message revision.

sender MessageViewSender

A view over the message author.

sentAt DateTimeOffset

The System.DateTimeOffset the message was sent on.

Exceptions

ArgumentException

Thrown when id or revision is null or whitespace.

ArgumentNullException

Thrown when sender is 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

id string

The message ID.

revision string

The message revision.

sender MessageViewSender

A view over the message author.

sentAt DateTimeOffset

The System.DateTimeOffset the message was sent on.

Exceptions

ArgumentException

Thrown when id or revision is null or whitespace.

ArgumentNullException

Thrown when sender is null.

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Id

Gets the id of a message.

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

Property Value

string

Id

Gets the id of a message.

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

Property Value

string

Id

Gets the id of a message.

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

Property Value

string

Revision

Gets the revision of a message.

[JsonInclude]
[JsonRequired]
[JsonPropertyName("rev")]
public string Revision { get; init; }

Property Value

string

Revision

Gets the revision of a message.

[JsonInclude]
[JsonRequired]
[JsonPropertyName("rev")]
public string Revision { get; init; }

Property Value

string

Revision

Gets the revision of a message.

[JsonInclude]
[JsonRequired]
[JsonPropertyName("rev")]
public string Revision { get; init; }

Property Value

string

Sender

Gets a view over the message author.

[JsonInclude]
[JsonRequired]
public MessageViewSender Sender { get; init; }

Property Value

MessageViewSender

Sender

Gets a view over the message author.

[JsonInclude]
[JsonRequired]
public MessageViewSender Sender { get; init; }

Property Value

MessageViewSender

Sender

Gets a view over the message author.

[JsonInclude]
[JsonRequired]
public MessageViewSender Sender { get; init; }

Property Value

MessageViewSender

SentAt

Gets the System.DateTimeOffset the message was sent on.

[JsonInclude]
[JsonRequired]
public DateTimeOffset SentAt { get; init; }

Property Value

DateTimeOffset

SentAt

Gets the System.DateTimeOffset the message was sent on.

[JsonInclude]
[JsonRequired]
public DateTimeOffset SentAt { get; init; }

Property Value

DateTimeOffset

SentAt

Gets the System.DateTimeOffset the message was sent on.

[JsonInclude]
[JsonRequired]
public DateTimeOffset SentAt { get; init; }

Property Value

DateTimeOffset

Methods

<Clone>$()

public override DeletedMessageView <Clone>$()

Returns

DeletedMessageView

<Clone>$()

public override DeletedMessageView <Clone>$()

Returns

DeletedMessageView

<Clone>$()

public override DeletedMessageView <Clone>$()

Returns

DeletedMessageView

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(MessageViewBase?)

public override sealed bool Equals(MessageViewBase? other)

Parameters

other MessageViewBase?

Returns

bool

Equals(DeletedMessageView?)

public bool Equals(DeletedMessageView? other)

Parameters

other DeletedMessageView?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(MessageViewBase?)

public override sealed bool Equals(MessageViewBase? other)

Parameters

other MessageViewBase?

Returns

bool

Equals(DeletedMessageView?)

public bool Equals(DeletedMessageView? other)

Parameters

other DeletedMessageView?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(MessageViewBase?)

public override sealed bool Equals(MessageViewBase? other)

Parameters

other MessageViewBase?

Returns

bool

Equals(DeletedMessageView?)

public bool Equals(DeletedMessageView? other)

Parameters

other DeletedMessageView?

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

Operators

operator ==(DeletedMessageView?, DeletedMessageView?)

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

Parameters

left DeletedMessageView?
right DeletedMessageView?

Returns

bool

operator ==(DeletedMessageView?, DeletedMessageView?)

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

Parameters

left DeletedMessageView?
right DeletedMessageView?

Returns

bool

operator ==(DeletedMessageView?, DeletedMessageView?)

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

Parameters

left DeletedMessageView?
right DeletedMessageView?

Returns

bool

operator !=(DeletedMessageView?, DeletedMessageView?)

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

Parameters

left DeletedMessageView?
right DeletedMessageView?

Returns

bool

operator !=(DeletedMessageView?, DeletedMessageView?)

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

Parameters

left DeletedMessageView?
right DeletedMessageView?

Returns

bool

operator !=(DeletedMessageView?, DeletedMessageView?)

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

Parameters

left DeletedMessageView?
right DeletedMessageView?

Returns

bool