rlamasb / Firebase.Xamarin

Light weight wrapper for Firebase Realtime Database REST API.
MIT License
149 stars 39 forks source link

Additional Documentation #13

Closed fedoranimus closed 7 years ago

fedoranimus commented 7 years ago

Is there any documentation on how to use the Offline Database with this library?

Also, the .WithAuth(...) documentation seems to be incorrect, as this method cannot be chained from .Child('...').

Will updates to the documentation be made to clarify these issues?

Thanks!

dthall43 commented 7 years ago

You are correct that his documentation is incorrect. However I wish to provide a way to use WithAuth so that future people can understand.

There is a class called QueryExtensions that provides the ability to do extended queries. It has a method WithAuth(string:token).

var result = QueryExtensions.WithAuth(dinos, auth.FirebaseToken).OnceAsync<Object>().Result

fedoranimus commented 7 years ago

Excellent, thank you.