mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 09:32:52 +02:00
Feature/4383 poll participants details
This commit is contained in:
committed by
Arnfried Griesert
parent
00286183f6
commit
9bd569dac0
@@ -26,6 +26,7 @@ enum TimelinePollViewAction {
|
||||
|
||||
enum TimelinePollViewModelResult {
|
||||
case selectedAnswerOptionsWithIdentifiers([String])
|
||||
case showParticipants
|
||||
}
|
||||
|
||||
enum TimelinePollType {
|
||||
@@ -44,13 +45,15 @@ struct TimelinePollAnswerOption: Identifiable {
|
||||
var count: UInt
|
||||
var winner: Bool
|
||||
var selected: Bool
|
||||
var voters: [MXEvent]
|
||||
|
||||
init(id: String, text: String, count: UInt, winner: Bool, selected: Bool) {
|
||||
init(id: String, text: String, count: UInt, winner: Bool, selected: Bool, voters: [MXEvent]) {
|
||||
self.id = id
|
||||
self.text = text
|
||||
self.count = count
|
||||
self.winner = winner
|
||||
self.selected = selected
|
||||
self.voters = voters
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user