getObjectsSharedInRoom method
Future<DynamiteResponse<ChatGetObjectsSharedInRoomResponseApplicationJson, ChatChatGetObjectsSharedInRoomHeaders> >
getObjectsSharedInRoom({
Get objects that are shared in the room.
Returns a Future containing a DynamiteResponse
with the status code, deserialized body and headers.
Throws a DynamiteApiException
if the API call does not return an expected status code.
Parameters:
apiVersion
Defaults to"v1"
.token
objectType
Type of the objects.lastKnownMessageId
ID of the last known message. Defaults to0
.limit
Maximum number of objects. Defaults to100
.oCSAPIRequest
Required to be true for the API request to pass. Defaults totrue
.
Status codes:
- 200: List of shared objects messages returned
See:
- $getObjectsSharedInRoom_Request for the request send by this method.
- $getObjectsSharedInRoom_Serializer for a converter to parse the
Response
from an executed request.
Implementation
Future<_i1.DynamiteResponse<ChatGetObjectsSharedInRoomResponseApplicationJson, ChatChatGetObjectsSharedInRoomHeaders>>
getObjectsSharedInRoom({
required String token,
required String objectType,
ChatGetObjectsSharedInRoomApiVersion? apiVersion,
int? lastKnownMessageId,
int? limit,
bool? oCSAPIRequest,
}) async {
final _request = $getObjectsSharedInRoom_Request(
token: token,
objectType: objectType,
apiVersion: apiVersion,
lastKnownMessageId: lastKnownMessageId,
limit: limit,
oCSAPIRequest: oCSAPIRequest,
);
final _streamedResponse = await _rootClient.httpClient.send(_request);
final _response = await _i3.Response.fromStream(_streamedResponse);
final _serializer = $getObjectsSharedInRoom_Serializer();
return _i1.ResponseConverter<ChatGetObjectsSharedInRoomResponseApplicationJson,
ChatChatGetObjectsSharedInRoomHeaders>(_serializer)
.convert(_response);
}