Table of Contents

Class Status

Namespace
idunno.Bluesky.Actor
Assembly
idunno.Bluesky.dll

A profile status

[JsonPolymorphic(IgnoreUnrecognizedTypeDiscriminators = true, UnknownDerivedTypeHandling = JsonUnknownDerivedTypeHandling.FallBackToBaseType)]
[JsonDerivedType(typeof(Status), "app.bsky.actor.status")]
public record Status : BlueskyTimestampedRecord, IEquatable<AtProtoRecord>, IEquatable<BlueskyRecord>, IEquatable<BlueskyTimestampedRecord>, IEquatable<Status>

Inheritance

AtProtoRecord

Implements

Inherited Members

AtProtoRecord.Equals(AtProtoRecord?)
AtProtoRecord.GetHashCode()
AtProtoRecord.ToString()
AtProtoRecord.PrintMembers(StringBuilder)
AtProtoRecord.Equals(object?)
AtProtoRecord.<Clone>$()
AtProtoRecord.EqualityContract
AtProtoRecord.ExtensionData

Constructors

Status(string)

Creates a new instance of idunno.Bluesky.Actor.Status, with the specified accountStatus value.

public Status(string accountStatus)

Parameters

accountStatus string

The status to set. Known values are contained in idunno.Bluesky.Actor.KnownStatusValues.

Exceptions

ArgumentNullException

Thrown when accountStatus is null.

Status(string, DateTimeOffset)

Creates a new instance of idunno.Bluesky.Actor.Status, with the specified accountStatus value.

public Status(string accountStatus, DateTimeOffset createdAt)

Parameters

accountStatus string

The status to set. Known values are contained in idunno.Bluesky.Actor.KnownStatusValues.

createdAt DateTimeOffset

The date and time when the status was created. Defaults to System.DateTimeOffset.UtcNow

Exceptions

ArgumentNullException

Thrown when accountStatus is null.

Status(string, EmbeddedBase?, int?)

Creates a new instance of idunno.Bluesky.Actor.Status.

public Status(string accountStatus, EmbeddedBase? embed, int? durationMinutes)

Parameters

accountStatus string

The status for the account.

embed EmbeddedBase?

An optional embed associated with the status.

durationMinutes int?

"The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.

Exceptions

ArgumentNullException

Thrown when accountStatus is null.

ArgumentOutOfRangeException

Thrown when durationMinutes is less than one.

Status(string, EmbeddedBase?, int?, DateTimeOffset)

Creates a new instance of idunno.Bluesky.Actor.Status.

[JsonConstructor]
public Status(string accountStatus, EmbeddedBase? embed, int? durationMinutes, DateTimeOffset createdAt)

Parameters

accountStatus string

The status for the account.

embed EmbeddedBase?

An optional embed associated with the status.

durationMinutes int?

"The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.

createdAt DateTimeOffset

The date and time when the status was created. Defaults to System.DateTimeOffset.UtcNow

Exceptions

ArgumentNullException

Thrown when accountStatus is null.

ArgumentOutOfRangeException

Thrown when durationMinutes is less than one.

Status(Status)

protected Status(Status original)

Parameters

original Status

Status(string)

Creates a new instance of idunno.Bluesky.Actor.Status, with the specified accountStatus value.

public Status(string accountStatus)

Parameters

accountStatus string

The status to set. Known values are contained in idunno.Bluesky.Actor.KnownStatusValues.

Exceptions

ArgumentNullException

Thrown when accountStatus is null.

Status(string, DateTimeOffset)

Creates a new instance of idunno.Bluesky.Actor.Status, with the specified accountStatus value.

public Status(string accountStatus, DateTimeOffset createdAt)

Parameters

accountStatus string

The status to set. Known values are contained in idunno.Bluesky.Actor.KnownStatusValues.

createdAt DateTimeOffset

The date and time when the status was created. Defaults to System.DateTimeOffset.UtcNow

Exceptions

ArgumentNullException

