@@ -127,17 +127,17 @@ def __init__(self, session):
127
127
API calls to the Cisco Spark service.
128
128
129
129
Raises:
130
- AssertionError : If the parameter types are incorrect.
130
+ TypeError : If the parameter types are incorrect.
131
131
132
132
"""
133
- assert isinstance (session , RestSession )
133
+ check_type (session , RestSession , may_be_none = False )
134
134
super (MessagesAPI , self ).__init__ ()
135
135
self ._session = session
136
136
137
137
@generator_container
138
138
def list (self , roomId , mentionedPeople = None , before = None ,
139
139
beforeMessage = None , max = None , ** request_parameters ):
140
- """Lists all messages in a room.
140
+ """Lists messages in a room.
141
141
142
142
Each message will include content attachments if present.
143
143
@@ -199,7 +199,7 @@ def list(self, roomId, mentionedPeople=None, before=None,
199
199
200
200
def create (self , roomId = None , toPersonId = None , toPersonEmail = None ,
201
201
text = None , markdown = None , files = None , ** request_parameters ):
202
- """Posts a message, and optionally a attachment, to a room.
202
+ """Post a message, and optionally a attachment, to a room.
203
203
204
204
The files parameter is a list, which accepts multiple values to allow
205
205
for future expansion, but currently only one file may be included with
0 commit comments