2022-01-06 08:48:11 +00:00
|
|
|
use crate::core::config::DeviceType;
|
2022-01-05 20:15:19 +00:00
|
|
|
|
|
|
|
#[derive(Clone, Debug)]
|
|
|
|
pub struct ConnectConfig {
|
|
|
|
pub name: String,
|
|
|
|
pub device_type: DeviceType,
|
2024-06-16 03:36:47 +00:00
|
|
|
pub is_group: bool,
|
2022-01-05 20:15:19 +00:00
|
|
|
pub initial_volume: Option<u16>,
|
|
|
|
pub has_volume_ctrl: bool,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Default for ConnectConfig {
|
|
|
|
fn default() -> ConnectConfig {
|
|
|
|
ConnectConfig {
|
|
|
|
name: "Librespot".to_string(),
|
|
|
|
device_type: DeviceType::default(),
|
2024-06-16 03:36:47 +00:00
|
|
|
is_group: false,
|
2022-01-05 20:15:19 +00:00
|
|
|
initial_volume: Some(50),
|
|
|
|
has_volume_ctrl: true,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|