Thrown when accountStatus is null.

Status(string, EmbeddedBase?, int?)

Creates a new instance of idunno.Bluesky.Actor.Status.

public Status(string accountStatus, EmbeddedBase? embed, int? durationMinutes)

Parameters

accountStatus string

The status for the account.

embed EmbeddedBase?

An optional embed associated with the status.

durationMinutes int?

"The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.

Exceptions

ArgumentNullException

Thrown when accountStatus is null.

ArgumentOutOfRangeException

Thrown when durationMinutes is less than one.

Status(string, EmbeddedBase?, int?, DateTimeOffset)

Creates a new instance of idunno.Bluesky.Actor.Status.

[JsonConstructor]
public Status(string accountStatus, EmbeddedBase? embed, int? durationMinutes, DateTimeOffset createdAt)

Parameters

accountStatus string

The status for the account.

embed EmbeddedBase?

An optional embed associated with the status.

durationMinutes int?

"The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.

createdAt DateTimeOffset

The date and time when the status was created. Defaults to System.DateTimeOffset.UtcNow

Exceptions

ArgumentNullException

Thrown when accountStatus is null.

ArgumentOutOfRangeException

Thrown when durationMinutes is less than one.

Status(Status)

protected Status(Status original)

Parameters

original Status

Status(string)

Creates a new instance of idunno.Bluesky.Actor.Status, with the specified accountStatus value.

public Status(string accountStatus)

Parameters

accountStatus string

The status to set. Known values are contained in idunno.Bluesky.Actor.KnownStatusValues.

Exceptions

ArgumentNullException

Thrown when accountStatus is null.

Status(string, DateTimeOffset)

Creates a new instance of idunno.Bluesky.Actor.Status, with the specified accountStatus value.

public Status(string accountStatus, DateTimeOffset createdAt)

Parameters

accountStatus string

The status to set. Known values are contained in idunno.Bluesky.Actor.KnownStatusValues.

createdAt DateTimeOffset

The date and time when the status was created. Defaults to System.DateTimeOffset.UtcNow

Exceptions

ArgumentNullException

Thrown when accountStatus is null.

Status(string, EmbeddedBase?, int?)

Creates a new instance of idunno.Bluesky.Actor.Status.

public Status(string accountStatus, EmbeddedBase? embed, int? durationMinutes)

Parameters

accountStatus string

The status for the account.

embed EmbeddedBase?

An optional embed associated with the status.

durationMinutes int?

"The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.

Exceptions

ArgumentNullException

Thrown when accountStatus is null.

ArgumentOutOfRangeException

Thrown when durationMinutes is less than one.

Status(string, EmbeddedBase?, int?, DateTimeOffset)

Creates a new instance of idunno.Bluesky.Actor.Status.

[JsonConstructor]
public Status(string accountStatus, EmbeddedBase? embed, int? durationMinutes, DateTimeOffset createdAt)

Parameters

accountStatus string

The status for the account.

embed EmbeddedBase?

An optional embed associated with the status.

durationMinutes int?

"The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.

createdAt DateTimeOffset

The date and time when the status was created. Defaults to System.DateTimeOffset.UtcNow

Exceptions

ArgumentNullException

Thrown when accountStatus is null.

ArgumentOutOfRangeException

Thrown when durationMinutes is less than one.

Status(Status)

protected Status(Status original)

Parameters

original Status

Properties

AccountStatus

Gets or sets the status for the account.

[JsonPropertyName("status")]
[JsonRequired]
public string AccountStatus { get; set; }

Property Value

string

Remarks

Known values are contained in idunno.Bluesky.Actor.KnownStatusValues.

Exceptions

ArgumentNullException

Thrown when the value set is null.

AccountStatus

Gets or sets the status for the account.

[JsonPropertyName("status")]
[JsonRequired]
public string AccountStatus { get; set; }

Property Value

string

Remarks

Known values are contained in idunno.Bluesky.Actor.KnownStatusValues.

