2022-12-19 15:34:57 +00:00
|
|
|
import Foundation
|
|
|
|
|
2023-01-22 15:55:03 +00:00
|
|
|
public struct Card: Codable, Identifiable, Equatable, Hashable {
|
2022-12-23 09:41:55 +00:00
|
|
|
public var id: String {
|
2023-01-21 11:13:20 +00:00
|
|
|
url
|
2022-12-23 09:41:55 +00:00
|
|
|
}
|
2023-01-17 10:36:01 +00:00
|
|
|
|
2023-01-21 11:13:20 +00:00
|
|
|
public let url: String
|
2022-12-19 15:34:57 +00:00
|
|
|
public let title: String?
|
|
|
|
public let description: String?
|
|
|
|
public let type: String
|
|
|
|
public let image: URL?
|
2024-01-19 16:48:52 +00:00
|
|
|
public let width: CGFloat
|
|
|
|
public let height: CGFloat
|
2024-02-10 10:26:22 +00:00
|
|
|
public let history: [History]?
|
2022-12-19 15:34:57 +00:00
|
|
|
}
|
2023-02-27 05:39:07 +00:00
|
|
|
|
|
|
|
extension Card: Sendable {}
|