1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Can create YouTube posts

This commit is contained in:
2020-04-25 17:16:33 +02:00
parent bb62a3a159
commit da48328c92
6 changed files with 128 additions and 41 deletions

View File

@ -31,6 +31,7 @@ class NewPost {
final PostKind kind;
final DateTime timeEnd;
final NewSurvey survey;
final String youtubeId;
const NewPost({
@required this.target,
@ -43,6 +44,7 @@ class NewPost {
@required this.pdf,
@required this.timeEnd,
@required this.survey,
@required this.youtubeId,
}) : assert(target != null),
assert(targetID != null),
assert(visibility != null),
@ -52,5 +54,6 @@ class NewPost {
assert(kind != PostKind.WEB_LINK || url != null),
assert(kind != PostKind.PDF || pdf != null),
assert(kind != PostKind.COUNTDOWN || timeEnd != null),
assert(kind != PostKind.SURVEY || survey != null);
assert(kind != PostKind.SURVEY || survey != null),
assert(kind != PostKind.YOUTUBE || youtubeId != null);
}