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
tagsICollection<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
tagscontains 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
tagsICollection<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
tagscontains 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
tagsICollection<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
tagscontains 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
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
Tags
A list of tags which describe the account owner's interests gathered during onboarding.
public ICollection<string> Tags { get; set; }Property Value
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
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
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
UpdatedAt
Gets or sets the timestamp when the account owner last updated their interests
public DateTimeOffset? UpdatedAt { get; set; }Property Value
UpdatedAt
Gets or sets the timestamp when the account owner last updated their interests
public DateTimeOffset? UpdatedAt { get; set; }Property Value
Methods
<Clone>$()
public override InterestsPreference <Clone>$()Returns
<Clone>$()
public override InterestsPreference <Clone>$()Returns
<Clone>$()
public override InterestsPreference <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(InterestsPreference?)
public bool Equals(InterestsPreference? other)Parameters
otherInterestsPreference?
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(InterestsPreference?)
public bool Equals(InterestsPreference? other)Parameters
otherInterestsPreference?
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(InterestsPreference?)
public bool Equals(InterestsPreference? other)Parameters
otherInterestsPreference?
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 ==(InterestsPreference?, InterestsPreference?)
public static bool operator ==(InterestsPreference? left, InterestsPreference? right)Parameters
leftInterestsPreference?rightInterestsPreference?
Returns
operator ==(InterestsPreference?, InterestsPreference?)
public static bool operator ==(InterestsPreference? left, InterestsPreference? right)Parameters
leftInterestsPreference?rightInterestsPreference?
Returns
operator ==(InterestsPreference?, InterestsPreference?)
public static bool operator ==(InterestsPreference? left, InterestsPreference? right)Parameters
leftInterestsPreference?rightInterestsPreference?
Returns
operator !=(InterestsPreference?, InterestsPreference?)
public static bool operator !=(InterestsPreference? left, InterestsPreference? right)Parameters
leftInterestsPreference?rightInterestsPreference?
Returns
operator !=(InterestsPreference?, InterestsPreference?)
public static bool operator !=(InterestsPreference? left, InterestsPreference? right)Parameters
leftInterestsPreference?rightInterestsPreference?
Returns
operator !=(InterestsPreference?, InterestsPreference?)
public static bool operator !=(InterestsPreference? left, InterestsPreference? right)Parameters
leftInterestsPreference?rightInterestsPreference?