当前位置: 首页>>代码示例>>Java>>正文


Java CommonResponse.getData方法代码示例

本文整理汇总了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();
}
 
开发者ID:tengbinlive,项目名称:info_demo,代码行数:19,代码来源:CollectedInvInfoFragment.java

示例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();
}
 
开发者ID:tengbinlive,项目名称:info_demo,代码行数:24,代码来源:InviteContactsActivity.java

示例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();
}
 
开发者ID:tengbinlive,项目名称:info_demo,代码行数:24,代码来源:InvOfferFragment.java

示例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();
}
 
开发者ID:tengbinlive,项目名称:info_demo,代码行数:24,代码来源:MeOfferRewFragment.java

示例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();
}
 
开发者ID:tengbinlive,项目名称:info_demo,代码行数:24,代码来源:CollectedInvActFragment.java

示例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());
    }
}
 
开发者ID:tengbinlive,项目名称:info_demo,代码行数:20,代码来源:InfoRewardActivity.java

示例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());
    }
}
 
开发者ID:tengbinlive,项目名称:ooooim_android,代码行数:14,代码来源:LoginActivity.java

示例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());
    }
}
 
开发者ID:tengbinlive,项目名称:aibao_demo,代码行数:18,代码来源:AgreementFragment.java

示例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());
    }
}
 
开发者ID:tengbinlive,项目名称:info_demo,代码行数:10,代码来源:UserWalletActivity.java

示例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());
    }
}
 
开发者ID:tengbinlive,项目名称:info_demo,代码行数:10,代码来源:ActMyPartakeDetailActivity.java

示例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());
    }
}
 
开发者ID:tengbinlive,项目名称:info_demo,代码行数:12,代码来源:ModifyUserInfoActivity.java

示例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());
    }
}
 
开发者ID:tengbinlive,项目名称:info_demo,代码行数:14,代码来源:ActReleaseRoadshowActivity.java

示例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());
    }
}
 
开发者ID:tengbinlive,项目名称:info_demo,代码行数:10,代码来源:InfoDetailActivity.java

示例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());
    }
}
 
开发者ID:tengbinlive,项目名称:info_demo,代码行数:9,代码来源:AddFriendActivity.java

示例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());
    }
}
 
开发者ID:tengbinlive,项目名称:info_demo,代码行数:11,代码来源:UserFollowActivity.java


注:本文中的com.core.CommonResponse.getData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。