Demo entry 6642908

java

   

Submitted by nie on Sep 26, 2017 at 05:59
Language: Java. Code size: 680 Bytes.

    /*上传区服角色信息*/
    public void uploadRoleInfo(Context context, String[] infos, final NetCallBack netCallBack) {
        if (!NetworkImpl.isNetWorkConneted(context)) {
            ToastUtil.getInstance(mActivity, "网络连接错误,请检查网络").show();
            return ;
        }
        RoleInfoUtil.updateRoleInfo(infos, context, new NetCallBack() {
            @Override
            public void onInitSuccess(ResultCode result) {
                netCallBack.onInitSuccess(null);//通知数据上传成功
            }

            @Override
            public void onInitFail(ResultCode result) {
                netCallBack.onInitFail(null);//通知数据上传失败
            }
        });
    }

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).