podHost: string;
tags: string[];
thumbnailPath: string;
+ views: number;
+ likes: number;
+ dislikes: number;
private static createByString(author: string, podHost: string) {
return author + '@' + podHost;
name: string,
podHost: string,
tags: string[],
- thumbnailPath: string
+ thumbnailPath: string,
+ views: number,
+ likes: number,
+ dislikes: number,
}) {
this.author = hash.author;
this.createdAt = new Date(hash.createdAt);
this.podHost = hash.podHost;
this.tags = hash.tags;
this.thumbnailPath = hash.thumbnailPath;
+ this.views = hash.views;
+ this.likes = hash.likes;
+ this.dislikes = hash.dislikes;
this.by = Video.createByString(hash.author, hash.podHost);
}