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:
@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user