此处信号中没有添加任何值,但dataSnapshot正在正确打印..
在这里输入代码
databaseReference.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
Signals signals=dataSnapshot.getValue(Signals.class);
Log.v("dataSnap",dataSnapshot.toString());
Log.i("signals", "h"+signals.getmBuyAt());
}
@Override
public void onCancelled(DatabaseError databaseError) {
}
});
}