vgscollect
Toggle table of contents
androidJvm
Target filter
androidJvm
Switch theme
Search in API
Skip to content
vgscollect
vgscollect
/
com.verygoodsecurity.vgscollect.core.model.network
/
NetworkResponse
Network
Response
data
class
NetworkResponse
(
val
isSuccessful
:
Boolean
=
false
,
val
body
:
String
?
=
null
,
val
code
:
Int
=
-1
,
val
message
:
String
?
=
null
,
val
error
:
VGSError
?
=
null
)
Members
Members & Extensions
Constructors
Network
Response
Link copied to clipboard
constructor
(
isSuccessful
:
Boolean
=
false
,
body
:
String
?
=
null
,
code
:
Int
=
-1
,
message
:
String
?
=
null
,
error
:
VGSError
?
=
null
)
Properties
body
Link copied to clipboard
val
body
:
String
?
code
Link copied to clipboard
val
code
:
Int
error
Link copied to clipboard
val
error
:
VGSError
?
is
Successful
Link copied to clipboard
val
isSuccessful
:
Boolean
message
Link copied to clipboard
val
message
:
String
?
Functions
to
VGSResponse
Link copied to clipboard
fun
NetworkResponse
.
toVGSResponse
(
context
:
Context
?
=
null
)
:
VGSResponse