so I have a list of members (MemberObject) on my Firebase and I'm trying to read them with dataSnapshot.getValue..
The firebase looks like this:
I have MemberObject class looks sort of like this:
public class MemberObject {
private String mail;
private String name;
...
And I'm trying to read the whole member list into this:
List<MemberObject> members = dataSnapshot.child("members").getValue(List<MemberObject>.class);
unfortunately this doesn't work as is..
The compiler isn't accepting the List<MemberObject>.class
thing..
It says:
Cannot select from parameterized type
What's the right way to do that?
P.S: Just to clear things up, this "members" tree is a leaf under big tree full of "members" leaves so I can't create another addChildEventListener
inside every leaf