metatext/Shared/Model/Poll.swift
2020-08-17 23:50:45 -07:00

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]
}