Commit 8d5474af authored by Philipp Hörist's avatar Philipp Hörist

MUCData: Add propertys

parent fdfb0864
......@@ -216,6 +216,30 @@ class MUCJoinedState(Enum):
def __str__(self):
def is_joined(self):
return self == MUCJoinedState.JOINED
def is_not_joined(self):
return self == MUCJoinedState.NOT_JOINED
def is_joining(self):
return self == MUCJoinedState.JOINING
def is_creating(self):
return self == MUCJoinedState.CREATING
def is_captcha_request(self):
return self == MUCJoinedState.CAPTCHA_REQUEST
def is_captcha_failed(self):
return self == MUCJoinedState.CAPTCHA_FAILED
class ClientState(IntEnum):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment