Class MutedWord
- Namespace
- idunno.Bluesky.Actor
- Assembly
- idunno.Bluesky.dll
Properties for a word that the account owner has muted.
public record MutedWord : IEquatable<MutedWord>Inheritance
Implements
Inherited Members
Constructors
MutedWord(string?, string, IReadOnlyList<MutedWordTarget>, MutedWordActorTarget, DateTimeOffset?)
Creates a new instance of idunno.Bluesky.Actor.MutedWord.
public MutedWord(string? id, string value, IReadOnlyList<MutedWordTarget> targets, MutedWordActorTarget actorTarget, DateTimeOffset? expiresAt)Parameters
idstring?-
An optional identifier for the muted word configuration.
valuestring-
The muted word.
targetsIReadOnlyList<MutedWordTarget>-
The intended targets of the muted word.
actorTargetMutedWordActorTarget-
Groups of users to apply the muted word to.
expiresAtDateTimeOffset?-
The date and time at which the muted word will expire and no longer be applied, if any.
Exceptions
- ArgumentNullException
-
Thrown when
valueortargetsis null. - ArgumentOutOfRangeException
-
Thrown when
valueis longer than idunno.Bluesky.Maximum.MutedWordLengthInBytes bytes or idunno.Bluesky.Maximum.MutedWordLengthInGraphemes graphemes, whenactorTargetis idunno.Bluesky.Actor.MutedWordActorTarget.Unknown, or whentargetscontains idunno.Bluesky.Actor.MutedWordTarget.Unknown.
MutedWord(MutedWord)
protected MutedWord(MutedWord original)Parameters
originalMutedWord
MutedWord(string?, string, IReadOnlyList<MutedWordTarget>, MutedWordActorTarget, DateTimeOffset?)
Creates a new instance of idunno.Bluesky.Actor.MutedWord.
public MutedWord(string? id, string value, IReadOnlyList<MutedWordTarget> targets, MutedWordActorTarget actorTarget, DateTimeOffset? expiresAt)Parameters
idstring?-
An optional identifier for the muted word configuration.
valuestring-
The muted word.
targetsIReadOnlyList<MutedWordTarget>-
The intended targets of the muted word.
actorTargetMutedWordActorTarget-
Groups of users to apply the muted word to.
expiresAtDateTimeOffset?-
The date and time at which the muted word will expire and no longer be applied, if any.
Exceptions
- ArgumentNullException
-
Thrown when
valueortargetsis null. - ArgumentOutOfRangeException
-
Thrown when
valueis longer than idunno.Bluesky.Maximum.MutedWordLengthInBytes bytes or idunno.Bluesky.Maximum.MutedWordLengthInGraphemes graphemes, whenactorTargetis idunno.Bluesky.Actor.MutedWordActorTarget.Unknown, or whentargetscontains idunno.Bluesky.Actor.MutedWordTarget.Unknown.
MutedWord(MutedWord)
protected MutedWord(MutedWord original)Parameters
originalMutedWord
MutedWord(string?, string, IReadOnlyList<MutedWordTarget>, MutedWordActorTarget, DateTimeOffset?)
Creates a new instance of idunno.Bluesky.Actor.MutedWord.
public MutedWord(string? id, string value, IReadOnlyList<MutedWordTarget> targets, MutedWordActorTarget actorTarget, DateTimeOffset? expiresAt)Parameters
idstring?-
An optional identifier for the muted word configuration.
valuestring-
The muted word.
targetsIReadOnlyList<MutedWordTarget>-
The intended targets of the muted word.
actorTargetMutedWordActorTarget-
Groups of users to apply the muted word to.
expiresAtDateTimeOffset?-
The date and time at which the muted word will expire and no longer be applied, if any.
Exceptions
- ArgumentNullException
-
Thrown when
valueortargetsis null. - ArgumentOutOfRangeException
-
Thrown when
valueis longer than idunno.Bluesky.Maximum.MutedWordLengthInBytes bytes or idunno.Bluesky.Maximum.MutedWordLengthInGraphemes graphemes, whenactorTargetis idunno.Bluesky.Actor.MutedWordActorTarget.Unknown, or whentargetscontains idunno.Bluesky.Actor.MutedWordTarget.Unknown.
MutedWord(MutedWord)
protected MutedWord(MutedWord original)Parameters
originalMutedWord
Properties
ActorTarget
Groups of users to apply the muted word to.
[JsonIgnore]
public MutedWordActorTarget ActorTarget { get; }Property Value
Remarks
A target this library does not recognize is reported as idunno.Bluesky.Actor.MutedWordActorTarget.Unknown. When the service does not send a target the lexicon default, idunno.Bluesky.Actor.MutedWordActorTarget.All, is reported.
ActorTarget
Groups of users to apply the muted word to.
[JsonIgnore]
public MutedWordActorTarget ActorTarget { get; }Property Value
Remarks
A target this library does not recognize is reported as idunno.Bluesky.Actor.MutedWordActorTarget.Unknown. When the service does not send a target the lexicon default, idunno.Bluesky.Actor.MutedWordActorTarget.All, is reported.
ActorTarget
Groups of users to apply the muted word to.
[JsonIgnore]
public MutedWordActorTarget ActorTarget { get; }Property Value
Remarks
A target this library does not recognize is reported as idunno.Bluesky.Actor.MutedWordActorTarget.Unknown. When the service does not send a target the lexicon default, idunno.Bluesky.Actor.MutedWordActorTarget.All, is reported.
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
ExpiresAt
The date and time at which the muted word will expire and no longer be applied, if any.
[JsonInclude]
public DateTimeOffset? ExpiresAt { get; init; }Property Value
ExpiresAt
The date and time at which the muted word will expire and no longer be applied, if any.
[JsonInclude]
public DateTimeOffset? ExpiresAt { get; init; }Property Value
ExpiresAt
The date and time at which the muted word will expire and no longer be applied, if any.
[JsonInclude]
public DateTimeOffset? ExpiresAt { get; init; }Property Value
Id
An optional identifier for the muted word configuration.
[JsonInclude]
public string? Id { get; init; }Property Value
Id
An optional identifier for the muted word configuration.
[JsonInclude]
public string? Id { get; init; }Property Value
Id
An optional identifier for the muted word configuration.
[JsonInclude]
public string? Id { get; init; }Property Value
Targets
The intended targets of the muted word.
[JsonIgnore]
public IReadOnlyList<MutedWordTarget> Targets { get; }Property Value
Remarks
A target this library does not recognize is reported as idunno.Bluesky.Actor.MutedWordTarget.Unknown.
Targets
The intended targets of the muted word.
[JsonIgnore]
public IReadOnlyList<MutedWordTarget> Targets { get; }Property Value
Remarks
A target this library does not recognize is reported as idunno.Bluesky.Actor.MutedWordTarget.Unknown.
Targets
The intended targets of the muted word.
[JsonIgnore]
public IReadOnlyList<MutedWordTarget> Targets { get; }Property Value
Remarks
A target this library does not recognize is reported as idunno.Bluesky.Actor.MutedWordTarget.Unknown.
Value
The muted word.
[JsonInclude]
[JsonRequired]
public string Value { get; init; }Property Value
Exceptions
- ArgumentNullException
-
Thrown when the value set is null.
- ArgumentOutOfRangeException
-
Thrown when the value set is longer than idunno.Bluesky.Maximum.MutedWordLengthInBytes bytes or idunno.Bluesky.Maximum.MutedWordLengthInGraphemes graphemes.
Value
The muted word.
[JsonInclude]
[JsonRequired]
public string Value { get; init; }Property Value
Exceptions
- ArgumentNullException
-
Thrown when the value set is null.
- ArgumentOutOfRangeException
-
Thrown when the value set is longer than idunno.Bluesky.Maximum.MutedWordLengthInBytes bytes or idunno.Bluesky.Maximum.MutedWordLengthInGraphemes graphemes.
Value
The muted word.
[JsonInclude]
[JsonRequired]
public string Value { get; init; }Property Value
Exceptions
- ArgumentNullException
-
Thrown when the value set is null.
- ArgumentOutOfRangeException
-
Thrown when the value set is longer than idunno.Bluesky.Maximum.MutedWordLengthInBytes bytes or idunno.Bluesky.Maximum.MutedWordLengthInGraphemes graphemes.
Methods
<Clone>$()
public virtual MutedWord <Clone>$()Returns
<Clone>$()
public virtual MutedWord <Clone>$()Returns
<Clone>$()
public virtual MutedWord <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(MutedWord?)
public virtual bool Equals(MutedWord? other)Parameters
otherMutedWord?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(MutedWord?)
public virtual bool Equals(MutedWord? other)Parameters
otherMutedWord?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(MutedWord?)
public virtual bool Equals(MutedWord? other)Parameters
otherMutedWord?
Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected virtual 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 ==(MutedWord?, MutedWord?)
public static bool operator ==(MutedWord? left, MutedWord? right)Parameters
Returns
operator ==(MutedWord?, MutedWord?)
public static bool operator ==(MutedWord? left, MutedWord? right)Parameters
Returns
operator ==(MutedWord?, MutedWord?)
public static bool operator ==(MutedWord? left, MutedWord? right)Parameters
Returns
operator !=(MutedWord?, MutedWord?)
public static bool operator !=(MutedWord? left, MutedWord? right)Parameters
Returns
operator !=(MutedWord?, MutedWord?)
public static bool operator !=(MutedWord? left, MutedWord? right)Parameters
Returns
operator !=(MutedWord?, MutedWord?)
public static bool operator !=(MutedWord? left, MutedWord? right)