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