tools (common/data_objects): added Room class
This commit is contained in:
parent
a22c1a7fd8
commit
8845cc682f
1 changed files with 8 additions and 0 deletions
|
|
@ -263,6 +263,14 @@ class Messages(object):
|
|||
def __contains__(self, item):
|
||||
return self.messages.__contains__(item)
|
||||
|
||||
class Room(object):
|
||||
|
||||
def __init__(self, jid, name=None, url=None):
|
||||
self.jid = jid
|
||||
self.name = name or jid
|
||||
if url is not None:
|
||||
self.url = url
|
||||
|
||||
|
||||
class Identity(object):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue