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
34
35
36
37
38
39
use net_core_api::core::api::API;
use net_core_api::core::encoder_api::Encoder;
use net_core_api::core::decoder_api::Decoder;
use net_core_api::core::typed_api::Typed;

const DATA_TYPE: &str = "refresh-views-request";

#[derive(Debug, Default, PartialEq, Eq)]
pub struct RefreshViewsRequestDTO { }
impl API for RefreshViewsRequestDTO { }

impl RefreshViewsRequestDTO {
    pub fn new() -> Self {
        RefreshViewsRequestDTO::default()
    }
}

impl Encoder for RefreshViewsRequestDTO {
    fn encode(&self) -> Vec<u8> {
        Vec::new()
    }
}

impl Decoder for RefreshViewsRequestDTO {
    #[allow(unused_variables)]
    fn decode(data: &[u8]) -> RefreshViewsRequestDTO {
        RefreshViewsRequestDTO::new()
    }
}

impl Typed for RefreshViewsRequestDTO {
    fn get_data_type() -> &'static str {
        DATA_TYPE
    }

    fn get_type(&self) -> &str {
        Self::get_data_type()
    }
}