OnlineDataService

A specialization of {@link com.sap.cloud.mobile.kotlin.odata.DataService} where the {@link com.sap.cloud.mobile.kotlin.odata.OnlineDataService#provider OnlineDataService.provider} is an {@link com.sap.cloud.mobile.kotlin.odata.OnlineODataProvider}.

Constructors

Link copied to clipboard
constructor(provider: OnlineODataProvider)

Construct an online data service using an online provider.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun acquireToken()
open fun acquireToken(completionHandler: (Result<Unit>) -> Unit)

If this data service requires a security token, then acquire it now.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.ServiceOptions#requiresToken ServiceOptions.requiresToken}.

Link copied to clipboard
open fun deleteRepeatableRequest(requestID: GuidValue, headers: HttpHeaders, options: RequestOptions)
open fun deleteRepeatableRequest(requestID: GuidValue, headers: HttpHeaders, options: RequestOptions, completionHandler: (Result<Unit>) -> Unit)

Ask the server to forget (delete) the repeatable request with the specified requestID.

Link copied to clipboard
open fun deleteRepeatableRequests(completionHandler: (Result<Unit>) -> Unit)
open fun deleteRepeatableRequests(requestIDs: GuidValueList?, headers: HttpHeaders?)
open fun deleteRepeatableRequests(requestIDs: GuidValueList?, completionHandler: (Result<Unit>) -> Unit)
open fun deleteRepeatableRequests(requestIDs: GuidValueList?, headers: HttpHeaders?, completionHandler: (Result<Unit>) -> Unit)
open fun deleteRepeatableRequests(requestIDs: GuidValueList?, headers: HttpHeaders?, options: RequestOptions?)
open fun deleteRepeatableRequests(requestIDs: GuidValueList?, headers: HttpHeaders?, options: RequestOptions?, completionHandler: (Result<Unit>) -> Unit)

Ask the server to forget (delete) the repeatable requests with the specified requestIDs.