mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
UI improvements, player state refactor
This commit is contained in:
@@ -2,9 +2,21 @@ import Foundation
|
||||
import SwiftyJSON
|
||||
|
||||
struct Playlist: Identifiable, Equatable, Hashable {
|
||||
enum Visibility: String, CaseIterable, Identifiable {
|
||||
case `public`, unlisted, `private`
|
||||
|
||||
var id: String {
|
||||
rawValue
|
||||
}
|
||||
|
||||
var name: String {
|
||||
rawValue.capitalized
|
||||
}
|
||||
}
|
||||
|
||||
let id: String
|
||||
var title: String
|
||||
var visibility: PlaylistVisibility
|
||||
var visibility: Visibility
|
||||
|
||||
var updated: TimeInterval
|
||||
|
||||
|
Reference in New Issue
Block a user