list method
Lists the participant sessions of a participant in a conference record.
By default, ordered by join time and in descending order. This API
supports fields
as standard parameters like every other API. However,
when the fields
request parameter is omitted this API defaults to
'participantsessions / * , next_page_token'
.
Request parameters:
parent
- Required. Format:
conferenceRecords/{conference_record}/participants/{participant}
Value must have pattern
^conferenceRecords/\[^/\]+/participants/\[^/\]+$
.
filter
- Optional. User specified filtering condition in
EBNF format.
The following are the filterable fields: * start_time
* end_time
For
example, end_time IS NULL
returns active participant sessions in the
conference record.
pageSize
- Optional. Maximum number of participant sessions to return.
The service might return fewer than this value. If unspecified, at most
100 participants are returned. The maximum value is 250; values above 250
are coerced to 250. Maximum might change in the future.
pageToken
- Optional. Page token returned from previous List Call.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a ListParticipantSessionsResponse.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client
completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<ListParticipantSessionsResponse> list(
core.String parent, {
core.String? filter,
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (filter != null) 'filter': [filter],
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if ($fields != null) 'fields': [$fields],
};
final url_ =
'v2/' + core.Uri.encodeFull('$parent') + '/participantSessions';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ListParticipantSessionsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}