-
Notifications
You must be signed in to change notification settings - Fork 21
Database read objects list
Mk5 edited this page Jul 6, 2019
·
3 revisions
class ReadObjectsListExample {
@Override
void action() {
GdxFIRDatabase.promise()
.then(GdxFIRDatabase.inst().inReference("/employees").readValue(List.class))
.after(GdxFIRAuth.inst().signInAnonymously())
.then(new Consumer<List<Employee>>() {
@Override
@MapConversion(Employee.class)
public void accept(List<Employee> list) {
success();
}
});
}
@Override
void action2() {
GdxFIRDatabase.inReference("/employees")
.readValue(List.class)
.after(GdxFIRAuth.inst().signInAnonymously())
.then(new Consumer<List<Employee>>() {
@Override
@MapConversion(Employee.class)
public void accept(List<Employee> list) {
success();
}
});
}
}
- Getting started
-
Usage 2.x/3.x
- Promises
- Filtering API
- Google Sign in
- Apple Sign in
- Mock other platforms
- Debug
- Database POJO Conversion
-
Examples
- Anonymous authentication
- Create user
- Sign in / Sign out
- Google sign in
- User management
- Upload image to storage
- Download image from storage
- Upload bytes to storage
- Download bytes from storage
- Delete something from storage
- Analytics API methods
- Crash API methods
- Database read value
- Database read object
- Database set value
- Database limit equal
- Database reference listener
- Database read objects list
- Database child event
- Database transaction
- Database sharding
- Database onDisconnect
- General examples
- Kotlin
- Usage 1.x
- Donate