mirror of
https://github.com/yattee/yattee.git
synced 2024-11-09 15:58:20 +00:00
23 lines
546 B
Swift
23 lines
546 B
Swift
import AVFoundation
|
|
import Defaults
|
|
import Foundation
|
|
import SwiftyJSON
|
|
|
|
struct Channel: Codable, Defaults.Serializable {
|
|
var id: String
|
|
var name: String
|
|
var subscriptionsCount: String
|
|
|
|
init(json: JSON) {
|
|
id = json["authorId"].stringValue
|
|
name = json["author"].stringValue
|
|
subscriptionsCount = json["subCountText"].stringValue
|
|
}
|
|
|
|
init(id: String, name: String, subscriptionsCount: String) {
|
|
self.id = id
|
|
self.name = name
|
|
self.subscriptionsCount = subscriptionsCount
|
|
}
|
|
}
|