@Test public void delete_object_without_object_id() { NCMBObject obj = new NCMBObject("TestClass"); try { obj.deleteObject(); } catch (NCMBException e) { Assert.assertEquals(NCMBException.REQUIRED, e.getCode()); } }
public void deleteObject() throws NCMBException { NCMBObjectService objService = (NCMBObjectService) NCMB.factory(NCMB.ServiceType.OBJECT); objService.deleteObject(mClassName, getObjectId()); mFields = new JSONObject(); mUpdateKeys.clear(); }
NCMBObject extends NCMBBase { public void deleteObject() throws NCMBException { NCMBObjectService objService = (NCMBObjectService) NCMB.factory(NCMB.ServiceType.OBJECT); objService.deleteObject(mClassName, getObjectId()); mFields = new JSONObject(); mUpdateKeys.clear(); } }
NCMBObject extends NCMBBase { public void deleteObject() throws NCMBException { NCMBObjectService objService = (NCMBObjectService) NCMB.factory(NCMB.ServiceType.OBJECT); objService.deleteObject(mClassName, getObjectId()); mFields = new JSONObject(); mUpdateKeys.clear(); } NCMBObject(String className);   NCMBObject(String className, JSONObject params); }
NCMBObject extends NCMBBase { public void deleteObject() throws NCMBException { NCMBObjectService objService = (NCMBObjectService) NCMB.factory(NCMB.ServiceType.OBJECT); objService.deleteObject(mClassName, getObjectId()); mFields = new JSONObject(); mUpdateKeys.clear(); } NCMBObject(String className);   NCMBObject(String className, JSONObject params); void save(); void saveInBackground(final DoneCallback callback); void fetch(); void fetchInBackground(); void fetchInBackground(final FetchCallback callback); void deleteObject(); void deleteObjectInBackground(final DoneCallback callback); void increment(String key, int amount); void addToList(String key, List objects); void addUniqueToList(String key, List objects); void removeFromList(String key, List objects); }
NCMBObject extends NCMBBase { public void deleteObject() throws NCMBException { NCMBObjectService objService = (NCMBObjectService) NCMB.factory(NCMB.ServiceType.OBJECT); objService.deleteObject(mClassName, getObjectId()); mFields = new JSONObject(); mUpdateKeys.clear(); } NCMBObject(String className);   NCMBObject(String className, JSONObject params); void save(); void saveInBackground(final DoneCallback callback); void fetch(); void fetchInBackground(); void fetchInBackground(final FetchCallback callback); void deleteObject(); void deleteObjectInBackground(final DoneCallback callback); void increment(String key, int amount); void addToList(String key, List objects); void addUniqueToList(String key, List objects); void removeFromList(String key, List objects);  }