Class SavedFeed
- Namespace
- idunno.Bluesky.Actor
- Assembly
- idunno.Bluesky.dll
Encapsulates feed preferences for an actor
public sealed record SavedFeed : IEquatable<SavedFeed>Inheritance
Implements
Inherited Members
Constructors
SavedFeed(string, SavedFeedPreferenceType, string, bool)
Creates a new instance of idunno.Bluesky.Actor.SavedFeed
public SavedFeed(string id, SavedFeedPreferenceType type, string value, bool pinned)Parameters
idstring-
The identifier of the feed preference.
typeSavedFeedPreferenceType-
The type of the feed preference.
valuestring-
The value of the feed preference.
pinnedbool-
A flag indicating whether the feed is pinned.
Exceptions
- ArgumentNullException
-
Thrown when
idorvalueis null. - ArgumentOutOfRangeException
-
Thrown when
typeis idunno.Bluesky.Actor.SavedFeedPreferenceType.Unknown.
SavedFeed(string, SavedFeedPreferenceType, string, bool)
Creates a new instance of idunno.Bluesky.Actor.SavedFeed
public SavedFeed(string id, SavedFeedPreferenceType type, string value, bool pinned)Parameters
idstring-
The identifier of the feed preference.
typeSavedFeedPreferenceType-
The type of the feed preference.
valuestring-
The value of the feed preference.
pinnedbool-
A flag indicating whether the feed is pinned.
Exceptions
- ArgumentNullException
-
Thrown when
idorvalueis null. - ArgumentOutOfRangeException
-
Thrown when
typeis idunno.Bluesky.Actor.SavedFeedPreferenceType.Unknown.
SavedFeed(string, SavedFeedPreferenceType, string, bool)
Creates a new instance of idunno.Bluesky.Actor.SavedFeed
public SavedFeed(string id, SavedFeedPreferenceType type, string value, bool pinned)Parameters
idstring-
The identifier of the feed preference.
typeSavedFeedPreferenceType-
The type of the feed preference.
valuestring-
The value of the feed preference.
pinnedbool-
A flag indicating whether the feed is pinned.
Exceptions
- ArgumentNullException
-
Thrown when
idorvalueis null. - ArgumentOutOfRangeException
-
Thrown when
typeis idunno.Bluesky.Actor.SavedFeedPreferenceType.Unknown.
Properties
Id
Gets the identifier of the feed preference.
[JsonRequired]
public string Id { get; init; }Property Value
Id
Gets the identifier of the feed preference.
[JsonRequired]
public string Id { get; init; }Property Value
Id
Gets the identifier of the feed preference.
[JsonRequired]
public string Id { get; init; }Property Value
Pinned
Gets a flag indicating whether the feed is pinned.
[JsonRequired]
public bool Pinned { get; init; }Property Value
Pinned
Gets a flag indicating whether the feed is pinned.
[JsonRequired]
public bool Pinned { get; init; }Property Value
Pinned
Gets a flag indicating whether the feed is pinned.
[JsonRequired]
public bool Pinned { get; init; }Property Value
Type
Gets the type of the feed preference.
[JsonIgnore]
public SavedFeedPreferenceType Type { get; }Property Value
Remarks
A type this library does not recognize is reported as idunno.Bluesky.Actor.SavedFeedPreferenceType.Unknown.
Type
Gets the type of the feed preference.
[JsonIgnore]
public SavedFeedPreferenceType Type { get; }Property Value
Remarks
A type this library does not recognize is reported as idunno.Bluesky.Actor.SavedFeedPreferenceType.Unknown.
Type
Gets the type of the feed preference.
[JsonIgnore]
public SavedFeedPreferenceType Type { get; }Property Value
Remarks
A type this library does not recognize is reported as idunno.Bluesky.Actor.SavedFeedPreferenceType.Unknown.
Value
Gets the value of the feed preference.
[JsonRequired]
public string Value { get; init; }Property Value
Value
Gets the value of the feed preference.
[JsonRequired]
public string Value { get; init; }Property Value
Value
Gets the value of the feed preference.
[JsonRequired]
public string Value { get; init; }Property Value
Methods
<Clone>$()
public SavedFeed <Clone>$()Returns
<Clone>$()
public SavedFeed <Clone>$()Returns
<Clone>$()
public SavedFeed <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(SavedFeed?)
public bool Equals(SavedFeed? other)Parameters
otherSavedFeed?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(SavedFeed?)
public bool Equals(SavedFeed? other)Parameters
otherSavedFeed?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(SavedFeed?)
public bool Equals(SavedFeed? other)Parameters
otherSavedFeed?
Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(SavedFeed?, SavedFeed?)
public static bool operator ==(SavedFeed? left, SavedFeed? right)Parameters
Returns
operator ==(SavedFeed?, SavedFeed?)
public static bool operator ==(SavedFeed? left, SavedFeed? right)Parameters
Returns
operator ==(SavedFeed?, SavedFeed?)
public static bool operator ==(SavedFeed? left, SavedFeed? right)Parameters
Returns
operator !=(SavedFeed?, SavedFeed?)
public static bool operator !=(SavedFeed? left, SavedFeed? right)Parameters
Returns
operator !=(SavedFeed?, SavedFeed?)
public static bool operator !=(SavedFeed? left, SavedFeed? right)Parameters
Returns
operator !=(SavedFeed?, SavedFeed?)
public static bool operator !=(SavedFeed? left, SavedFeed? right)