aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos/change-ownership/video-change-ownership.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/videos/change-ownership/video-change-ownership.model.ts')
-rw-r--r--shared/models/videos/change-ownership/video-change-ownership.model.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/shared/models/videos/change-ownership/video-change-ownership.model.ts b/shared/models/videos/change-ownership/video-change-ownership.model.ts
new file mode 100644
index 000000000..3d31cad0a
--- /dev/null
+++ b/shared/models/videos/change-ownership/video-change-ownership.model.ts
@@ -0,0 +1,17 @@
1import { Account } from '../../actors'
2import { Video } from '../video.model'
3
4export interface VideoChangeOwnership {
5 id: number
6 status: VideoChangeOwnershipStatus
7 initiatorAccount: Account
8 nextOwnerAccount: Account
9 video: Video
10 createdAt: Date
11}
12
13export const enum VideoChangeOwnershipStatus {
14 WAITING = 'WAITING',
15 ACCEPTED = 'ACCEPTED',
16 REFUSED = 'REFUSED'
17}