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.EqualityContractAtProtoRecord.ExtensionData
Constructors
Status(string)
Creates a new instance of idunno.Bluesky.Actor.Status, with the specified accountStatus value.
public Status(string accountStatus)Parameters
accountStatusstring-
The status to set. Known values are contained in idunno.Bluesky.Actor.KnownStatusValues.
Exceptions
- ArgumentNullException
-
Thrown when
accountStatusis 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
accountStatusstring-
The status to set. Known values are contained in idunno.Bluesky.Actor.KnownStatusValues.
createdAtDateTimeOffset-
The date and time when the status was created. Defaults to System.DateTimeOffset.UtcNow
Exceptions
- ArgumentNullException
-
Thrown when
accountStatusis null.
Status(string, EmbeddedBase?, int?)
Creates a new instance of idunno.Bluesky.Actor.Status.
public Status(string accountStatus, EmbeddedBase? embed, int? durationMinutes)Parameters
accountStatusstring-
The status for the account.
embedEmbeddedBase?-
An optional embed associated with the status.
durationMinutesint?-
"The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.
Exceptions
- ArgumentNullException
-
Thrown when
accountStatusis null. - ArgumentOutOfRangeException
-
Thrown when
durationMinutesis 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
accountStatusstring-
The status for the account.
embedEmbeddedBase?-
An optional embed associated with the status.
durationMinutesint?-
"The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.
createdAtDateTimeOffset-
The date and time when the status was created. Defaults to System.DateTimeOffset.UtcNow
Exceptions
- ArgumentNullException
-
Thrown when
accountStatusis null. - ArgumentOutOfRangeException
-
Thrown when
durationMinutesis less than one.
Status(Status)
protected Status(Status original)Parameters
originalStatus
Status(string)
Creates a new instance of idunno.Bluesky.Actor.Status, with the specified accountStatus value.
public Status(string accountStatus)Parameters
accountStatusstring-
The status to set. Known values are contained in idunno.Bluesky.Actor.KnownStatusValues.
Exceptions
- ArgumentNullException
-
Thrown when
accountStatusis 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
accountStatusstring-
The status to set. Known values are contained in idunno.Bluesky.Actor.KnownStatusValues.
createdAtDateTimeOffset-
The date and time when the status was created. Defaults to System.DateTimeOffset.UtcNow
Exceptions
- ArgumentNullException
-
Thrown when
accountStatusis null.
Status(string, EmbeddedBase?, int?)
Creates a new instance of idunno.Bluesky.Actor.Status.
public Status(string accountStatus, EmbeddedBase? embed, int? durationMinutes)Parameters
accountStatusstring-
The status for the account.
embedEmbeddedBase?-
An optional embed associated with the status.
durationMinutesint?-
"The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.
Exceptions
- ArgumentNullException
-
Thrown when
accountStatusis null. - ArgumentOutOfRangeException
-
Thrown when
durationMinutesis 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
accountStatusstring-
The status for the account.
embedEmbeddedBase?-
An optional embed associated with the status.
durationMinutesint?-
"The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.
createdAtDateTimeOffset-
The date and time when the status was created. Defaults to System.DateTimeOffset.UtcNow
Exceptions
- ArgumentNullException
-
Thrown when
accountStatusis null. - ArgumentOutOfRangeException
-
Thrown when
durationMinutesis less than one.
Status(Status)
protected Status(Status original)Parameters
originalStatus
Status(string)
Creates a new instance of idunno.Bluesky.Actor.Status, with the specified accountStatus value.
public Status(string accountStatus)Parameters
accountStatusstring-
The status to set. Known values are contained in idunno.Bluesky.Actor.KnownStatusValues.
Exceptions
- ArgumentNullException
-
Thrown when
accountStatusis 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
accountStatusstring-
The status to set. Known values are contained in idunno.Bluesky.Actor.KnownStatusValues.
createdAtDateTimeOffset-
The date and time when the status was created. Defaults to System.DateTimeOffset.UtcNow
Exceptions
- ArgumentNullException
-
Thrown when
accountStatusis null.
Status(string, EmbeddedBase?, int?)
Creates a new instance of idunno.Bluesky.Actor.Status.
public Status(string accountStatus, EmbeddedBase? embed, int? durationMinutes)Parameters
accountStatusstring-
The status for the account.
embedEmbeddedBase?-
An optional embed associated with the status.
durationMinutesint?-
"The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.
Exceptions
- ArgumentNullException
-
Thrown when
accountStatusis null. - ArgumentOutOfRangeException
-
Thrown when
durationMinutesis 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
accountStatusstring-
The status for the account.
embedEmbeddedBase?-
An optional embed associated with the status.
durationMinutesint?-
"The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.
createdAtDateTimeOffset-
The date and time when the status was created. Defaults to System.DateTimeOffset.UtcNow
Exceptions
- ArgumentNullException
-
Thrown when
accountStatusis null. - ArgumentOutOfRangeException
-
Thrown when
durationMinutesis less than one.
Status(Status)
protected Status(Status original)Parameters
originalStatus
Properties
AccountStatus
Gets or sets the status for the account.
[JsonPropertyName("status")]
[JsonRequired]
public string AccountStatus { get; set; }Property Value
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
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
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
Embed
Any embedded record for the status.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public EmbeddedBase? Embed { get; set; }Property Value
Embed
Any embedded record for the status.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public EmbeddedBase? Embed { get; set; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
Methods
<Clone>$()
public override Status <Clone>$()Returns
<Clone>$()
public override Status <Clone>$()Returns
<Clone>$()
public override Status <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(BlueskyTimestampedRecord?)
public override sealed bool Equals(BlueskyTimestampedRecord? other)Parameters
otherBlueskyTimestampedRecord?
Returns
Equals(Status?)
public virtual bool Equals(Status? other)Parameters
otherStatus?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(BlueskyTimestampedRecord?)
public override sealed bool Equals(BlueskyTimestampedRecord? other)Parameters
otherBlueskyTimestampedRecord?
Returns
Equals(Status?)
public virtual bool Equals(Status? other)Parameters
otherStatus?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(BlueskyTimestampedRecord?)
public override sealed bool Equals(BlueskyTimestampedRecord? other)Parameters
otherBlueskyTimestampedRecord?
Returns
Equals(Status?)
public virtual bool Equals(Status? other)Parameters
otherStatus?
Returns
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
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(Status?, Status?)
public static bool operator ==(Status? left, Status? right)Parameters
Returns
operator ==(Status?, Status?)
public static bool operator ==(Status? left, Status? right)Parameters
Returns
operator ==(Status?, Status?)
public static bool operator ==(Status? left, Status? right)Parameters
Returns
operator !=(Status?, Status?)
public static bool operator !=(Status? left, Status? right)Parameters
Returns
operator !=(Status?, Status?)
public static bool operator !=(Status? left, Status? right)Parameters
Returns
operator !=(Status?, Status?)
public static bool operator !=(Status? left, Status? right)