From 4771e0008dd26eadbb7eaff64255a6ec914fdadb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 10 Jul 2017 19:43:21 +0200 Subject: Better typescript typing for a better world --- .../remote-video-update-request.model.ts | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 shared/models/pods/remote-video/remote-video-update-request.model.ts (limited to 'shared/models/pods/remote-video/remote-video-update-request.model.ts') diff --git a/shared/models/pods/remote-video/remote-video-update-request.model.ts b/shared/models/pods/remote-video/remote-video-update-request.model.ts new file mode 100644 index 000000000..67ddbc1e4 --- /dev/null +++ b/shared/models/pods/remote-video/remote-video-update-request.model.ts @@ -0,0 +1,23 @@ +export interface RemoteVideoUpdateData { + remoteId: string + tags: string[] + name: string + extname: string + infoHash: string + category: number + licence: number + language: number + nsfw: boolean + description: string + duration: number + createdAt: Date + updatedAt: Date + views: number + likes: number + dislikes: number +} + +export interface RemoteVideoUpdateRequest { + type: 'update' + data: RemoteVideoUpdateData +} -- cgit v1.2.3