1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 05:40:32 +05:30
yattee/Model/Thumbnail.swift
2021-07-14 23:34:39 +02:00

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!)!
}
}