Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void gerarLotes() {
- lotes = new ArrayList<>();
- lotesReferencia.addChildEventListener(new ChildEventListener() {
- @Override
- public void onChildAdded (@NonNull DataSnapshot dataSnapshot, @Nullable String s){
- for(DataSnapshot postSnapshot : dataSnapshot.getChildren()){
- Lotes json = dataSnapshot.getValue(Lotes.class);
- HMAux aux = new HMAux();
- aux.put(HMAux.TEXTO_01, json.getId());
- aux.put(HMAux.TEXTO_02, json.getPecas());
- aux.put(HMAux.TEXTO_03, json.getPreço());
- lotes.add(aux);
- }
- }
Add Comment
Please, Sign In to add comment