@Override public void onRetry() { addTag(roomId, tag, order, callback); } }));
/** * Add a tag to a room. * Use this method to update the order of an existing tag. * * @param tag the new tag to add to the room. * @param order the order. * @param callback the operation callback */ private void addTag(String tag, Double order, final ApiCallback<Void> callback) { // sanity check if ((null != tag) && (null != order)) { mDataHandler.getDataRetriever().getRoomsRestClient().addTag(getRoomId(), tag, order, callback); } else { if (null != callback) { callback.onSuccess(null); } } }