Skip to content

Database set value

Mk5 edited this page Jun 29, 2019 · 1 revision
class SetValueExample {

    @Override
    void action() {
        GdxFIRAuth.inst().signInAnonymously()
            .then(
                 GdxFIRDatabase.inst()
                .inReference("/bob-and-john-max-salary")
                .setValue(10000L)
             )
            .then(
                  GdxFIRDatabase.inst()
                 .inReference("/bob-and-john").push()
                 .setValue(bob)
             )
             .then(
                  GdxFIRDatabase.inst()
                  .inReference("/bob-and-john").push()
                  .setValue(john)
             )
    }

}
Clone this wiki locally