mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
13 lines
243 B
Swift
13 lines
243 B
Swift
import Foundation
|
|
import SwiftyJSON
|
|
|
|
struct Thumbnail {
|
|
var url: URL
|
|
var quality: ThumbnailQuality
|
|
|
|
init(_ json: JSON) {
|
|
url = json["url"].url!
|
|
quality = ThumbnailQuality(rawValue: json["quality"].string!)!
|
|
}
|
|
}
|