Join Slack
Powered by
How Do I maintain a State in Coroutines flow while...
# coroutines
z
Zaraki596
04/25/2020, 11:40 AM
How Do I maintain a State in Coroutines flow while manipulating or filtering out the data? I am trying to build the app in which I show the covid19 data according to the State(Country states) now I am going further more into district level and I am stuck at filtering out the data according to State(Country states) District data. I am trying to filter out the data according to the State(Country states) name so that I can have all the district name in it while maintaining the state. I couldn't wrap my head around how would we maintaining the state Any help would be appreciated Repository class :
https://gist.github.com/Zaraki596/50137acabd904b34eb47018e1dab74b6
District Viewmodel class :
https://gist.github.com/Zaraki596/380d781e84011dd9225fe1a63f6966ee
Main Viewmodel Class :
https://gist.github.com/224691a97a120b3c741c5a51c21609bb
Main Activity Class :
https://gist.github.com/Zaraki596/cea83c1af4cdace7aa64490b4d05cf91
Json File Url In which I am trying to parse out the required info according to state :
https://api.covid19india.org/v2/state_district_wise.json
Some of the gists for the current info
Open in Slack
Previous
Next