Table of Contents

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

labelers IReadOnlyList<LabelerPreference>

A list of idunno.Bluesky.Actor.LabelerPreferences.

Exceptions

ArgumentNullException

Thrown when labelers is null.

LabelersPreference(IReadOnlyList<LabelerPreference>)

Creates a new instance of idunno.Bluesky.Actor.LabelersPreference from the specified labelers.

[JsonConstructor]
public LabelersPreference(IReadOnlyList<LabelerPreference> labelers)

Parameters

labelers IReadOnlyList<LabelerPreference>

A list of idunno.Bluesky.Actor.LabelerPreferences.

Exceptions

ArgumentNullException

Thrown when labelers is null.

LabelersPreference(IReadOnlyList<LabelerPreference>)

Creates a new instance of idunno.Bluesky.Actor.LabelersPreference from the specified labelers.

[JsonConstructor]
public LabelersPreference(IReadOnlyList<LabelerPreference> labelers)

Parameters

labelers IReadOnlyList<LabelerPreference>

A list of idunno.Bluesky.Actor.LabelerPreferences.

Exceptions

ArgumentNullException

Thrown when labelers is null.

Properties

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

Labelers

Gets the list of idunno.Bluesky.Actor.LabelerPreferences.

[JsonInclude]
[JsonRequired]
public IReadOnlyList<LabelerPreference> Labelers { get; init; }

Property Value

IReadOnlyList<LabelerPreference>

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

IReadOnlyList<LabelerPreference>

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

IReadOnlyList<LabelerPreference>

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

LabelersPreference

<Clone>$()

public override LabelersPreference <Clone>$()

Returns

LabelersPreference

<Clone>$()

public override LabelersPreference <Clone>$()

Returns

LabelersPreference

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Preference?)

public override sealed bool Equals(Preference? other)

Parameters

other Preference?

Returns

bool

Equals(LabelersPreference?)

public bool Equals(LabelersPreference? other)

Parameters

other LabelersPreference?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Preference?)

public override sealed bool Equals(Preference? other)

Parameters

other Preference?

Returns

bool

Equals(LabelersPreference?)

public bool Equals(LabelersPreference? other)

Parameters

other LabelersPreference?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Preference?)

public override sealed bool Equals(Preference? other)

Parameters

other Preference?

Returns

bool

Equals(LabelersPreference?)

public bool Equals(LabelersPreference? other)

Parameters

other LabelersPreference?

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

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

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

Parameters

left LabelersPreference?
right LabelersPreference?

Returns

bool

operator ==(LabelersPreference?, LabelersPreference?)

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

Parameters

left LabelersPreference?
right LabelersPreference?

Returns

bool

operator ==(LabelersPreference?, LabelersPreference?)

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

Parameters

left LabelersPreference?
right LabelersPreference?

Returns

bool

operator !=(LabelersPreference?, LabelersPreference?)

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

Parameters

left LabelersPreference?
right LabelersPreference?

Returns

bool

operator !=(LabelersPreference?, LabelersPreference?)

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

Parameters

left LabelersPreference?
right LabelersPreference?

Returns

bool

operator !=(LabelersPreference?, LabelersPreference?)

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

Parameters

left LabelersPreference?
right LabelersPreference?

Returns

bool