1
0
Fork 0
peertube/shared/models/users/user-notification-setting.model.ts
2020-08-07 08:28:14 +02:00

27 lines
865 B
TypeScript

export const enum UserNotificationSettingValue {
NONE = 0,
WEB = 1 << 0,
EMAIL = 1 << 1
}
export interface UserNotificationSetting {
abuseAsModerator: UserNotificationSettingValue
videoAutoBlacklistAsModerator: UserNotificationSettingValue
newUserRegistration: UserNotificationSettingValue
newVideoFromSubscription: UserNotificationSettingValue
blacklistOnMyVideo: UserNotificationSettingValue
myVideoPublished: UserNotificationSettingValue
myVideoImportFinished: UserNotificationSettingValue
commentMention: UserNotificationSettingValue
newCommentOnMyVideo: UserNotificationSettingValue
newFollow: UserNotificationSettingValue
newInstanceFollower: UserNotificationSettingValue
autoInstanceFollowing: UserNotificationSettingValue
abuseStateChange: UserNotificationSettingValue
abuseNewMessage: UserNotificationSettingValue
}