aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/users/user-notification-setting.model.ts
blob: e2a882b6916e324f9c28289dfc6c3b2ea3b33081 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
export enum UserNotificationSettingValue {
  NONE = 0,
  WEB = 1 << 0,
  EMAIL = 1 << 1
}

export interface UserNotificationSetting {
  newVideoFromSubscription: UserNotificationSettingValue
  newCommentOnMyVideo: UserNotificationSettingValue
  videoAbuseAsModerator: UserNotificationSettingValue
  videoAutoBlacklistAsModerator: UserNotificationSettingValue
  blacklistOnMyVideo: UserNotificationSettingValue
  myVideoPublished: UserNotificationSettingValue
  myVideoImportFinished: UserNotificationSettingValue
  newUserRegistration: UserNotificationSettingValue
  newFollow: UserNotificationSettingValue
  commentMention: UserNotificationSettingValue
  newInstanceFollower: UserNotificationSettingValue
}