diff --git a/parsers/src/muc/user.rs b/parsers/src/muc/user.rs index e355c3d..a4613f8 100644 --- a/parsers/src/muc/user.rs +++ b/parsers/src/muc/user.rs @@ -271,6 +271,25 @@ generate_element!( ] ); +impl MucUser { + pub fn new() -> MucUser { + MucUser { + status: vec![], + items: vec![], + } + } + + pub fn with_status(mut self, status: Vec) -> MucUser { + self.status = status; + self + } + + pub fn with_items(mut self, items: Vec) -> MucUser { + self.items = items; + self + } +} + impl MessagePayload for MucUser {} impl PresencePayload for MucUser {}