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

Can create surveys

This commit is contained in:
2020-04-25 11:58:45 +02:00
parent 8af4a61072
commit 4e951c6a78
4 changed files with 193 additions and 10 deletions

View File

@ -158,6 +158,11 @@ class PostsHelper {
"time-end", (post.timeEnd.millisecondsSinceEpoch / 1000).floor());
break;
case PostKind.SURVEY:
request.addString("question", post.survey.question);
request.addString("answers", post.survey.answers.join("<>"));
break;
default:
throw Exception("Unsupported post type :" + post.kind.toString());
break;