@Test public void deleteInBackground_none_callback() throws Exception { NCMBInstallation installation = new NCMBInstallation(); installation.setObjectId("7FrmPTBKSNtVjajm"); installation.fetchInBackground(); }
@Override public void fetchInBackground(final FetchCallback callback) { NCMBInstallationService installationService = (NCMBInstallationService) NCMB.factory(NCMB.ServiceType.INSTALLATION); installationService.fetchInstallationInBackground(getObjectId(), new FetchCallback<NCMBInstallation>() { @Override public void done(NCMBInstallation installation, NCMBException e) { NCMBException error = null; if (e != null) { error = e; } else { mFields = installation.mFields; } if (callback != null) { callback.done(installation, error); } } }); }
NCMBInstallation extends NCMBObject { @Override public void fetchInBackground(final FetchCallback callback) { NCMBInstallationService installationService = (NCMBInstallationService) NCMB.factory(NCMB.ServiceType.INSTALLATION); installationService.fetchInstallationInBackground(getObjectId(), new FetchCallback<NCMBInstallation>() { @Override public void done(NCMBInstallation installation, NCMBException e) { NCMBException error = null; if (e != null) { error = e; } else { mFields = installation.mFields; } if (callback != null) { callback.done(installation, error); } } }); } }
NCMBInstallation extends NCMBObject { @Override public void fetchInBackground(final FetchCallback callback) { NCMBInstallationService installationService = (NCMBInstallationService) NCMB.factory(NCMB.ServiceType.INSTALLATION); installationService.fetchInstallationInBackground(getObjectId(), new FetchCallback<NCMBInstallation>() { @Override public void done(NCMBInstallation installation, NCMBException e) { NCMBException error = null; if (e != null) { error = e; } else { mFields = installation.mFields; } if (callback != null) { callback.done(installation, error); } } }); } NCMBInstallation();   NCMBInstallation(JSONObject params); }
NCMBInstallation extends NCMBObject { @Override public void fetchInBackground(final FetchCallback callback) { NCMBInstallationService installationService = (NCMBInstallationService) NCMB.factory(NCMB.ServiceType.INSTALLATION); installationService.fetchInstallationInBackground(getObjectId(), new FetchCallback<NCMBInstallation>() { @Override public void done(NCMBInstallation installation, NCMBException e) { NCMBException error = null; if (e != null) { error = e; } else { mFields = installation.mFields; } if (callback != null) { callback.done(installation, error); } } }); } NCMBInstallation();   NCMBInstallation(JSONObject params); String getApplicationName(); String getAppVersion(); int getBadge(); JSONArray getChannels(); String getDeviceType(); String getDeviceToken(); void getDeviceTokenInBackground(final TokenCallback callback); String getSDKVersion(); String getTimeZone(); Object getValue(String name); void setApplicationName(String value); void setBadge(int value); void setChannels(JSONArray value); void setDeviceToken(String value); static NCMBInstallation getCurrentInstallation(); static NCMBQuery<NCMBInstallation> getQuery(); static void subscribe(String channel, Class<? extends Activity> activity); static void subscribe(String channelName, Class<? extends Activity> activity, int icon); static void unsubscribe(String channelName); static Set<String> getSubscriptions(); void save(); void saveInBackground(); void saveInBackground(final DoneCallback callback); @Override void fetch(); @Override void fetchInBackground(final FetchCallback callback); void delete(); void deleteInBackground(); void deleteInBackground(final DoneCallback callback); }
NCMBInstallation extends NCMBObject { @Override public void fetchInBackground(final FetchCallback callback) { NCMBInstallationService installationService = (NCMBInstallationService) NCMB.factory(NCMB.ServiceType.INSTALLATION); installationService.fetchInstallationInBackground(getObjectId(), new FetchCallback<NCMBInstallation>() { @Override public void done(NCMBInstallation installation, NCMBException e) { NCMBException error = null; if (e != null) { error = e; } else { mFields = installation.mFields; } if (callback != null) { callback.done(installation, error); } } }); } NCMBInstallation();   NCMBInstallation(JSONObject params); String getApplicationName(); String getAppVersion(); int getBadge(); JSONArray getChannels(); String getDeviceType(); String getDeviceToken(); void getDeviceTokenInBackground(final TokenCallback callback); String getSDKVersion(); String getTimeZone(); Object getValue(String name); void setApplicationName(String value); void setBadge(int value); void setChannels(JSONArray value); void setDeviceToken(String value); static NCMBInstallation getCurrentInstallation(); static NCMBQuery<NCMBInstallation> getQuery(); static void subscribe(String channel, Class<? extends Activity> activity); static void subscribe(String channelName, Class<? extends Activity> activity, int icon); static void unsubscribe(String channelName); static Set<String> getSubscriptions(); void save(); void saveInBackground(); void saveInBackground(final DoneCallback callback); @Override void fetch(); @Override void fetchInBackground(final FetchCallback callback); void delete(); void deleteInBackground(); void deleteInBackground(final DoneCallback callback);  }