mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-29 03:21:02 +00:00
22 lines
443 B
Swift
22 lines
443 B
Swift
|
// Copyright © 2020 Metabolist. All rights reserved.
|
||
|
|
||
|
import Foundation
|
||
|
|
||
|
struct Poll: Codable, Hashable {
|
||
|
struct Option: Codable, Hashable {
|
||
|
var title: String
|
||
|
var votesCount: Int
|
||
|
}
|
||
|
|
||
|
let id: String
|
||
|
let expiresAt: Date
|
||
|
let expired: Bool
|
||
|
let multiple: Bool
|
||
|
let votesCount: Int
|
||
|
let votersCount: Int?
|
||
|
let voted: Bool?
|
||
|
let ownVotes: [Int]?
|
||
|
let options: [Option]
|
||
|
let emojis: [Emoji]
|
||
|
}
|