Calls

enfonica.voice.v1beta1. Calls

Represents a Calls

Constructor

new Calls(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new Calls service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Calls}

Creates new Calls service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
Calls

RPC service. Useful where requests and/or responses are streamed.

createCall(request, callback) → {undefined}

Calls CreateCall.

Parameters:
Name Type Description
request enfonica.voice.v1beta1.ICreateCallRequest

CreateCallRequest message or plain object

callback enfonica.voice.v1beta1.Calls.CreateCallCallback

Node-style callback called with the error, if any, and Call

Returns:
Type Description
undefined

createCall(request) → {Promise.<enfonica.voice.v1beta1.Call>}

Calls CreateCall.

Parameters:
Name Type Description
request enfonica.voice.v1beta1.ICreateCallRequest

CreateCallRequest message or plain object

Returns:
Type Description
Promise.<enfonica.voice.v1beta1.Call>

Promise

getCall(request, callback) → {undefined}

Calls GetCall.

Parameters:
Name Type Description
request enfonica.voice.v1beta1.IGetCallRequest

GetCallRequest message or plain object

callback enfonica.voice.v1beta1.Calls.GetCallCallback

Node-style callback called with the error, if any, and Call

Returns:
Type Description
undefined

getCall(request) → {Promise.<enfonica.voice.v1beta1.Call>}

Calls GetCall.

Parameters:
Name Type Description
request enfonica.voice.v1beta1.IGetCallRequest

GetCallRequest message or plain object

Returns:
Type Description
Promise.<enfonica.voice.v1beta1.Call>

Promise

listCalls(request, callback) → {undefined}

Calls ListCalls.

Parameters:
Name Type Description
request enfonica.voice.v1beta1.IListCallsRequest

ListCallsRequest message or plain object

callback enfonica.voice.v1beta1.Calls.ListCallsCallback

Node-style callback called with the error, if any, and ListCallsResponse

Returns:
Type Description
undefined

listCalls(request) → {Promise.<enfonica.voice.v1beta1.ListCallsResponse>}

Calls ListCalls.

Parameters:
Name Type Description
request enfonica.voice.v1beta1.IListCallsRequest

ListCallsRequest message or plain object

Returns:
Type Description
Promise.<enfonica.voice.v1beta1.ListCallsResponse>

Promise

Type Definitions

CreateCallCallback(error, responseopt)

Callback as used by enfonica.voice.v1beta1.Calls#createCall.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response enfonica.voice.v1beta1.Call <optional>

Call

GetCallCallback(error, responseopt)

Callback as used by enfonica.voice.v1beta1.Calls#getCall.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response enfonica.voice.v1beta1.Call <optional>

Call

ListCallsCallback(error, responseopt)

Callback as used by enfonica.voice.v1beta1.Calls#listCalls.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response enfonica.voice.v1beta1.ListCallsResponse <optional>

ListCallsResponse