@Override protected Boolean doInBackground(Long... params) { if (ConfigConstants.DEBUG_NO_SERVER) { return true; } RestResult result = HttpReqFactory.getServerResultByToken( RestResult.class, ConfigConstants.POST_REMOVE_NICE_URL, new HttpReqFactory.ReqParam("postNo", params[0].intValue())); if (null != result && result.getCode() == RestResult.C_SUCCESS) { return true; } return false; }
@Override protected Boolean doInBackground(Void... params) { if (ConfigConstants.DEBUG_NO_SERVER) { return true; } RestResult result = HttpReqFactory.getServerResultByToken( RestResult.class, ConfigConstants.ATTENTION_CANCEL_URL, new HttpReqFactory.ReqParam( "attentionNo", GlobalRes.getInstance().getBeans().getCurrentUserNo())); if (null != result && result.getCode() == RestResult.C_SUCCESS) { return true; } return false; }
@Override protected Boolean doInBackground(Object... params) { if (ConfigConstants.DEBUG_NO_SERVER) { return true; } RestResult result = HttpReqFactory.getServerResultByToken( RestResult.class, ConfigConstants.BLACKLIST_CREATE, new HttpReqFactory.ReqParam("attentionNo", params[0])); if (null != result && result.getCode() == RestResult.C_SUCCESS) { DaoAttentionDataCache dao = new DaoAttentionDataCache(); List<AttentionData> datas = dao.getList(GlobalRes.getInstance().getBeans().getLoginName()); for (int j = 0; j < datas.size(); j++) { if (datas.get(j).getUserNo().longValue() == ((Long) params[0]).longValue()) { dao.delete(GlobalRes.getInstance().getBeans().getLoginName(), datas.get(j).getUserNo()); break; } } return true; } return false; }