Skip to content Skip to sidebar Skip to footer

Android Firebase Model Class

Here is my Model Class public class Sell { private String transactionID; private int dollarPrice; private boolean isInParts; private String itemName; public Sell() { } publi

Solution 1:

This => Firebase won't bind boolean value to field

Answered my question.

When trying to get a boolean

privateboolean up;
 publicbooleanisUp() {
    return up;
 }

if your boolean field is named isUp, then the getter must be named isIsUp() or getIsUp(). Alternatively, if you want a getter named isUp, the field name would be up.

Post a Comment for "Android Firebase Model Class"