Hi Backendless,
I am new in Backendless.
I am trying to update my DataObject but all time I received next fault:
Cannot update object without any properties:CREATOR.
public class Dish {
public static final int DEFAULT_LOGO = R.drawable.ic_dish_default;
public String name;
public String objectId;
public Bitmap logo;
public boolean favourite = false;
public static int getDefaultLogoId() {
return DEFAULT_LOGO;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public boolean isFavourite() {
return favourite;
}
public void setFavourite(boolean favourite) {
this.favourite = favourite;
}
public String getObjectId() {
return objectId;
}
public void setObjectId(String objectId) {
this.objectId = objectId;
}
public Bitmap getLogo() {
return logo;
}
public void setLogo(Bitmap logo) {
this.logo = logo;
}
}
dish.setFavourite(isChecked);
Backendless.Data.of(Dish.class).save(dish, new AsyncCallback<Dish>() {
public void handleResponse(Dish savedDish) {
Log.i("Dish", "saved");
}
@Override
public void handleFault(BackendlessFault fault) {
Toast.makeText(
holder.itemView.getContext(),
fault.toString(),
Toast.LENGTH_SHORT)
.show();
}
});
Do you have any suggestion regarding this?
Thank you for help in advance.