yattee/Model/Channel.swift

13 lines
258 B
Swift
Raw Normal View History

2021-06-28 15:02:13 +00:00
import AVFoundation
import Defaults
import Foundation
struct Channel: Codable, Defaults.Serializable {
var id: String
var name: String
static func from(video: Video) -> Channel {
Channel(id: video.channelID, name: video.author)
}
}