Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bca702c7c1 | ||
|
|
d515dd4f9a | ||
|
|
4153157cf3 | ||
|
|
9319d25344 |
No files matched your search
@@ -4,7 +4,6 @@ pub mod constants;
|
||||
pub mod coverart;
|
||||
pub mod ledger;
|
||||
pub mod login_result;
|
||||
pub mod playback_queue;
|
||||
pub mod register_result;
|
||||
pub mod song;
|
||||
pub mod token;
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
use utoipa::ToSchema;
|
||||
|
||||
/// Playback queue device type - Browser
|
||||
pub const PLAYBACK_QUEUE_DEVICE_TYPE_BROWSER: &str = "BROWSER";
|
||||
/// Playback queue device type - Mobile
|
||||
pub const PLAYBACK_QUEUE_DEVICE_TYPE_MOBILE: &str = "MOBILE";
|
||||
|
||||
#[derive(Debug, Default, Deserialize, Serialize, ToSchema)]
|
||||
pub struct PlaybackQueue {
|
||||
pub id: uuid::Uuid,
|
||||
pub name: String,
|
||||
pub device_type: String,
|
||||
pub user_id: uuid::Uuid,
|
||||
#[serde(with = "time::serde::rfc3339::option")]
|
||||
pub date_created: Option<time::OffsetDateTime>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Default, Deserialize, Serialize, ToSchema)]
|
||||
pub struct PlaybackQueueItem {
|
||||
pub id: uuid::Uuid,
|
||||
pub queue_index: i32,
|
||||
pub playback_queue_id: uuid::Uuid,
|
||||
pub song_id: uuid::Uuid,
|
||||
#[serde(with = "time::serde::rfc3339::option")]
|
||||
pub date_created: Option<time::OffsetDateTime>,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user