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:
apiVersionDefaults to"v1".tokenobjectTypeType of the objects.lastKnownMessageIdID of the last known message. Defaults to0.limitMaximum number of objects. Defaults to100.oCSAPIRequestRequired 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
Responsefrom 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);
}