getObjectsSharedInRoomOverview method

Future<DynamiteResponse<ChatGetObjectsSharedInRoomOverviewResponseApplicationJson, void>> getObjectsSharedInRoomOverview({
  1. required String token,
  2. int? limit,
  3. ChatGetObjectsSharedInRoomOverviewApiVersion? apiVersion,
  4. bool? oCSAPIRequest,
})

Get objects that are shared in the room overview.

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:

  • limit Maximum number of objects. Defaults to 7.
  • apiVersion Defaults to "v1".
  • token
  • oCSAPIRequest Required to be true for the API request to pass. Defaults to true.

Status codes:

  • 200: List of shared objects messages of each type returned

See:

Implementation

Future<_i1.DynamiteResponse<ChatGetObjectsSharedInRoomOverviewResponseApplicationJson, void>>
    getObjectsSharedInRoomOverview({
  required String token,
  int? limit,
  ChatGetObjectsSharedInRoomOverviewApiVersion? apiVersion,
  bool? oCSAPIRequest,
}) async {
  final _request = $getObjectsSharedInRoomOverview_Request(
    token: token,
    limit: limit,
    apiVersion: apiVersion,
    oCSAPIRequest: oCSAPIRequest,
  );
  final _response = await _rootClient.httpClient.send(_request);

  final _serializer = $getObjectsSharedInRoomOverview_Serializer();
  final _rawResponse =
      await _i1.ResponseConverter<ChatGetObjectsSharedInRoomOverviewResponseApplicationJson, void>(_serializer)
          .convert(_response);
  return _i1.DynamiteResponse.fromRawResponse(_rawResponse);
}