Table of Contents

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

data SystemMessage

The system message data.

id string

The message ID.

revision string

The message revision.

sentAt DateTimeOffset

The System.DateTimeOffset the message was sent on.

Exceptions

ArgumentException

Thrown when id or revision is 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

data SystemMessage

The system message data.

id string

The message ID.

revision string

The message revision.

sentAt DateTimeOffset

The System.DateTimeOffset the message was sent on.

Exceptions

ArgumentException

Thrown when id or revision is 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

data SystemMessage

The system message data.

id string

The message ID.

revision string

The message revision.

sentAt DateTimeOffset

The System.DateTimeOffset the message was sent on.

Exceptions

ArgumentException

Thrown when id or revision is null or whitespace.

Properties

Data

Gets the system message data.

[JsonInclude]
[JsonRequired]
public SystemMessage Data { get; init; }

Property Value

SystemMessage

Data

Gets the system message data.

[JsonInclude]
[JsonRequired]
public SystemMessage Data { get; init; }

Property Value

SystemMessage

Data

Gets the system message data.

[JsonInclude]
[JsonRequired]
public SystemMessage Data { get; init; }

Property Value

SystemMessage

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

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 SystemMessageView <Clone>$()

Returns

SystemMessageView

<Clone>$()

public override SystemMessageView <Clone>$()

Returns

SystemMessageView

<Clone>$()

public override SystemMessageView <Clone>$()

Returns

SystemMessageView

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(SystemMessageView?)

public bool Equals(SystemMessageView? other)

Parameters

other SystemMessageView?

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(SystemMessageView?)

public bool Equals(SystemMessageView? other)

Parameters

other SystemMessageView?

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(SystemMessageView?)

public bool Equals(SystemMessageView? other)

Parameters

other SystemMessageView?

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 ==(SystemMessageView?, SystemMessageView?)

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

Parameters

left SystemMessageView?
right SystemMessageView?

Returns

bool

operator ==(SystemMessageView?, SystemMessageView?)

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

Parameters

left SystemMessageView?
right SystemMessageView?

Returns

bool

operator ==(SystemMessageView?, SystemMessageView?)

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

Parameters

left SystemMessageView?
right SystemMessageView?

Returns

bool

operator !=(SystemMessageView?, SystemMessageView?)

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

Parameters

left SystemMessageView?
right SystemMessageView?

Returns

bool

operator !=(SystemMessageView?, SystemMessageView?)

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

Parameters

left SystemMessageView?
right SystemMessageView?

Returns

bool

operator !=(SystemMessageView?, SystemMessageView?)

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

Parameters

left SystemMessageView?
right SystemMessageView?

Returns

bool