mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 10:11:00 +00:00
d1209e6704
Co-authored-by: Jim Dovey <jimdovey@apple.com>
18 lines
419 B
Swift
18 lines
419 B
Swift
import Foundation
|
|
|
|
public struct SearchResults: Decodable {
|
|
enum CodingKeys: String, CodingKey {
|
|
case accounts, statuses, hashtags
|
|
}
|
|
|
|
public let accounts: [Account]
|
|
public var relationships: [Relationship] = []
|
|
public let statuses: [Status]
|
|
public let hashtags: [Tag]
|
|
|
|
public var isEmpty: Bool {
|
|
accounts.isEmpty && statuses.isEmpty && hashtags.isEmpty
|
|
}
|
|
}
|
|
|
|
extension SearchResults: Sendable {}
|