nNye_user_server_gateway_business/content_notification/mod.rs
1#[allow(dead_code)]
2pub struct ContentNotification {
3 pub_key: String,
4 content_id: u32
5}
6
7impl ContentNotification {
8
9 #[allow(dead_code)]
10 pub fn new(pub_key: String, content_id: u32) -> Self {
11 ContentNotification{pub_key: pub_key, content_id: content_id}
12 }
13
14 pub fn get_pub_key(&self) -> &String {
15 &self.pub_key
16 }
17
18 pub fn get_content_id(&self) -> &u32 {
19 &self.content_id
20 }
21}