aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/users/user-notification-setting.model.ts
blob: 4e2230a76e581d4f4c33168ca80ced2b418cc6fd (plain) (tree)
1
2
3
4
5
6
7
8
9
                                          


                




                                                        
                                                
                                                             
                                                  

                                                     


                                                   
                                                   
                                                     
 
export enum UserNotificationSettingValue {
  NONE = 0,
  WEB = 1 << 0,
  EMAIL = 1 << 1
}

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