summaryrefslogtreecommitdiff
path: root/src/event/inbound.rs
blob: 41a757c01d77440c10dd67714292d9e44ca12b50 (plain)
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

#[derive(RustcDecodable, Clone)]
pub struct UpdateAvailable {
    pub update_id: String,
    pub signature: String,
    pub description: String,
    pub request_confirmation: bool,
    pub size: u64
}

#[derive(RustcDecodable, Clone)]
pub struct DownloadComplete {
    pub update_id: String,
    pub update_image: String,
    pub signature: String
}

#[derive(RustcDecodable, Clone)]
pub struct GetInstalledSoftware {
    pub include_packages: bool,
    pub include_module_firmware: bool
}

pub enum InboundEvent {
    UpdateAvailable(UpdateAvailable),
    DownloadComplete(DownloadComplete),
    GetInstalledSoftware(GetInstalledSoftware)
}