UserSettings Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

Model used for user settings.

public class UserSettings
Inheritance:
System.Object → UserSettings

Constructors

UserSettings() Initializes a new instance of the UserSettings class.

Properties

CommentNotifications Gets or sets a value indicating whether the user wants to be notified about comments.
DesktopNotifications Gets or sets a value indicating whether the user wants to get desktop push notifications.
EmailNotifications Gets or sets a value indicating whether the user wants to get email notifications.
EnterToSend Gets or sets a value indicating whether Enter should send a message or insert a new line.
LikeNotifications Gets or sets a value indicating whether the user wants to be notified about likes.
MobileNotifications Gets or sets a value indicating whether the user wants to get mobile push notifications.
TimeZone Gets or sets the user time zone.
VoteNotifications Gets or sets a value indicating whether the user wants to be notified about votes.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.