gsdsdk / com.gsd.software.sdk.viewparser.dynamicview.repository / DynamicViewRepository

DynamicViewRepository

class DynamicViewRepository :DynamicViewDataSource

Created by Maksim Shumko on 6/22/2020

Constructors

Name Summary
<init> DynamicViewRepository(local:DynamicViewDataSource, remote:DynamicViewDataSource)
Created by Maksim Shumko on 6/22/2020

Functions

Name Summary
getAllDynamicViewLiveData fun getAllDynamicViewLiveData(): LiveData<List<DynamicView>>
getDynamicViewLiveData fun getDynamicViewLiveData(viewId:String): LiveData<DynamicView>
loadDynamicViews suspend fun loadDynamicViews(viewIds:List<String>):RepositoryResult<List<DynamicViewWrapper>>
loadDynamicViewsChanges suspend fun loadDynamicViewsChanges(lastSyncDate:String):RepositoryResult<DynamicViewChanges>
saveDynamicView suspend fun saveDynamicView(dynamicView:DynamicView):Unit
saveDynamicViews suspend fun saveDynamicViews(dynamicViews:List<DynamicView>):Unit