bitly-shorten
0.9.4-SNAPSHOT
bitly-shorten
/
net.thauvin.erik.bitly
/
CallResponse
Call
Response
data
class
CallResponse
(
val
body
:
String
=
Constants.EMPTY_JSON
,
val
resultCode
:
Int
=
-1
)
(
source
)
Provides a data class to hold the JSON response.
Constructors
Properties
Constructors
Call
Response
Link copied to clipboard
fun
CallResponse
(
body
:
String
=
Constants.EMPTY_JSON
,
resultCode
:
Int
=
-1
)
Properties
body
Link copied to clipboard
val
body
:
String
is
Bad
Request
Link copied to clipboard
val
isBadRequest
:
Boolean
is
Created
Link copied to clipboard
val
isCreated
:
Boolean
is
Expectation
Failed
Link copied to clipboard
val
isExpectationFailed
:
Boolean
is
Forbidden
Link copied to clipboard
val
isForbidden
:
Boolean
is
Internal
Error
Link copied to clipboard
val
isInternalError
:
Boolean
is
Not
Found
Link copied to clipboard
val
isNotFound
:
Boolean
is
Successful
Link copied to clipboard
val
isSuccessful
:
Boolean
is
Temporarily
Unavailable
Link copied to clipboard
val
isTemporarilyUnavailable
:
Boolean
is
Unprocessable
Entity
Link copied to clipboard
val
isUnprocessableEntity
:
Boolean
is
Upgrade
Required
Link copied to clipboard
val
isUpgradeRequired
:
Boolean
result
Code
Link copied to clipboard
val
resultCode
:
Int