Table of Contents

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

include string

A string indicating what type of chat notifications should be sent. Known values are held in idunno.Bluesky.Chat.Notifications.ChatPreferencesKnownValues

push bool

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

include string

A string indicating what type of chat notifications should be sent. Known values are held in idunno.Bluesky.Chat.Notifications.ChatPreferencesKnownValues

push bool

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

include string

A string indicating what type of chat notifications should be sent. Known values are held in idunno.Bluesky.Chat.Notifications.ChatPreferencesKnownValues

push bool

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

string

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

string

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

string

Push

Gets or sets a flag indicating whether chat notifications should be pushed.

[JsonRequired]
public bool Push { get; set; }

Property Value

bool

Push

Gets or sets a flag indicating whether chat notifications should be pushed.

[JsonRequired]
public bool Push { get; set; }

Property Value

bool

Push

Gets or sets a flag indicating whether chat notifications should be pushed.

[JsonRequired]
public bool Push { get; set; }

Property Value

bool

Methods

<Clone>$()

public Preference <Clone>$()

Returns

Preference

<Clone>$()

public Preference <Clone>$()

Returns

Preference

<Clone>$()

public Preference <Clone>$()

Returns

Preference

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Preference?)

public bool Equals(Preference? other)

Parameters

other Preference?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Preference?)

public bool Equals(Preference? other)

Parameters

other Preference?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Preference?)

public bool Equals(Preference? other)

Parameters

other Preference?

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Preference?, Preference?)

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

Parameters

left Preference?
right Preference?

Returns

bool

operator ==(Preference?, Preference?)

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

Parameters

left Preference?
right Preference?

Returns

bool

operator ==(Preference?, Preference?)

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

Parameters

left Preference?
right Preference?

Returns

bool

operator !=(Preference?, Preference?)

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

Parameters

left Preference?
right Preference?

Returns

bool

operator !=(Preference?, Preference?)

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

Parameters

left Preference?
right Preference?

Returns

bool

operator !=(Preference?, Preference?)

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

Parameters

left Preference?
right Preference?

Returns

bool