RealtimeCallRejectRequest class

Request for rejecting an incoming call.

This endpoint rejects an incoming SIP call with an optional status code indicating the rejection reason.

Example

await client.realtimeSessions.calls.reject(
  callId,
  RealtimeCallRejectRequest(statusCode: 486), // Busy Here
);
Annotations
  • @immutable

Constructors

RealtimeCallRejectRequest({int? statusCode})
Creates a RealtimeCallRejectRequest.
const
RealtimeCallRejectRequest.fromJson(Map<String, dynamic> json)
Creates a RealtimeCallRejectRequest from JSON.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
The SIP status code for rejection (defaults to 603 - Decline).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override