1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2025-06-20 16:45:16 +00:00

Post are more complete

This commit is contained in:
2020-01-03 10:30:37 +01:00
parent f18a0952d6
commit f0c8781ba7
2 changed files with 26 additions and 3 deletions

View File

@ -148,4 +148,16 @@ export class Post implements PostBuilder {
get hasFile() : boolean {
return this.file != null && this.file != undefined;
}
get hasMovie() : boolean {
return this.kind == PostKind.POST_KIND_MOVIE;
}
get hasTimeEnd() : boolean {
return this.kind == PostKind.POST_KIND_COUNTDOWN;
}
get hasLink() : boolean {
return this.kind == PostKind.POST_KIND_WEBLINK;
}
}