Add support to start date

This commit is contained in:
Alfonso Grillo
2023-01-19 18:15:39 +01:00
parent 45e37e2610
commit 8c572d0bfe
6 changed files with 14 additions and 3 deletions
@@ -65,6 +65,7 @@ struct TimelinePollDetails {
var question: String
var answerOptions: [TimelinePollAnswerOption]
var closed: Bool
var startDate: Date
var totalAnswerCount: UInt
var type: TimelinePollType
var eventType: TimelinePollEventType
@@ -72,8 +73,10 @@ struct TimelinePollDetails {
var hasBeenEdited = true
var hasDecryptionError: Bool
init(question: String, answerOptions: [TimelinePollAnswerOption],
init(question: String,
answerOptions: [TimelinePollAnswerOption],
closed: Bool,
startDate: Date,
totalAnswerCount: UInt,
type: TimelinePollType,
eventType: TimelinePollEventType,
@@ -83,6 +86,7 @@ struct TimelinePollDetails {
self.question = question
self.answerOptions = answerOptions
self.closed = closed
self.startDate = startDate
self.totalAnswerCount = totalAnswerCount
self.type = type
self.eventType = eventType