yattee/Model/Channel.swift
2021-08-26 00:12:59 +02:00

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