1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#[allow(dead_code)]
pub struct ContentNotification {
    pub_key: String,    
    content_id: u32
}

impl ContentNotification {

    #[allow(dead_code)]
    pub fn new(pub_key: String, content_id: u32) -> Self {
        ContentNotification{pub_key: pub_key, content_id: content_id}
    }

    pub fn get_pub_key(&self) -> &String {
        &self.pub_key
    }

    pub fn get_content_id(&self) -> &u32 {
        &self.content_id
    }
}