public void hidden(UrlListData origInal, int hidden, Callback<MainServerData<Object>> callback) { UrlListData urlListData = origInal.clone(); urlListData.hidden = hidden; urlListInterface.hidden( LinkBoxController.usrListData.usrKey, LinkBoxController.currentBox.boxKey, urlListData, callback); }
public void like(UrlListData original, int good, Callback<MainServerData<Object>> callback) { UrlListData urlListData = original.clone(); urlListData.liked = good == 0 ? 0 : 1; urlListInterface.like( LinkBoxController.usrListData.usrKey, LinkBoxController.currentBox.boxKey, urlListData, callback); }
public void edit( UrlListData original, String newTitle, Callback<MainServerData<Object>> callback) { UrlListData urlListData = original.clone(); urlListData.urlTitle = newTitle; urlListInterface.edit( LinkBoxController.usrListData.usrKey, LinkBoxController.currentBox.boxKey, urlListData, callback); }