aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/videos/abuse/video-abuse-reason.model.ts
blob: 9064f0c1ae1656dc51cede72c80081cdb6c64121 (plain) (tree)
































                                                                         
export enum VideoAbusePredefinedReasons {
  VIOLENT_OR_REPULSIVE = 1,
  HATEFUL_OR_ABUSIVE,
  SPAM_OR_MISLEADING,
  PRIVACY,
  RIGHTS,
  SERVER_RULES,
  THUMBNAILS,
  CAPTIONS
}

export type VideoAbusePredefinedReasonsString =
  'violentOrRepulsive' |
  'hatefulOrAbusive' |
  'spamOrMisleading' |
  'privacy' |
  'rights' |
  'serverRules' |
  'thumbnails' |
  'captions'

export const videoAbusePredefinedReasonsMap: {
  [key in VideoAbusePredefinedReasonsString]: VideoAbusePredefinedReasons
} = {
  violentOrRepulsive: VideoAbusePredefinedReasons.VIOLENT_OR_REPULSIVE,
  hatefulOrAbusive: VideoAbusePredefinedReasons.HATEFUL_OR_ABUSIVE,
  spamOrMisleading: VideoAbusePredefinedReasons.SPAM_OR_MISLEADING,
  privacy: VideoAbusePredefinedReasons.PRIVACY,
  rights: VideoAbusePredefinedReasons.RIGHTS,
  serverRules: VideoAbusePredefinedReasons.SERVER_RULES,
  thumbnails: VideoAbusePredefinedReasons.THUMBNAILS,
  captions: VideoAbusePredefinedReasons.CAPTIONS
}