1

I have user_table in firebase, I want get all node data as list from user_table.

I can get all data with

FirebaseResponse response = await client.GetTaskAsync("User_Table\");

, then I can not serialize json data to object

 FirebaseResponse response = await client.GetTaskAsync("User_Table\\");
 List<UserList> usr = (List<UserList>)JsonConvert.DeserializeObject(response.ToString(), (typeof(List<UserList>)));
Filburt
  • 17,626
  • 12
  • 64
  • 115
İLHAM
  • 71
  • 6

1 Answers1

1

Have you tried using a dictionary and foreach?

You can also try to follow this tutorial from YouTube https://m.youtube.com/watch?v=oeblTSuBjSo&t=1s

Example:

FirebaseResponse response = await client.GetAsync("users");
Dictionary<string, Class> data = response.ResultAs<Dictionary<string, Data>>();
return data;
Lucas Serafim
  • 3,702
  • 6
  • 30
  • 36