Skip to content

Commit ea3916f

Browse files
committed
feat(Room): add additional properties
1 parent 39901e5 commit ea3916f

File tree

1 file changed

+42
-0
lines changed
  • src/webexpythonsdk/models/mixins

1 file changed

+42
-0
lines changed

src/webexpythonsdk/models/mixins/room.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,45 @@ def created(self):
8585
def ownerId(self):
8686
"""The ID of the organization which owns this room."""
8787
return self._json_data.get("ownerId")
88+
89+
@property
90+
def classificationId(self):
91+
"""The ID of the current classification."""
92+
return self._json_data.get("ownerId")
93+
94+
@property
95+
def isAnnouncementOnly(self):
96+
"""Indicates when a space is in Announcement Mode (only moderators can post)."""
97+
return self._json_data.get("ownerId")
98+
99+
@property
100+
def isReadOnly(self):
101+
"""Room is read-only.
102+
103+
A compliance officer can set a direct room as read-only, which will disallow any
104+
new information exchanges in this space, while maintaining historical data.
105+
"""
106+
return self._json_data.get("ownerId")
107+
108+
@property
109+
def isPublic(self):
110+
"""Room is public.
111+
112+
The room is public and therefore discoverable within the org. Anyone can find
113+
and join the room.
114+
"""
115+
return self._json_data.get("ownerId")
116+
117+
@property
118+
def madePublic(self):
119+
"""Date and time when the room was made public."""
120+
made_public = self._json_data.get("created")
121+
if made_public:
122+
return WebexDateTime.strptime(made_public)
123+
else:
124+
return None
125+
126+
@property
127+
def description(self):
128+
"""The description of the room."""
129+
return self._json_data.get("ownerId")

0 commit comments

Comments
 (0)