init: init proj
This commit is contained in:
18
DDYSClient/Models/VideoPlayerData.swift
Normal file
18
DDYSClient/Models/VideoPlayerData.swift
Normal file
@@ -0,0 +1,18 @@
|
||||
import Foundation
|
||||
|
||||
struct VideoPlayerData: Codable, Hashable, Identifiable {
|
||||
let url: String
|
||||
let title: String
|
||||
let episodeName: String?
|
||||
let contentId: String
|
||||
let episodeId: Int
|
||||
|
||||
var id: String { "\(contentId)-\(episodeId)" }
|
||||
|
||||
var windowTitle: String {
|
||||
if let episodeName {
|
||||
return "\(title) - \(episodeName)"
|
||||
}
|
||||
return title
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user