Class StatusView
- Namespace
- idunno.Bluesky.Actor
- Assembly
- idunno.Bluesky.dll
Provides a view over an actor's current status
public sealed record StatusView : IEquatable<StatusView>Inheritance
Implements
Inherited Members
Constructors
StatusView(string, JsonNode, EmbeddedView?, IReadOnlyCollection<Label>?, DateTimeOffset?, bool?, bool?, AtUri?, Cid?)
Creates a new instance of idunno.Bluesky.Actor.StatusView.
[JsonConstructor]
public StatusView(string status, JsonNode record, EmbeddedView? embed, IReadOnlyCollection<Label>? labels, DateTimeOffset? expiresAt, bool? isActive, bool? isDisabled, AtUri? uri, Cid? cid)Parameters
statusstring-
The status for the account.
recordJsonNode-
A record associated with the
status. embedEmbeddedView?-
An idunno.Bluesky.Embed.EmbeddedView associated with the
status, if any. labelsIReadOnlyCollection<Label>?-
A collection of idunno.AtProto.Labels.Labels associated with the
status, if any. expiresAtDateTimeOffset?-
A System.DateTimeOffset when this
statuswill expire, if any. isActivebool?-
A flag indicating whether the
statushas not expired. Only present whenexpiresAtwas set. isDisabledbool?-
A flag indicating whether the
statushas been disabled by the service. uriAtUri?-
The idunno.AtProto.AtUri of the
status, if any. cidCid?-
The idunno.AtProto.Cid of the
status, if any.
Exceptions
- ArgumentNullException
-
Thrown when
statusorrecordis null.
StatusView(string, JsonNode, EmbeddedView?, IReadOnlyCollection<Label>?, DateTimeOffset?, bool?, bool?, AtUri?, Cid?)
Creates a new instance of idunno.Bluesky.Actor.StatusView.
[JsonConstructor]
public StatusView(string status, JsonNode record, EmbeddedView? embed, IReadOnlyCollection<Label>? labels, DateTimeOffset? expiresAt, bool? isActive, bool? isDisabled, AtUri? uri, Cid? cid)Parameters
statusstring-
The status for the account.
recordJsonNode-
A record associated with the
status. embedEmbeddedView?-
An idunno.Bluesky.Embed.EmbeddedView associated with the
status, if any. labelsIReadOnlyCollection<Label>?-
A collection of idunno.AtProto.Labels.Labels associated with the
status, if any. expiresAtDateTimeOffset?-
A System.DateTimeOffset when this
statuswill expire, if any. isActivebool?-
A flag indicating whether the
statushas not expired. Only present whenexpiresAtwas set. isDisabledbool?-
A flag indicating whether the
statushas been disabled by the service. uriAtUri?-
The idunno.AtProto.AtUri of the
status, if any. cidCid?-
The idunno.AtProto.Cid of the
status, if any.
Exceptions
- ArgumentNullException
-
Thrown when
statusorrecordis null.
StatusView(string, JsonNode, EmbeddedView?, IReadOnlyCollection<Label>?, DateTimeOffset?, bool?, bool?, AtUri?, Cid?)
Creates a new instance of idunno.Bluesky.Actor.StatusView.
[JsonConstructor]
public StatusView(string status, JsonNode record, EmbeddedView? embed, IReadOnlyCollection<Label>? labels, DateTimeOffset? expiresAt, bool? isActive, bool? isDisabled, AtUri? uri, Cid? cid)Parameters
statusstring-
The status for the account.
recordJsonNode-
A record associated with the
status. embedEmbeddedView?-
An idunno.Bluesky.Embed.EmbeddedView associated with the
status, if any. labelsIReadOnlyCollection<Label>?-
A collection of idunno.AtProto.Labels.Labels associated with the
status, if any. expiresAtDateTimeOffset?-
A System.DateTimeOffset when this
statuswill expire, if any. isActivebool?-
A flag indicating whether the
statushas not expired. Only present whenexpiresAtwas set. isDisabledbool?-
A flag indicating whether the
statushas been disabled by the service. uriAtUri?-
The idunno.AtProto.AtUri of the
status, if any. cidCid?-
The idunno.AtProto.Cid of the
status, if any.
Exceptions
- ArgumentNullException
-
Thrown when
statusorrecordis null.
Properties
Cid
Gets the idunno.AtProto.Cid of the idunno.Bluesky.Actor.StatusView.Status, if any.
public Cid? Cid { get; init; }Property Value
- Cid?
Cid
Gets the idunno.AtProto.Cid of the idunno.Bluesky.Actor.StatusView.Status, if any.
public Cid? Cid { get; init; }Property Value
- Cid?
Cid
Gets the idunno.AtProto.Cid of the idunno.Bluesky.Actor.StatusView.Status, if any.
public Cid? Cid { get; init; }Property Value
- Cid?
Embed
Gets the idunno.Bluesky.Embed.EmbeddedView associated with the idunno.Bluesky.Actor.StatusView.Status, if any.
public EmbeddedView? Embed { get; init; }Property Value
Embed
Gets the idunno.Bluesky.Embed.EmbeddedView associated with the idunno.Bluesky.Actor.StatusView.Status, if any.
public EmbeddedView? Embed { get; init; }Property Value
Embed
Gets the idunno.Bluesky.Embed.EmbeddedView associated with the idunno.Bluesky.Actor.StatusView.Status, if any.
public EmbeddedView? Embed { get; init; }Property Value
ExpiresAt
Gets the System.DateTimeOffset when the idunno.Bluesky.Actor.StatusView.Status will expire, if any.
public DateTimeOffset? ExpiresAt { get; init; }Property Value
ExpiresAt
Gets the System.DateTimeOffset when the idunno.Bluesky.Actor.StatusView.Status will expire, if any.
public DateTimeOffset? ExpiresAt { get; init; }Property Value
ExpiresAt
Gets the System.DateTimeOffset when the idunno.Bluesky.Actor.StatusView.Status will expire, if any.
public DateTimeOffset? ExpiresAt { get; init; }Property Value
IsActive
Gets a flag indicating whether the idunno.Bluesky.Actor.StatusView.Status has not expired. Only present when idunno.Bluesky.Actor.StatusView.ExpiresAt was set.
public bool? IsActive { get; init; }Property Value
- bool?
IsActive
Gets a flag indicating whether the idunno.Bluesky.Actor.StatusView.Status has not expired. Only present when idunno.Bluesky.Actor.StatusView.ExpiresAt was set.
public bool? IsActive { get; init; }Property Value
- bool?
IsActive
Gets a flag indicating whether the idunno.Bluesky.Actor.StatusView.Status has not expired. Only present when idunno.Bluesky.Actor.StatusView.ExpiresAt was set.
public bool? IsActive { get; init; }Property Value
- bool?
IsDisabled
Gets a flag indicating whether the idunno.Bluesky.Actor.StatusView.Status has been disabled by the service.
public bool? IsDisabled { get; init; }Property Value
- bool?
IsDisabled
Gets a flag indicating whether the idunno.Bluesky.Actor.StatusView.Status has been disabled by the service.
public bool? IsDisabled { get; init; }Property Value
- bool?
IsDisabled
Gets a flag indicating whether the idunno.Bluesky.Actor.StatusView.Status has been disabled by the service.
public bool? IsDisabled { get; init; }Property Value
- bool?
Labels
Gets the collection of idunno.AtProto.Labels.Labels associated with the idunno.Bluesky.Actor.StatusView.Status, if any.
public IReadOnlyCollection<Label> Labels { get; init; }Property Value
- IReadOnlyCollection<Label>
Labels
Gets the collection of idunno.AtProto.Labels.Labels associated with the idunno.Bluesky.Actor.StatusView.Status, if any.
public IReadOnlyCollection<Label> Labels { get; init; }Property Value
- IReadOnlyCollection<Label>
Labels
Gets the collection of idunno.AtProto.Labels.Labels associated with the idunno.Bluesky.Actor.StatusView.Status, if any.
public IReadOnlyCollection<Label> Labels { get; init; }Property Value
- IReadOnlyCollection<Label>
Record
Gets the record associated with the idunno.Bluesky.Actor.StatusView.Status.
[JsonRequired]
public JsonNode Record { get; init; }Property Value
Record
Gets the record associated with the idunno.Bluesky.Actor.StatusView.Status.
[JsonRequired]
public JsonNode Record { get; init; }Property Value
Record
Gets the record associated with the idunno.Bluesky.Actor.StatusView.Status.
[JsonRequired]
public JsonNode Record { get; init; }Property Value
Status
Gets the status for the account.
[JsonRequired]
public string Status { get; init; }Property Value
Status
Gets the status for the account.
[JsonRequired]
public string Status { get; init; }Property Value
Status
Gets the status for the account.
[JsonRequired]
public string Status { get; init; }Property Value
Uri
Gets the idunno.AtProto.AtUri of the idunno.Bluesky.Actor.StatusView.Status, if any.
public AtUri? Uri { get; init; }Property Value
- AtUri?
Uri
Gets the idunno.AtProto.AtUri of the idunno.Bluesky.Actor.StatusView.Status, if any.
public AtUri? Uri { get; init; }Property Value
- AtUri?
Uri
Gets the idunno.AtProto.AtUri of the idunno.Bluesky.Actor.StatusView.Status, if any.
public AtUri? Uri { get; init; }Property Value
- AtUri?
Methods
<Clone>$()
public StatusView <Clone>$()Returns
<Clone>$()
public StatusView <Clone>$()Returns
<Clone>$()
public StatusView <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(StatusView?)
public bool Equals(StatusView? other)Parameters
otherStatusView?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(StatusView?)
public bool Equals(StatusView? other)Parameters
otherStatusView?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(StatusView?)
public bool Equals(StatusView? other)Parameters
otherStatusView?
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 ==(StatusView?, StatusView?)
public static bool operator ==(StatusView? left, StatusView? right)Parameters
leftStatusView?rightStatusView?
Returns
operator ==(StatusView?, StatusView?)
public static bool operator ==(StatusView? left, StatusView? right)Parameters
leftStatusView?rightStatusView?
Returns
operator ==(StatusView?, StatusView?)
public static bool operator ==(StatusView? left, StatusView? right)Parameters
leftStatusView?rightStatusView?
Returns
operator !=(StatusView?, StatusView?)
public static bool operator !=(StatusView? left, StatusView? right)Parameters
leftStatusView?rightStatusView?
Returns
operator !=(StatusView?, StatusView?)
public static bool operator !=(StatusView? left, StatusView? right)Parameters
leftStatusView?rightStatusView?
Returns
operator !=(StatusView?, StatusView?)
public static bool operator !=(StatusView? left, StatusView? right)Parameters
leftStatusView?rightStatusView?