diff options
Diffstat (limited to 'shared/models/users/user-notification.model.ts')
-rw-r--r-- | shared/models/users/user-notification.model.ts | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/shared/models/users/user-notification.model.ts b/shared/models/users/user-notification.model.ts index 39beb2350..ee9ac275a 100644 --- a/shared/models/users/user-notification.model.ts +++ b/shared/models/users/user-notification.model.ts | |||
@@ -3,10 +3,13 @@ export enum UserNotificationType { | |||
3 | NEW_COMMENT_ON_MY_VIDEO = 2, | 3 | NEW_COMMENT_ON_MY_VIDEO = 2, |
4 | NEW_VIDEO_ABUSE_FOR_MODERATORS = 3, | 4 | NEW_VIDEO_ABUSE_FOR_MODERATORS = 3, |
5 | BLACKLIST_ON_MY_VIDEO = 4, | 5 | BLACKLIST_ON_MY_VIDEO = 4, |
6 | UNBLACKLIST_ON_MY_VIDEO = 5 | 6 | UNBLACKLIST_ON_MY_VIDEO = 5, |
7 | MY_VIDEO_PUBLISHED = 6, | ||
8 | MY_VIDEO_IMPORT_SUCCESS = 7, | ||
9 | MY_VIDEO_IMPORT_ERROR = 8 | ||
7 | } | 10 | } |
8 | 11 | ||
9 | interface VideoInfo { | 12 | export interface VideoInfo { |
10 | id: number | 13 | id: number |
11 | uuid: string | 14 | uuid: string |
12 | name: string | 15 | name: string |
@@ -24,12 +27,22 @@ export interface UserNotification { | |||
24 | } | 27 | } |
25 | } | 28 | } |
26 | 29 | ||
30 | videoImport?: { | ||
31 | id: number | ||
32 | video?: VideoInfo | ||
33 | torrentName?: string | ||
34 | magnetUri?: string | ||
35 | targetUrl?: string | ||
36 | } | ||
37 | |||
27 | comment?: { | 38 | comment?: { |
28 | id: number | 39 | id: number |
40 | threadId: number | ||
29 | account: { | 41 | account: { |
30 | id: number | 42 | id: number |
31 | displayName: string | 43 | displayName: string |
32 | } | 44 | } |
45 | video: VideoInfo | ||
33 | } | 46 | } |
34 | 47 | ||
35 | videoAbuse?: { | 48 | videoAbuse?: { |