Package com.firebase.client

Examples of com.firebase.client.ChildEventListener


 
  private void populateUsers(){
    String url = "https://signal-app.firebaseio.com/users/";
    Firebase dataRef = new Firebase(url);

    dataRef.addChildEventListener(new ChildEventListener() {
     
      @Override
      public void onChildChanged(DataSnapshot snapshot, String previousChildName) {
      }
View Full Code Here


 
  public Sender(long number){
    _phoneNumber = number;
    String fireBaseURL = "https://signal-app.firebaseio.com/users/"+_phoneNumber+"/sent";
    final Firebase ref = new Firebase(fireBaseURL);
    ref.addChildEventListener(new ChildEventListener(){
     
     
      @Override
      public void onCancelled(){
       
      }

      @Override
      public void onChildAdded(DataSnapshot snapshot, String arg1) {
       
        final String messageKey = snapshot.getName();
        GenericTypeIndicator<Map<String, Object>> t = new GenericTypeIndicator<Map<String, Object>>(){};
        final Map<String,Object> message = snapshot.getValue(t);
       
        String findFollowersURL = "https://signal-app.firebaseio.com/users/"+_phoneNumber;
        Firebase followers = new Firebase(findFollowersURL);
       
       
        followers.addChildEventListener(new ChildEventListener(){

          @Override
          public void onCancelled() {           
          }
View Full Code Here

 
  public void contactSearch(){
    String url = "https://signal-app.firebaseio.com/contact-search/";
    Firebase dataRef = new Firebase(url);

    dataRef.addChildEventListener(new ChildEventListener() {
     
      @Override
      public void onChildChanged(DataSnapshot snapshot, String previousChildName) {
      }
View Full Code Here

TOP

Related Classes of com.firebase.client.ChildEventListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.