From 05a9feaa48cea560abd9561434a3479ab1021643 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 26 Feb 2017 19:59:51 +0100 Subject: Client: add views information and sort --- client/src/app/videos/shared/video.model.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'client/src/app/videos/shared') diff --git a/client/src/app/videos/shared/video.model.ts b/client/src/app/videos/shared/video.model.ts index fae001d78..8e676708b 100644 --- a/client/src/app/videos/shared/video.model.ts +++ b/client/src/app/videos/shared/video.model.ts @@ -11,6 +11,7 @@ export class Video { podHost: string; tags: string[]; thumbnailPath: string; + views: number; private static createByString(author: string, podHost: string) { return author + '@' + podHost; @@ -36,7 +37,8 @@ export class Video { name: string, podHost: string, tags: string[], - thumbnailPath: string + thumbnailPath: string, + views: number }) { this.author = hash.author; this.createdAt = new Date(hash.createdAt); @@ -49,6 +51,7 @@ export class Video { this.podHost = hash.podHost; this.tags = hash.tags; this.thumbnailPath = hash.thumbnailPath; + this.views = hash.views; this.by = Video.createByString(hash.author, hash.podHost); } -- cgit v1.2.3