2022-11-20 15:39:06 +00:00
|
|
|
import Foundation
|
|
|
|
|
2022-12-16 12:16:48 +00:00
|
|
|
public protocol AnyStatus {
|
|
|
|
var id: String { get }
|
|
|
|
var content: String { get }
|
|
|
|
var account: Account { get }
|
|
|
|
var createdAt: String { get }
|
|
|
|
}
|
|
|
|
|
|
|
|
public struct Status: AnyStatus, Codable, Identifiable {
|
|
|
|
public let id: String
|
|
|
|
public let content: String
|
|
|
|
public let account: Account
|
|
|
|
public let createdAt: String
|
|
|
|
public let reblog: ReblogStatus?
|
|
|
|
}
|
|
|
|
|
|
|
|
public struct ReblogStatus: AnyStatus, Codable, Identifiable {
|
2022-11-20 15:39:06 +00:00
|
|
|
public let id: String
|
|
|
|
public let content: String
|
|
|
|
public let account: Account
|
2022-11-25 11:00:01 +00:00
|
|
|
public let createdAt: String
|
2022-11-20 15:39:06 +00:00
|
|
|
}
|