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
29
30
31
32
33
use bytes::Bytes;

use crate::{jce, pb};

pub mod builder;
pub mod decoder;

#[derive(Default, Debug)]
pub struct ConfigPushReq {
    pub resp: ConfigPushResp,
    pub body: ConfigPushBody,
}

#[derive(Debug, derivative::Derivative)]
#[derivative(Default)]
pub enum ConfigPushBody {
    #[derivative(Default)]
    Unknown,
    SsoServers {
        servers: Vec<jce::SsoServerInfo>,
    },
    FileStorageInfo {
        info: jce::FileStoragePushFSSvcList,
        rsp_body: Option<pb::cmd0x6ff::SubCmd0x501RspBody>,
    },
}

#[derive(Default, Debug)]
pub struct ConfigPushResp {
    pub t: i32,
    pub pkt_seq: i64,
    pub jce_buf: Bytes,
}