Hey I am working in Android kotlin. I have response data, which I want to filter and extract data according. My
Response look like this. Inside my response there is three field
strength,
quantity and
subscription.
First Block in for
strength, second block is for
quantity and third block is for
subscription. I will explain in more details. For example I want to filter all subscription value who has
25 ,
50 and
75 and their value of
quantity and
subscription are respectfully from the response.
Note subscription value is in repoonse is hard code. In real response it will more than 3 categories.
I am thinking to use
Tree or
Graph data structure, but I am not 100% sure. I am doing correct or not. Is there any
idiomatic kotlin way to achieved this. I want code to be
Performance optimisation, speed, memory etc.
I'll send these filter list to RecylerView and will manage to show like below image. Can someone guide me how to filter list through response. Thanks