fix: expiresAt attribute of Poll entity is not mark optional issue
This commit is contained in:
parent
ca013f79da
commit
6182390699
|
@ -13,14 +13,14 @@ extension Mastodon.Entity {
|
||||||
/// - Since: 2.8.0
|
/// - Since: 2.8.0
|
||||||
/// - Version: 3.3.0
|
/// - Version: 3.3.0
|
||||||
/// # Last Update
|
/// # Last Update
|
||||||
/// 2021/2/4
|
/// 2021/2/24
|
||||||
/// # Reference
|
/// # Reference
|
||||||
/// [Document](https://docs.joinmastodon.org/entities/poll/)
|
/// [Document](https://docs.joinmastodon.org/entities/poll/)
|
||||||
public struct Poll: Codable {
|
public struct Poll: Codable {
|
||||||
public typealias ID = String
|
public typealias ID = String
|
||||||
|
|
||||||
public let id: ID
|
public let id: ID
|
||||||
public let expiresAt: Date
|
public let expiresAt: Date? // if nil the poll does not end
|
||||||
public let expired: Bool
|
public let expired: Bool
|
||||||
public let multiple: Bool
|
public let multiple: Bool
|
||||||
public let votesCount: Int
|
public let votesCount: Int
|
||||||
|
|
Loading…
Reference in New Issue