transition method
Transition a durable chat event.
Request parameters:
id
- The ID that uniquely identify the chat message event to transition.
status
- The status to which the chat event is going to transition.
Possible string values are:
- "statusUnspecified" : Default unknown enum value.
- "closed" : The durable chat event is over.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a LiveChatMessage.
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<LiveChatMessage> transition({
core.String? id,
core.String? status,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (id != null) 'id': [id],
if (status != null) 'status': [status],
if ($fields != null) 'fields': [$fields],
};
const url_ = 'youtube/v3/liveChat/messages/transition';
final response_ = await _requester.request(
url_,
'POST',
queryParams: queryParams_,
);
return LiveChatMessage.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}