executeAsyncOperation

fun <T : OperationBodyRequestBase> executeAsyncOperation(context: Context, operationSystemName: String, operationBody: T)

Creates and deliveries event with specified name and body. Recommended call this method from background thread.

Parameters

context

current context is used

operationSystemName

the name of asynchronous operation

operationBody

T which extends OperationBodyRequestBase and will be send as event json body of operation.


fun executeAsyncOperation(context: Context, operationSystemName: String, operationBodyJson: String)

Creates and deliveries event with specified name and body. Recommended call this method from background thread.

Parameters

context

current context is used

operationSystemName

the name of asynchronous operation

operationBodyJson

event json body of operation.


fun <T : OperationBody> executeAsyncOperation(context: Context, operationSystemName: String, operationBody: T)

Deprecated

Used Mindbox.executeAsyncOperation with OperationBodyRequestBase

Creates and deliveries event with specified name and body. Recommended call this method from background thread.

Parameters

context

current context is used

operationSystemName

the name of asynchronous operation

operationBody

T which extends OperationBody and will be send as event json body of operation.