toggle menu
Dermato.AI
androidJvm
switch theme
search in API
Dermato.AI
/
com.dermatoai.model
/
HomeViewModel
Home
View
Model
class
HomeViewModel
@
Inject
constructor
(
weatherRepository
:
WeatherRepository
)
:
ViewModel
Members
Constructors
Home
View
Model
Link copied to clipboard
@
Inject
constructor
(
weatherRepository
:
WeatherRepository
)
Properties
climate
Info
Link copied to clipboard
val
climateInfo
:
LiveData
<
Resource
<
ClimateInfoData
>
>
current
Location
Link copied to clipboard
val
currentLocation
:
LiveData
<
Location
?
>
record
List
Link copied to clipboard
val
recordList
:
LiveData
<
List
<
AnalyzeHistoryData
>
>
Functions
put
Current
Location
Link copied to clipboard
fun
putCurrentLocation
(
records
:
Location
?
)
fun
putCurrentLocation
(
records
:
List
<
AnalyzeHistoryData
>
)
request
Climate
Info
Link copied to clipboard
fun
requestClimateInfo
(
lat
:
Double
,
lon
:
Double
)