本文整理汇总了Java中com.core.CommonResponse.getData方法的典型用法代码示例。如果您正苦于以下问题:Java CommonResponse.getData方法的具体用法?Java CommonResponse.getData怎么用?Java CommonResponse.getData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.core.CommonResponse
的用法示例。
在下文中一共展示了CommonResponse.getData方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadData
import com.core.CommonResponse; //导入方法依赖的package包/类
private void loadData(CommonResponse resposne, int what) {
dialogDismiss();
if (resposne.isSuccess()) {
if (what == INIT_LIST) {
InvInfoResult result = (InvInfoResult) resposne.getData();
mList = result.getInfos();
} else {
if (mList == null) {
mList = new ArrayList<InvInfoBean>();
}
mList.addAll(((InvInfoResult) resposne.getData()).getInfos());
}
mAdapter.refresh(mList);
} else {
CommonUtil.showToast(resposne.getErrorTip());
}
mListView.onRefreshComplete();
}
示例2: loadFriendData
import com.core.CommonResponse; //导入方法依赖的package包/类
private void loadFriendData(CommonResponse resposne) {
dialogDismiss();
if (resposne.isSuccess()) {
QueryContactFriendsResult result = (QueryContactFriendsResult) resposne.getData();
contacts = result.getRelton();
for (int i = 0; i < mContacts.size(); i++) {
if (contacts.contains(mContacts.get(i))) {
if (contacts.get(contacts.indexOf(mContacts.get(i))).getUserinfo() == null) {
contacts.set(contacts.indexOf(mContacts.get(i)), mContacts.get(i));
} else {
continue;
}
}
}
hanziSequence();
mAdapter.refresh(contacts);
} else {
CommonUtil.showToast(resposne.getErrorTip());
}
ptflistview.onRefreshComplete();
}
示例3: loadData
import com.core.CommonResponse; //导入方法依赖的package包/类
private void loadData(CommonResponse resposne, int what) {
dialogDismiss();
if (resposne.isSuccess()) {
if (what == INIT_LIST) {
InvOfferListResult result = (InvOfferListResult) resposne.getData();
mList = result.getRewards();
} else {
if (mList == null) {
mList = new ArrayList<InvOfferBean>();
}
mList.addAll(((InvOfferListResult) resposne.getData()).getRewards());
}
mAdapter.refresh(mList);
} else {
//避免第一次应用启动时 创建fragment加载数据多次提示
if (isInit) {
CommonUtil.showToast(resposne.getErrorTip());
} else {
isInit = true;
}
}
mListView.onRefreshComplete();
}
示例4: loadData1
import com.core.CommonResponse; //导入方法依赖的package包/类
private void loadData1(CommonResponse resposne, int what) {
dialogDismiss();
if (resposne.isSuccess()) {
if (what == INIT_LIST) {
InvOfferListResult result = (InvOfferListResult) resposne.getData();
mList = result.getRewards();
} else {
if (mList == null) {
mList = new ArrayList<InvOfferBean>();
}
mList.addAll(((InvOfferListResult) resposne.getData()).getRewards());
}
mAdapter.refresh(mList);
} else {
//避免第一次应用启动时 创建fragment加载数据多次提示
if (isInit) {
CommonUtil.showToast(resposne.getErrorTip());
} else {
isInit = true;
}
}
mListView.onRefreshComplete();
}
示例5: loadData
import com.core.CommonResponse; //导入方法依赖的package包/类
private void loadData(CommonResponse resposne, int what) {
dialogDismiss();
if (resposne.isSuccess()) {
if (what == INIT_LIST) {
CollectedActResult result = (CollectedActResult) resposne.getData();
mList = result.getRetActivitys();
} else {
if (mList == null) {
mList = new ArrayList<InvActBean>();
}
mList.addAll(((CollectedActResult) resposne.getData()).getRetActivitys());
}
mAdapter.refresh(mList);
} else {
//避免第一次应用启动时 创建fragment加载数据多次提示
if (isInit) {
CommonUtil.showToast(resposne.getErrorTip());
} else {
isInit = true;
}
}
mListView.onRefreshComplete();
}
示例6: loadReward
import com.core.CommonResponse; //导入方法依赖的package包/类
private void loadReward(CommonResponse resposne) {
dialogDismiss();
if (resposne.isSuccess()) {
InvRecordRewardsResult recordRewardsResult = (InvRecordRewardsResult) resposne.getData();
double rewardsAmount = recordRewardsResult.getRewardsAmount();
if (rewardsAmount <= 0) {
rewardsAmount = invInfoBean.getRewardsAmount() + need;
}
invInfoBean.setRewardsAmount(rewardsAmount);
CommonUtil.showToast("打赏成功拉");
balance_et.setText(currentMoney + "金币");
Intent intent = new Intent();
intent.putExtra(KEY, invInfoBean);
setResult(InfoDetailActivity.REQUSETCODE, intent);
finish();
} else {
CommonUtil.showToast(resposne.getErrorTip());
}
}
示例7: loadLogin
import com.core.CommonResponse; //导入方法依赖的package包/类
private void loadLogin(CommonResponse resposne) {
dialogDismiss();
if (resposne.isSuccess()) {
UserResult result = (UserResult) resposne.getData();
loginSuccess(result);
} else {
if (App.getInstance().isNoAccount()) {
loginSuccess(UserResult.testData());
return;
}
CommonUtil.showToast(resposne.getMsg());
}
}
示例8: loadAgreementCancle
import com.core.CommonResponse; //导入方法依赖的package包/类
/**
* 取消约定
*
* @param resposne
*/
private void loadAgreementCancle(CommonResponse resposne) {
dialogDismiss();
sendCount = 0;
if (resposne.isSuccess()) {
AgreementResult result = (AgreementResult) resposne.getData();
App.getInstance().setAppoint_time(result.getAppoint_time());
AgreementStateEventType eventType = new AgreementStateEventType(cureentParent.getUid(), AgreementStateEventType.AGREEMENT_END, null, result.getAppoint_time());
EventBus.getDefault().postSticky(eventType);
} else {
CommonUtil.showToast(resposne.getMsg());
}
}
示例9: loadBalance
import com.core.CommonResponse; //导入方法依赖的package包/类
private void loadBalance(CommonResponse resposne) {
dialogDismiss();
if (resposne.isSuccess()) {
AccountResult result = (AccountResult) resposne.getData();
initView(result.getAccount());
} else {
CommonUtil.showToast(resposne.getErrorTip());
}
}
示例10: loadDataDetail
import com.core.CommonResponse; //导入方法依赖的package包/类
private void loadDataDetail(CommonResponse resposne) {
dialogDismiss();
if (resposne.isSuccess()) {
invActDetailResult = (InvActDetailResult) resposne.getData();
initData();
} else {
CommonUtil.showToast(resposne.getErrorTip());
}
}
示例11: loadModifyUserInfoData
import com.core.CommonResponse; //导入方法依赖的package包/类
private void loadModifyUserInfoData(CommonResponse resposne) {
userInfoUpload = false;
dialogDismiss();
if (resposne.isSuccess()) {
ModifyUserInfoResult result = (ModifyUserInfoResult) resposne.getData();
App.getInstance().setgUserInfo(result.getUser());
finishActivity();
} else {
CommonUtil.showToast(resposne.getErrorTip());
}
}
示例12: loadRelease
import com.core.CommonResponse; //导入方法依赖的package包/类
private void loadRelease(CommonResponse resposne) {
dialogDismiss();
if (resposne.isSuccess()) {
InvActDetailResult releaseResult = (InvActDetailResult) resposne.getData();
Intent intent = new Intent();
intent.putExtra(KEY, releaseResult.getDetail());
setResult(AbsFragment.RECODE_RELEASE, intent);
CommonUtil.showToast("发布成功");
finish();
} else {
CommonUtil.showToast(resposne.getErrorTip());
}
}
示例13: loadDataDetail
import com.core.CommonResponse; //导入方法依赖的package包/类
private void loadDataDetail(CommonResponse resposne) {
dialogDismiss();
if (resposne.isSuccess()) {
infoDetailResult = (InvInfoDetailResult) resposne.getData();
initData();
} else {
CommonUtil.showToast(resposne.getErrorTip());
}
}
示例14: loadFriendData
import com.core.CommonResponse; //导入方法依赖的package包/类
private void loadFriendData(CommonResponse resposne) {
if (resposne.isSuccess()) {
BatchInfoResult result = (BatchInfoResult) resposne.getData();
friends = result.getUserinfo();
} else {
CommonUtil.showToast(resposne.getErrorTip());
}
}
示例15: loadData
import com.core.CommonResponse; //导入方法依赖的package包/类
private void loadData(CommonResponse resposne) {
dialogDismiss();
if (resposne.isSuccess()) {
QueryUserFansResult result = (QueryUserFansResult) resposne.getData();
subscribers = result.getSubscribers();
hanziSequence();
} else {
CommonUtil.showToast(resposne.getErrorTip());
}
}