Exceptions

ArgumentNullException

Thrown when the value set is null.

AccountStatus

Gets or sets the status for the account.

[JsonPropertyName("status")]
[JsonRequired]
public string AccountStatus { get; set; }

Property Value

string

Remarks

Known values are contained in idunno.Bluesky.Actor.KnownStatusValues.

Exceptions

ArgumentNullException

Thrown when the value set is null.

DurationMinutes

Gets or sets the duration of the status in minutes. Applications can choose to impose minimum and maximum limits.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? DurationMinutes { get; set; }

Property Value

int?

Exceptions

ArgumentOutOfRangeException

Thrown when the value set is less than one.

DurationMinutes

Gets or sets the duration of the status in minutes. Applications can choose to impose minimum and maximum limits.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? DurationMinutes { get; set; }

Property Value

int?

Exceptions

ArgumentOutOfRangeException

Thrown when the value set is less than one.

DurationMinutes

Gets or sets the duration of the status in minutes. Applications can choose to impose minimum and maximum limits.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? DurationMinutes { get; set; }

Property Value

int?

Exceptions

ArgumentOutOfRangeException

Thrown when the value set is less than one.

Embed

Any embedded record for the status.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public EmbeddedBase? Embed { get; set; }

Property Value

EmbeddedBase?

Embed

Any embedded record for the status.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public EmbeddedBase? Embed { get; set; }

Property Value

EmbeddedBase?

Embed

Any embedded record for the status.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public EmbeddedBase? Embed { get; set; }

Property Value

EmbeddedBase?

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

Methods

<Clone>$()

public override Status <Clone>$()

Returns

Status

<Clone>$()

public override Status <Clone>$()

Returns

Status

<Clone>$()

public override Status <Clone>$()

Returns

Status

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(BlueskyTimestampedRecord?)

public override sealed bool Equals(BlueskyTimestampedRecord? other)

Parameters

other BlueskyTimestampedRecord?

Returns

bool

Equals(Status?)

public virtual bool Equals(Status? other)

Parameters

other Status?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(BlueskyTimestampedRecord?)

public override sealed bool Equals(BlueskyTimestampedRecord? other)

Parameters

other BlueskyTimestampedRecord?

Returns

bool

Equals(Status?)

public virtual bool Equals(Status? other)

Parameters

other Status?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(BlueskyTimestampedRecord?)

public override sealed bool Equals(BlueskyTimestampedRecord? other)

Parameters

other BlueskyTimestampedRecord?

Returns

bool

Equals(Status?)

public virtual bool Equals(Status? other)

Parameters

other Status?

Returns

bool

GetHashCode()

Returns the hash code for the current instance.

public override int GetHashCode()

Returns

int

The hash code for the current instance.

Remarks

The hash code is derived from the keys of idunno.AtProto.Repo.AtProtoRecord.ExtensionData rather than from its identity.

GetHashCode()

Returns the hash code for the current instance.

public override int GetHashCode()

Returns

int

The hash code for the current instance.

Remarks

The hash code is derived from the keys of idunno.AtProto.Repo.AtProtoRecord.ExtensionData rather than from its identity.

GetHashCode()

Returns the hash code for the current instance.

public override int GetHashCode()

Returns

int

The hash code for the current instance.

Remarks

The hash code is derived from the keys of idunno.AtProto.Repo.AtProtoRecord.ExtensionData rather than from its identity.

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

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

Parameters

left Status?
right Status?

Returns

bool

operator ==(Status?, Status?)

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

Parameters

left Status?
right Status?

Returns

bool

operator ==(Status?, Status?)

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

Parameters

left Status?
right Status?

Returns

bool

operator !=(Status?, Status?)

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

Parameters

left Status?
right Status?

Returns

bool

operator !=(Status?, Status?)

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

Parameters

left Status?
right Status?

Returns

bool

operator !=(Status?, Status?)

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

Parameters

left Status?
right Status?

Returns

bool