Class Preference
- Namespace
- idunno.Bluesky.Chat.Notifications
- Assembly
- idunno.Bluesky.dll
Encapsulates notification preferences for chats and chat requests.
public sealed record Preference : IEquatable<Preference>Inheritance
Implements
Inherited Members
Constructors
Preference(string, bool)
Creates a new instance of idunno.Bluesky.Chat.Notifications.Preference.
[JsonConstructor]
public Preference(string include, bool push)Parameters
includestring-
A string indicating what type of chat notifications should be sent. Known values are held in idunno.Bluesky.Chat.Notifications.ChatPreferencesKnownValues
pushbool-
A flag indicating whether chat notifications should be pushed.
Preference(string, bool)
Creates a new instance of idunno.Bluesky.Chat.Notifications.Preference.
[JsonConstructor]
public Preference(string include, bool push)Parameters
includestring-
A string indicating what type of chat notifications should be sent. Known values are held in idunno.Bluesky.Chat.Notifications.ChatPreferencesKnownValues
pushbool-
A flag indicating whether chat notifications should be pushed.
Preference(string, bool)
Creates a new instance of idunno.Bluesky.Chat.Notifications.Preference.
[JsonConstructor]
public Preference(string include, bool push)Parameters
includestring-
A string indicating what type of chat notifications should be sent. Known values are held in idunno.Bluesky.Chat.Notifications.ChatPreferencesKnownValues
pushbool-
A flag indicating whether chat notifications should be pushed.
Properties
Include
Gets or sets a string indicating what type of chat notifications should be sent. Known values are held in idunno.Bluesky.Chat.Notifications.ChatPreferencesKnownValues. Unknown values will be returned as-is.
[JsonRequired]
public string Include { get; set; }Property Value
Include
Gets or sets a string indicating what type of chat notifications should be sent. Known values are held in idunno.Bluesky.Chat.Notifications.ChatPreferencesKnownValues. Unknown values will be returned as-is.
[JsonRequired]
public string Include { get; set; }Property Value
Include
Gets or sets a string indicating what type of chat notifications should be sent. Known values are held in idunno.Bluesky.Chat.Notifications.ChatPreferencesKnownValues. Unknown values will be returned as-is.
[JsonRequired]
public string Include { get; set; }Property Value
Push
Gets or sets a flag indicating whether chat notifications should be pushed.
[JsonRequired]
public bool Push { get; set; }Property Value
Push
Gets or sets a flag indicating whether chat notifications should be pushed.
[JsonRequired]
public bool Push { get; set; }Property Value
Push
Gets or sets a flag indicating whether chat notifications should be pushed.
[JsonRequired]
public bool Push { get; set; }Property Value
Methods
<Clone>$()
public Preference <Clone>$()Returns
<Clone>$()
public Preference <Clone>$()Returns
<Clone>$()
public Preference <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Preference?)
public bool Equals(Preference? other)Parameters
otherPreference?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Preference?)
public bool Equals(Preference? other)Parameters
otherPreference?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Preference?)
public bool Equals(Preference? other)Parameters
otherPreference?
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 ==(Preference?, Preference?)
public static bool operator ==(Preference? left, Preference? right)Parameters
leftPreference?rightPreference?
Returns
operator ==(Preference?, Preference?)
public static bool operator ==(Preference? left, Preference? right)Parameters
leftPreference?rightPreference?
Returns
operator ==(Preference?, Preference?)
public static bool operator ==(Preference? left, Preference? right)Parameters
leftPreference?rightPreference?
Returns
operator !=(Preference?, Preference?)
public static bool operator !=(Preference? left, Preference? right)Parameters
leftPreference?rightPreference?
Returns
operator !=(Preference?, Preference?)
public static bool operator !=(Preference? left, Preference? right)Parameters
leftPreference?rightPreference?
Returns
operator !=(Preference?, Preference?)
public static bool operator !=(Preference? left, Preference? right)Parameters
leftPreference?rightPreference?