aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/users/user-notification-setting.model.ts
blob: c7590fa8a413894d215c89271716e590251980c9 (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 {
  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
}