Table of Contents

Class InterestsPreference

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

A idunno.Bluesky.Actor.Preference containing tags which describe the account owner's interests gathered during onboarding.

public sealed record InterestsPreference : Preference, IEquatable<Preference>, IEquatable<InterestsPreference>

Inheritance

Implements

Inherited Members

Remarks

See https://github.com/bluesky-social/atproto/blob/main/lexicons/app/bsky/actor/defs.json for the definition.

Constructors

InterestsPreference(ICollection<string>)

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

public InterestsPreference(ICollection<string> tags)

Parameters

tags ICollection<string>

A list of tags which describe the account owner's interests gathered during onboarding.

Exceptions

ArgumentNullException

Thrown when tags, or any entry in it, is null.

ArgumentOutOfRangeException

Thrown when tags contains more than idunno.Bluesky.Maximum.InterestTags tags, or when any tag is longer than idunno.Bluesky.Maximum.TagLengthInBytes bytes or idunno.Bluesky.Maximum.TagLengthInGraphemes graphemes.

InterestsPreference(ICollection<string>)

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

public InterestsPreference(ICollection<string> tags)

Parameters

tags ICollection<string>

A list of tags which describe the account owner's interests gathered during onboarding.

Exceptions

ArgumentNullException

Thrown when tags, or any entry in it, is null.

ArgumentOutOfRangeException

Thrown when tags contains more than idunno.Bluesky.Maximum.InterestTags tags, or when any tag is longer than idunno.Bluesky.Maximum.TagLengthInBytes bytes or idunno.Bluesky.Maximum.TagLengthInGraphemes graphemes.

InterestsPreference(ICollection<string>)

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

public InterestsPreference(ICollection<string> tags)

Parameters

tags ICollection<string>

A list of tags which describe the account owner's interests gathered during onboarding.

Exceptions

ArgumentNullException

Thrown when tags, or any entry in it, is null.

ArgumentOutOfRangeException

Thrown when tags contains more than idunno.Bluesky.Maximum.InterestTags tags, or when any tag is longer than idunno.Bluesky.Maximum.TagLengthInBytes bytes or idunno.Bluesky.Maximum.TagLengthInGraphemes graphemes.

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

Tags

A list of tags which describe the account owner's interests gathered during onboarding.

public ICollection<string> Tags { get; set; }

Property Value

ICollection<string>

Exceptions

ArgumentNullException

Thrown when the value set, or any entry in it, is null.

ArgumentOutOfRangeException

Thrown when the value set contains more than idunno.Bluesky.Maximum.InterestTags tags, or when any tag is longer than idunno.Bluesky.Maximum.TagLengthInBytes bytes or idunno.Bluesky.Maximum.TagLengthInGraphemes graphemes.

Tags

A list of tags which describe the account owner's interests gathered during onboarding.

public ICollection<string> Tags { get; set; }

Property Value

ICollection<string>

Exceptions

ArgumentNullException

Thrown when the value set, or any entry in it, is null.

ArgumentOutOfRangeException

Thrown when the value set contains more than idunno.Bluesky.Maximum.InterestTags tags, or when any tag is longer than idunno.Bluesky.Maximum.TagLengthInBytes bytes or idunno.Bluesky.Maximum.TagLengthInGraphemes graphemes.

Tags

A list of tags which describe the account owner's interests gathered during onboarding.

public ICollection<string> Tags { get; set; }

Property Value

ICollection<string>

Exceptions

ArgumentNullException

Thrown when the value set, or any entry in it, is null.

ArgumentOutOfRangeException

Thrown when the value set contains more than idunno.Bluesky.Maximum.InterestTags tags, or when any tag is longer than idunno.Bluesky.Maximum.TagLengthInBytes bytes or idunno.Bluesky.Maximum.TagLengthInGraphemes graphemes.

UpdatedAt

Gets or sets the timestamp when the account owner last updated their interests

public DateTimeOffset? UpdatedAt { get; set; }

Property Value

DateTimeOffset?

UpdatedAt

Gets or sets the timestamp when the account owner last updated their interests

public DateTimeOffset? UpdatedAt { get; set; }

Property Value

DateTimeOffset?

UpdatedAt

Gets or sets the timestamp when the account owner last updated their interests

public DateTimeOffset? UpdatedAt { get; set; }

Property Value

DateTimeOffset?

Methods

<Clone>$()

public override InterestsPreference <Clone>$()

Returns

InterestsPreference

<Clone>$()

public override InterestsPreference <Clone>$()

Returns

InterestsPreference

<Clone>$()

public override InterestsPreference <Clone>$()

Returns

InterestsPreference

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(InterestsPreference?)

public bool Equals(InterestsPreference? other)

Parameters

other InterestsPreference?

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(InterestsPreference?)

public bool Equals(InterestsPreference? other)

Parameters

other InterestsPreference?

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(InterestsPreference?)

public bool Equals(InterestsPreference? other)

Parameters

other InterestsPreference?

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

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

Parameters

left InterestsPreference?
right InterestsPreference?

Returns

bool

operator ==(InterestsPreference?, InterestsPreference?)

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

Parameters

left InterestsPreference?
right InterestsPreference?

Returns

bool

operator ==(InterestsPreference?, InterestsPreference?)

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

Parameters

left InterestsPreference?
right InterestsPreference?

Returns

bool

operator !=(InterestsPreference?, InterestsPreference?)

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

Parameters

left InterestsPreference?
right InterestsPreference?

Returns

bool

operator !=(InterestsPreference?, InterestsPreference?)

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

Parameters

left InterestsPreference?
right InterestsPreference?

Returns

bool

operator !=(InterestsPreference?, InterestsPreference?)

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

Parameters

left InterestsPreference?
right InterestsPreference?

Returns

bool