addAction

open fun addAction(call: DataQuery)

See addAction(DataQuery, HttpHeaders?, RequestOptions?).

Parameters

call

Call parameter.


open fun addAction(call: DataQuery, headers: HttpHeaders?)

See addAction(DataQuery, HttpHeaders?, RequestOptions?).

Parameters

call

Call parameter.

headers

Headers parameter.


open fun addAction(call: DataQuery, headers: HttpHeaders?, options: RequestOptions?)

Add an action call to this request batch.

Example using proxy classes:
open fun invokeActionsInBatch(): kotlin.Unit
{
    val service = this.service;
    val batch = RequestBatch();
    val action1 = DataQuery();
    val action2 = DataQuery();
    service.deleteVideosInCategory("Romance", action1.deferExecution());
    service.deleteVideosInCategory("Suspense", action2.deferExecution());
    batch.addAction(action1);
    batch.addAction(action2);
    service.processBatch(batch);
    batch.checkActionResult(action1);
    batch.checkActionResult(action2);
}

Parameters

call

Query with non-null {@link com.sap.cloud.mobile.kotlin.odata.DataQuery#methodCall DataQuery.methodCall} for an action method.

headers

(nullable) Action call headers.

options

(nullable) Action call options.