Media meta

This commit is contained in:
Thomas Ricouard 2022-12-27 06:44:40 +01:00
parent f339692d3c
commit dcd686a44b
1 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,15 @@
import Foundation
public struct MediaAttachement: Codable, Identifiable, Hashable {
public struct MediaAttachement: Codable, Identifiable, Hashable {
public struct MetaContainer: Codable, Equatable {
public struct Meta: Codable, Equatable {
public let width: Int?
public let height: Int?
}
public let original: Meta
}
public enum SupportedType: String {
case image, gifv
}
@ -17,5 +26,6 @@ public struct MediaAttachement: Codable, Identifiable, Hashable {
public let url: URL
public let previewUrl: URL?
public let description: String?
public let meta: MetaContainer?
}