SudoSOS Back-end API / entity/notifications/user-notification-preference / UserNotificationPreference
Class: UserNotificationPreference ​
Extends ​
Constructors ​
Constructor ​
ts
new UserNotificationPreference(): UserNotificationPreference;Returns ​
UserNotificationPreference
Inherited from ​
Properties ​
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
channel | public | EMAIL | The channel of the notification. | - |
createdAt | readonly | Date | The creation date of the object. | BaseEntity.createdAt |
enabled | public | boolean | Whether the user has this notification enabled. | - |
id | readonly | number | - | BaseEntity.id |
type | public | NotificationTypes | The type of notification. | - |
updatedAt | readonly | Date | The last update date of the object. | BaseEntity.updatedAt |
user | public | User | The user for which the notification was made. | - |
userId | public | number | - | - |
version | readonly | number | The 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.