Skip to content

Commit f521100

Browse files
authored
Update room model (#268)
This is a behavior fix (correct data binding), not a new feature. Anything that already called these properties will start getting different, correct values.
2 parents 3478f34 + 89c5327 commit f521100

File tree

1 file changed

+5
-5
lines changed
  • src/webexpythonsdk/models/mixins

1 file changed

+5
-5
lines changed

src/webexpythonsdk/models/mixins/room.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ def ownerId(self):
8989
@property
9090
def classificationId(self):
9191
"""The ID of the current classification."""
92-
return self._json_data.get("ownerId")
92+
return self._json_data.get("classificationId")
9393

9494
@property
9595
def isAnnouncementOnly(self):
9696
"""Indicates when a space is in Announcement Mode (only moderators can post)."""
97-
return self._json_data.get("ownerId")
97+
return self._json_data.get("isAnnouncementOnly")
9898

9999
@property
100100
def isReadOnly(self):
@@ -103,7 +103,7 @@ def isReadOnly(self):
103103
A compliance officer can set a direct room as read-only, which will disallow any
104104
new information exchanges in this space, while maintaining historical data.
105105
"""
106-
return self._json_data.get("ownerId")
106+
return self._json_data.get("isReadOnly")
107107

108108
@property
109109
def isPublic(self):
@@ -112,7 +112,7 @@ def isPublic(self):
112112
The room is public and therefore discoverable within the org. Anyone can find
113113
and join the room.
114114
"""
115-
return self._json_data.get("ownerId")
115+
return self._json_data.get("isPublic")
116116

117117
@property
118118
def madePublic(self):
@@ -126,4 +126,4 @@ def madePublic(self):
126126
@property
127127
def description(self):
128128
"""The description of the room."""
129-
return self._json_data.get("ownerId")
129+
return self._json_data.get("description")

0 commit comments

Comments
 (0)