Constructor
new MultiCallRequest(clientnullable, requests) → {void}
MultiCallRequest Constructor.
MultiCallRequest Constructor.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
client |
Client |
<nullable> |
null | |
requests |
Array |
- Source:
- See:
Returns:
- Type
- void
Methods
addOperation(request) → {MultiCallRequest}
Add a operation to be sent.
Add a operation to be sent.
Parameters:
Name | Type | Description |
---|---|---|
request |
MultiCallOperation |
- Source:
Returns:
- Type
- MultiCallRequest
addOperations(request) → {MultiCallRequest}
Add an array of operations.
Add an array of operations.
Parameters:
Name | Type | Description |
---|---|---|
request |
Array.<MultiCallOperation> |
- Source:
Throws:
Error
Returns:
- Type
- MultiCallRequest
addRequest(request) → {MultiCallRequest}
Add a request to be sent.
Add a request to be sent.
Parameters:
Name | Type | Description |
---|---|---|
request |
Request |
- Source:
Throws:
Error
Returns:
- Type
- MultiCallRequest
addRequests(requests) → {MultiCallRequest}
Add requests to be sent.
Add requests to be sent.
Parameters:
Name | Type | Description |
---|---|---|
requests |
Array |
- Source:
Throws:
Error
Returns:
- Type
- MultiCallRequest
createResponse(data)
Parameters:
Name | Type | Description |
---|---|---|
data |
Object |
- Source:
getRequests() → {Array}
Get the requests to be sent.
Get the requests to be sent.
- Source:
Returns:
- Type
- Array
operation(request) → {MultiCallOperation}
Create an operation instance and add it to the request.
Create an operation instance and add it to the request.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
request |
Request | Array.<Request> | * | null |
- Source:
Returns:
- Type
- MultiCallOperation
setRequests(requests) → {MultiCallRequest}
Set and override the requests to be sent.
Set and override the requests to be sent.
Parameters:
Name | Type | Description |
---|---|---|
requests |
Array |
- Source:
Throws:
Error
Returns:
- Type
- MultiCallRequest
toObject() → {Object}
Reduce the request to an Object.
Reduce the request to an Object.
- Source:
Returns:
- Type
- Object