mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-20 08:25:16 +00:00
Add countdown timer posts support
This commit is contained in:
@ -56,8 +56,10 @@ pub enum PostKind {
|
||||
POST_KIND_IMAGE(PostFile),
|
||||
POST_KIND_WEBLINK(PostWebLink),
|
||||
POST_KIND_PDF(PostFile),
|
||||
POST_KIND_MOVIE(u64), // The ID of the movie
|
||||
POST_KIND_COUNTDOWN,
|
||||
POST_KIND_MOVIE(u64),
|
||||
// The ID of the movie
|
||||
POST_KIND_COUNTDOWN(u64),
|
||||
// End time
|
||||
POST_KIND_SURVEY,
|
||||
POST_KIND_YOUTUBE,
|
||||
}
|
||||
@ -70,7 +72,7 @@ impl PostKind {
|
||||
PostKind::POST_KIND_WEBLINK(_) => "weblink",
|
||||
PostKind::POST_KIND_PDF(_) => "pdf",
|
||||
PostKind::POST_KIND_MOVIE(_) => "movie",
|
||||
PostKind::POST_KIND_COUNTDOWN => "countdown",
|
||||
PostKind::POST_KIND_COUNTDOWN(_) => "countdown",
|
||||
PostKind::POST_KIND_SURVEY => "survey",
|
||||
PostKind::POST_KIND_YOUTUBE => "youtube",
|
||||
}.to_string()
|
||||
|
Reference in New Issue
Block a user