aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos/video-change-ownership.model.ts
blob: 0d735c7985ed62614a562e9c1c18af45a479e10d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { Account } from '../actors'

export interface VideoChangeOwnership {
  id: number
  status: VideoChangeOwnershipStatus
  initiatorAccount: Account
  nextOwnerAccount: Account
  video: {
    id: number
    name: string
    uuid: string
    url: string
  }
  createdAt: Date
}

export enum VideoChangeOwnershipStatus {
  WAITING = 'WAITING',
  ACCEPTED = 'ACCEPTED',
  REFUSED = 'REFUSED'
}