aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-11 11:02:35 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-11 11:02:35 +0200
commit69f616ab3aeefd6ce330600604df90f2f48bfe3b (patch)
tree1b40d6005e645d97a7db9784f32cd90b156528fa /shared/models
parent75fb0c0b2efe7fb952d45d2bf111e9594f7d5b42 (diff)
downloadPeerTube-69f616ab3aeefd6ce330600604df90f2f48bfe3b.tar.gz
PeerTube-69f616ab3aeefd6ce330600604df90f2f48bfe3b.tar.zst
PeerTube-69f616ab3aeefd6ce330600604df90f2f48bfe3b.zip
Use shared models
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/user.model.ts2
-rw-r--r--shared/models/video.model.ts22
2 files changed, 22 insertions, 2 deletions
diff --git a/shared/models/user.model.ts b/shared/models/user.model.ts
index 01cc380d3..a6be359d3 100644
--- a/shared/models/user.model.ts
+++ b/shared/models/user.model.ts
@@ -3,6 +3,6 @@ export interface User {
3 username: string 3 username: string
4 email: string 4 email: string
5 displayNSFW: boolean 5 displayNSFW: boolean
6 role: string[] 6 role: string
7 createdAt: Date 7 createdAt: Date
8} 8}
diff --git a/shared/models/video.model.ts b/shared/models/video.model.ts
index 355e912d2..2e35f005c 100644
--- a/shared/models/video.model.ts
+++ b/shared/models/video.model.ts
@@ -1,3 +1,23 @@
1export interface Video { 1export interface Video {
2 2 id: string
3 author: string
4 createdAt: Date
5 categoryLabel: string
6 category: number
7 licenceLabel: string
8 licence: number
9 languageLabel: string
10 language: number
11 description: string
12 duration: number
13 isLocal: boolean
14 magnetUri: string
15 name: string
16 podHost: string
17 tags: string[]
18 thumbnailPath: string
19 views: number
20 likes: number
21 dislikes: number
22 nsfw: boolean
3} 23}