@Override protected void save(JSONObject json) throws JSONException { super.save(json); json.put(Keys.SMOKE_CO_ALARM.BATTERY_HEALTH, mBatteryHealth); json.put(Keys.SMOKE_CO_ALARM.CO_ALARM_STATE, mCOAlarmState); json.put(Keys.SMOKE_CO_ALARM.SMOKE_ALARM_STATE, mSmokeAlarmState); json.put(Keys.SMOKE_CO_ALARM.UI_COLOR_STATE, mUIColorState); }
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeString(mBatteryHealth); dest.writeString(mCOAlarmState); dest.writeString(mSmokeAlarmState); dest.writeString(mUIColorState); }