Class LabelersPreference
- Namespace
- idunno.Bluesky.Actor
- Assembly
- idunno.Bluesky.dll
A user's labelers preferences
public sealed record LabelersPreference : Preference, IEquatable<Preference>, IEquatable<LabelersPreference>Inheritance
Implements
Inherited Members
Constructors
LabelersPreference(IReadOnlyList<LabelerPreference>)
Creates a new instance of idunno.Bluesky.Actor.LabelersPreference from the specified labelers.
[JsonConstructor]
public LabelersPreference(IReadOnlyList<LabelerPreference> labelers)Parameters
labelersIReadOnlyList<LabelerPreference>-
A list of idunno.Bluesky.Actor.LabelerPreferences.
Exceptions
- ArgumentNullException
-
Thrown when
labelersis null.
LabelersPreference(IReadOnlyList<LabelerPreference>)
Creates a new instance of idunno.Bluesky.Actor.LabelersPreference from the specified labelers.
[JsonConstructor]
public LabelersPreference(IReadOnlyList<LabelerPreference> labelers)Parameters
labelersIReadOnlyList<LabelerPreference>-
A list of idunno.Bluesky.Actor.LabelerPreferences.
Exceptions
- ArgumentNullException
-
Thrown when
labelersis null.
LabelersPreference(IReadOnlyList<LabelerPreference>)
Creates a new instance of idunno.Bluesky.Actor.LabelersPreference from the specified labelers.
[JsonConstructor]
public LabelersPreference(IReadOnlyList<LabelerPreference> labelers)Parameters
labelersIReadOnlyList<LabelerPreference>-
A list of idunno.Bluesky.Actor.LabelerPreferences.
Exceptions
- ArgumentNullException
-
Thrown when
labelersis null.
Properties
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
Labelers
Gets the list of idunno.Bluesky.Actor.LabelerPreferences.
[JsonInclude]
[JsonRequired]
public IReadOnlyList<LabelerPreference> Labelers { get; init; }Property Value
Remarks
The collection is copied when it is set, so later changes to the collection the caller supplied do not alter the preference, and the returned collection is read only.
Labelers
Gets the list of idunno.Bluesky.Actor.LabelerPreferences.
[JsonInclude]
[JsonRequired]
public IReadOnlyList<LabelerPreference> Labelers { get; init; }Property Value
Remarks
The collection is copied when it is set, so later changes to the collection the caller supplied do not alter the preference, and the returned collection is read only.
Labelers
Gets the list of idunno.Bluesky.Actor.LabelerPreferences.
[JsonInclude]
[JsonRequired]
public IReadOnlyList<LabelerPreference> Labelers { get; init; }Property Value
Remarks
The collection is copied when it is set, so later changes to the collection the caller supplied do not alter the preference, and the returned collection is read only.
Methods
<Clone>$()
public override LabelersPreference <Clone>$()Returns
<Clone>$()
public override LabelersPreference <Clone>$()Returns
<Clone>$()
public override LabelersPreference <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Preference?)
public override sealed bool Equals(Preference? other)Parameters
otherPreference?
Returns
Equals(LabelersPreference?)
public bool Equals(LabelersPreference? other)Parameters
otherLabelersPreference?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Preference?)
public override sealed bool Equals(Preference? other)Parameters
otherPreference?
Returns
Equals(LabelersPreference?)
public bool Equals(LabelersPreference? other)Parameters
otherLabelersPreference?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Preference?)
public override sealed bool Equals(Preference? other)Parameters
otherPreference?
Returns
Equals(LabelersPreference?)
public bool Equals(LabelersPreference? other)Parameters
otherLabelersPreference?
Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
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 ==(LabelersPreference?, LabelersPreference?)
public static bool operator ==(LabelersPreference? left, LabelersPreference? right)Parameters
leftLabelersPreference?rightLabelersPreference?
Returns
operator ==(LabelersPreference?, LabelersPreference?)
public static bool operator ==(LabelersPreference? left, LabelersPreference? right)Parameters
leftLabelersPreference?rightLabelersPreference?
Returns
operator ==(LabelersPreference?, LabelersPreference?)
public static bool operator ==(LabelersPreference? left, LabelersPreference? right)Parameters
leftLabelersPreference?rightLabelersPreference?
Returns
operator !=(LabelersPreference?, LabelersPreference?)
public static bool operator !=(LabelersPreference? left, LabelersPreference? right)Parameters
leftLabelersPreference?rightLabelersPreference?
Returns
operator !=(LabelersPreference?, LabelersPreference?)
public static bool operator !=(LabelersPreference? left, LabelersPreference? right)Parameters
leftLabelersPreference?rightLabelersPreference?
Returns
operator !=(LabelersPreference?, LabelersPreference?)
public static bool operator !=(LabelersPreference? left, LabelersPreference? right)Parameters
leftLabelersPreference?rightLabelersPreference?