Pending Request
Represents a pending request from client to server, retained on the client during offline operation until it can be successfully uploaded to the server, or cancelled by the application.
Properties
Functions
Cancel this pending request any any other pending requests that depend on it.
- See Also:
-
{@link com.sap.cloud.mobile.kotlin.odata.OfflineDataService#cancelPendingRequests(com.sap.cloud.mobile.kotlin.odata.PendingRequestList?) OfflineDataService.cancelPendingRequests}.
Return (nullable) The latest client-side state of the entity (if any) that was affected by this request, or if fixRequest is true, then an entity that can be updated to directly fix this pending request.
Return the other requests (if any) that depend on the successful completion of this request.
Return (nullable) The error response information, if {@link com.sap.cloud.mobile.kotlin.odata.PendingRequest#hasError PendingRequest.hasError} is true.
Return (nullable) The latest downloaded state of the entity (if any), that was affected by this request.
Return (nullable) The original downloaded state of the entity (if any), that was affected by this request.
Return (nullable) HTTP request body (as binary data) if available, otherwise null.
- See Also:
-
{@link com.sap.cloud.mobile.kotlin.odata.PendingRequest#getRequestText() PendingRequest.getRequestText}.
Return (nullable) HTTP request body (as text string) if available, otherwise null.
If non-null, the returned value will typically be a JSON text string.
Note: If {@link com.sap.cloud.mobile.kotlin.odata.PendingRequest#method PendingRequest.method} is createMedia, uploadMedia or uploadStream, then null will be returned even if the stream's media type indicates text.
- See Also:
-
{@link com.sap.cloud.mobile.kotlin.odata.PendingRequest#getRequestData() PendingRequest.getRequestData}.
Return (nullable) HTTP response body (as binary data) if available, otherwise null.
Return (nullable) HTTP response body (as text string) if available, otherwise null.
If non-null, the returned value will typically be a JSON text string.
Return string representation of this pending request, omitting request headers and content.
- See Also:
-
{@link com.sap.cloud.mobile.kotlin.odata.PendingRequest#toStringWithDetails(kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean) PendingRequest.toStringWithDetails}.
Return string representation of this pending request, with optional details.