gsdsdk / com.gsd.software.sdk.viewparser.dynamicview.layoutdsl.singleobjectrequestpicker.viewmodel / SingleObjectRequestPickerViewModel

SingleObjectRequestPickerViewModel

class SingleObjectRequestPickerViewModel : ViewModel

Created by Michal Zuchowski on 13/08/2021

Constructors

Name Summary
<init> SingleObjectRequestPickerViewModel(listItem:ListItem, dataSource:ViewDataSource?, dynamicRequestRepository:DynamicRequestSource, objectPropertiesParser:ObjectPropertiesParser)
Created by Michal Zuchowski on 13/08/2021

Properties

Name Summary
error val error: SingleLiveEvent<ResponseStatus>
isInitialItemLoaded val isInitialItemLoaded: SingleLiveEvent<Boolean>
item val item: MutableLiveData<MappedItem?>
loadingIndicator val loadingIndicator: MutableLiveData<Boolean>

Functions

Name Summary
loadInitialItem fun loadInitialItem(objectId:String, scope: CoroutineScope = viewModelScope):Unit
updateItemValue fun updateItemValue(mappedItem:MappedItem?):Unit