toggle menu
vgscollect
androidJvm
switch theme
search in API
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
?
=
null
code
Link copied to clipboard
val
code
:
Int
error
Link copied to clipboard
val
error
:
VGSError
?
=
null
is
Successful
Link copied to clipboard
val
isSuccessful
:
Boolean
=
false
message
Link copied to clipboard
val
message
:
String
?
=
null
Functions
to
VGSResponse
Link copied to clipboard
fun
NetworkResponse
.
toVGSResponse
(
context
:
Context
?
=
null
)
:
VGSResponse