Media meta
This commit is contained in:
parent
f339692d3c
commit
dcd686a44b
|
@ -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?
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue