Skip to content

SudoSOS Back-end API / entity/notifications/user-notification-preference / UserNotificationPreference

Class: UserNotificationPreference ​

Extends ​

Constructors ​

Constructor ​

ts
new UserNotificationPreference(): UserNotificationPreference;

Returns ​

UserNotificationPreference

Inherited from ​

BaseEntity.constructor

Properties ​

PropertyModifierTypeDescriptionInherited from
channelpublicEMAILThe channel of the notification.-
createdAtreadonlyDateThe creation date of the object.BaseEntity.createdAt
enabledpublicbooleanWhether the user has this notification enabled.-
idreadonlynumber-BaseEntity.id
typepublicNotificationTypesThe type of notification.-
updatedAtreadonlyDateThe last update date of the object.BaseEntity.updatedAt
userpublicUserThe user for which the notification was made.-
userIdpublicnumber--
versionreadonlynumberThe current version of the object.BaseEntity.version

Accessors ​

isMandatory ​

Get Signature ​

ts
get isMandatory(): boolean;

Returns whether this notification type is mandatory.

Returns ​

boolean

True if this notification type is mandatory, false otherwise.