]>
Commit | Line | Data |
---|---|---|
1 | import { Account } from '../../actors/index' | |
2 | import { VideoConstant } from '../video-constant.model' | |
3 | import { VideoAbuseState } from './video-abuse-state.model' | |
4 | import { VideoChannel } from '../channel/video-channel.model' | |
5 | import { VideoAbusePredefinedReasonsString } from './video-abuse-reason.model' | |
6 | ||
7 | export interface VideoAbuse { | |
8 | id: number | |
9 | reason: string | |
10 | predefinedReasons?: VideoAbusePredefinedReasonsString[] | |
11 | reporterAccount: Account | |
12 | ||
13 | state: VideoConstant<VideoAbuseState> | |
14 | moderationComment?: string | |
15 | ||
16 | video: { | |
17 | id: number | |
18 | name: string | |
19 | uuid: string | |
20 | nsfw: boolean | |
21 | deleted: boolean | |
22 | blacklisted: boolean | |
23 | thumbnailPath?: string | |
24 | channel?: VideoChannel | |
25 | } | |
26 | ||
27 | createdAt: Date | |
28 | updatedAt: Date | |
29 | ||
30 | startAt: number | |
31 | endAt: number | |
32 | ||
33 | count?: number | |
34 | nth?: number | |
35 | ||
36 | countReportsForReporter?: number | |
37 | countReportsForReportee?: number | |
38 | } |