Skip to content

Instantly share code, notes, and snippets.

@ZaelAndrew11
Created September 5, 2017 02:22
Show Gist options
  • Save ZaelAndrew11/ee678275bedf91bb9b151ce92975dfcc to your computer and use it in GitHub Desktop.
Save ZaelAndrew11/ee678275bedf91bb9b151ce92975dfcc to your computer and use it in GitHub Desktop.
Desafío 001 - E8
package cl.aguzman.desafioe08_1;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
public class Nodes {
private DatabaseReference root = FirebaseDatabase.getInstance().getReference();
public DatabaseReference getReference() {
return root;
}
public DatabaseReference getReferenceAddress(){
return root.child("clients").child("jhkkjnkjn").child("address");
}
public DatabaseReference getClients(String client){
return root.child("clients").child(client);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment