mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 02:01:02 +00:00
Media meta
This commit is contained in:
parent
f339692d3c
commit
dcd686a44b
1 changed files with 11 additions and 1 deletions
|
@ -1,6 +1,15 @@
|
|||
import Foundation
|
||||
|
||||
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 a new issue