forked from AndreyAsadchy/Xtra
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* #206 Add polls and predictions: 1st iteration, only showing * #206 Add polls and predictions: 1st iteration, only showing * #206 Add polls and predictions: 1st iteration, only showing * #206 Add polls and predictions: 1st iteration, only showing * updates --------- Co-authored-by: crackededed <[email protected]>
- Loading branch information
1 parent
899efeb
commit 91aeacc
Showing
23 changed files
with
770 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
app/src/main/java/com/github/andreyasadchy/xtra/model/chat/Poll.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.github.andreyasadchy.xtra.model.chat | ||
|
||
class Poll( | ||
val id: String?, | ||
val title: String?, | ||
val status: String?, | ||
val choices: List<PollChoice>?, | ||
val totalVotes: Int?, | ||
val remainingMilliseconds: Int?, | ||
) { | ||
class PollChoice( | ||
val title: String?, | ||
val totalVotes: Int?, | ||
) | ||
} |
18 changes: 18 additions & 0 deletions
18
app/src/main/java/com/github/andreyasadchy/xtra/model/chat/Prediction.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.github.andreyasadchy.xtra.model.chat | ||
|
||
class Prediction( | ||
val id: String?, | ||
val createdAt: Long?, | ||
val outcomes: List<PredictionOutcome>?, | ||
val predictionWindowSeconds: Int?, | ||
val status: String?, | ||
val title: String?, | ||
val winningOutcomeId: String?, | ||
) { | ||
class PredictionOutcome( | ||
val id: String?, | ||
val title: String?, | ||
val totalPoints: Int?, | ||
val totalUsers: Int?, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.