Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. class Heroku{
  2. public List<Post> unpublished;
  3.  
  4. public List<Post> getUnpublished(){
  5. Firebase fbase = new Firebase (FBASE_URL);
  6.  
  7. ref.addChildEventListener(new ChildEventListener() {
  8. // Retrieve new posts as they are added to Firebase
  9. @Override
  10. public void onChildAdded(DataSnapshot snapshot, String previousChildKey) {
  11. Map<String, Object> newPost = (Map<String, Object>) snapshot.getValue();
  12. // push to unpublished like newpost.get...
  13. }
  14. }
  15. retun unpublished;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement