CallResponse

data class CallResponse(val body: String = Constants.EMPTY_JSON, val resultCode: Int = -1)

Provides a data class to hold the JSON response.

Constructors

Link copied to clipboard
fun CallResponse(body: String = Constants.EMPTY_JSON, resultCode: Int = -1)

Properties

Link copied to clipboard
val body: String
Link copied to clipboard
val isBadRequest: Boolean
Link copied to clipboard
val isCreated: Boolean
Link copied to clipboard
val isExpectationFailed: Boolean
Link copied to clipboard
val isForbidden: Boolean
Link copied to clipboard
val isInternalError: Boolean
Link copied to clipboard
val isNotFound: Boolean
Link copied to clipboard
val isSuccessful: Boolean
Link copied to clipboard
val isTemporarilyUnavailable: Boolean
Link copied to clipboard
val isUnprocessableEntity: Boolean
Link copied to clipboard
val isUpgradeRequired: Boolean
Link copied to clipboard
val resultCode: Int

Sources

Link copied to clipboard