-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lee Jun Kit
committed
Oct 9, 2021
1 parent
2baa905
commit 35243b6
Showing
4 changed files
with
149 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// PlayerCoreState.swift | ||
// PlayerCoreState | ||
// | ||
// Created by Lee Jun Kit on 24/8/21. | ||
// | ||
|
||
import Foundation | ||
|
||
struct PlayerCoreState: Decodable { | ||
struct Player: Decodable { | ||
enum PlayState: String, Decodable { | ||
case playing, paused, stopped | ||
} | ||
|
||
let state: PlayState | ||
let since: Date? | ||
let elapsed: Double? | ||
let trackId: String? | ||
} | ||
|
||
struct Queue: Decodable { | ||
let currentIndex: Int? | ||
} | ||
|
||
let player: Player | ||
let queue: Queue | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters