Track subscription add/removes

This commit is contained in:
Greg Heartsfield
2021-11-24 15:40:39 -06:00
parent 03a46e20b0
commit 6411aab7f9
3 changed files with 33 additions and 1 deletions
+3
View File
@@ -83,6 +83,9 @@ impl Subscription {
pub fn parse(json: &str) -> Result<Subscription> {
serde_json::from_str(json).map_err(|e| Error::JsonParseFailed(e))
}
pub fn get_id(&self) -> String {
self.id.clone()
}
}
#[cfg(test)]