1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use std::fmt::Debug;

use ricq_core::protocol::{
    device::Device,
    version::Version,
    version::{get_version, Protocol},
};

#[derive(Debug)]
pub struct Config {
    pub device: Device,
    pub version: Version,
}

impl Default for Config {
    fn default() -> Self {
        Self {
            device: Device::random(),
            version: get_version(Protocol::IPad),
        }
    }
}

impl Config {
    pub fn new(device: Device, version: Version) -> Self {
        Self { device, version }
    }
}