spotify_cli/domain/player.rs
1use crate::domain::{device::Device, track::Track};
2
3/// Playback context for the current player session.
4#[derive(Debug, Clone)]
5pub struct PlaybackContext {
6 pub kind: String,
7 pub uri: String,
8}
9
10/// Playback status from the Spotify player endpoint.
11#[derive(Debug, Clone)]
12pub struct PlayerStatus {
13 pub is_playing: bool,
14 pub track: Option<Track>,
15 pub device: Option<Device>,
16 pub context: Option<PlaybackContext>,
17 pub progress_ms: Option<u32>,
18 pub repeat_state: Option<String>,
19 pub shuffle_state: Option<bool>,
20}