Mercurial > libervia-backend
diff src/tools/common/data_objects.py @ 2469:adcc35625e17
tools (common/data_objects): added Room class
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 05 Jan 2018 13:00:34 +0100 |
parents | 8788c217a49e |
children | 6607bb29ab7b |
line wrap: on
line diff
--- a/src/tools/common/data_objects.py Fri Jan 05 12:59:52 2018 +0100 +++ b/src/tools/common/data_objects.py Fri Jan 05 13:00:34 2018 +0100 @@ -263,6 +263,14 @@ 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):