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

export interface VideoChangeOwnership {
  id: number
  status: VideoChangeOwnershipStatus
  initiatorAccount: Account
  nextOwnerAccount: Account
  video: Video
  createdAt: Date
}

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