Volvo Kotlin API
Toggle table of contents
0.6.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Volvo Kotlin API
volvo-api-core
/
com.github.ayastrebov.volvo.api.model.energy
/
ResourceResultIntegerWithUnit
Resource
Result
Integer
With
Unit
@
Serializable
data
class
ResourceResultIntegerWithUnit
(
val
status
:
String
,
val
value
:
Int
?
=
null
,
val
updatedAt
:
Instant
?
=
null
,
val
unit
:
String
?
=
null
,
val
code
:
String
?
=
null
,
val
message
:
String
?
=
null
)
(
source
)
Resource result with integer value and unit.
Members
Members & Extensions
Constructors
Resource
Result
Integer
With
Unit
Link copied to clipboard
constructor
(
status
:
String
,
value
:
Int
?
=
null
,
updatedAt
:
Instant
?
=
null
,
unit
:
String
?
=
null
,
code
:
String
?
=
null
,
message
:
String
?
=
null
)
Properties
code
Link copied to clipboard
@
SerialName
(
value
=
"code"
)
val
code
:
String
?
message
Link copied to clipboard
@
SerialName
(
value
=
"message"
)
val
message
:
String
?
resource
Status
Link copied to clipboard
val
ResourceResultIntegerWithUnit
.
resourceStatus
:
ResourceStatus
Returns the status as a type-safe
ResourceStatus
enum.
status
Link copied to clipboard
@
SerialName
(
value
=
"status"
)
val
status
:
String
unit
Link copied to clipboard
@
SerialName
(
value
=
"unit"
)
val
unit
:
String
?
updated
At
Link copied to clipboard
@
SerialName
(
value
=
"updatedAt"
)
val
updatedAt
:
Instant
?
value
Link copied to clipboard
@
SerialName
(
value
=
"value"
)
val
value
:
Int
?