com.tencent.mm.sdk.modelbase.BaseReq Java Examples

The following examples show how to use com.tencent.mm.sdk.modelbase.BaseReq. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WXEntryActivity.java    From MiBandDecompiled with Apache License 2.0 6 votes vote down vote up
public void onReq(BaseReq basereq)
{
    switch (basereq.getType())
    {
    default:
        return;

    case 3: // '\003'
        Log.d("chenee", "never come here ??????");
        return;

    case 4: // '\004'
        a((com.tencent.mm.sdk.modelmsg.ShowMessageFromWX.Req)basereq);
        break;
    }
}
 
Example #2
Source File: WxShareInstance.java    From ShareUtil with Apache License 2.0 6 votes vote down vote up
@Override
public void handleResult(Intent data) {
    mIWXAPI.handleIntent(data, new IWXAPIEventHandler() {
        @Override
        public void onReq(BaseReq baseReq) {
        }

        @Override
        public void onResp(BaseResp baseResp) {
            switch (baseResp.errCode) {
                case BaseResp.ErrCode.ERR_OK:
                    ShareUtil.mShareListener.shareSuccess();
                    break;
                case BaseResp.ErrCode.ERR_USER_CANCEL:
                    ShareUtil.mShareListener.shareCancel();
                    break;
                default:
                    ShareUtil.mShareListener.shareFailure(new Exception(baseResp.errStr));
            }
        }
    });
}
 
Example #3
Source File: d.java    From MiBandDecompiled with Apache License 2.0 5 votes vote down vote up
public final boolean sendReq(BaseReq basereq)
{
    if (e)
    {
        throw new IllegalStateException("sendReq fail, WXMsgImpl has been detached");
    }
    if (!com.tencent.mm.sdk.openapi.c.a(b, "com.tencent.mm", d))
    {
        com.tencent.mm.sdk.b.a.a("MicroMsg.SDK.WXApiImplV10", "sendReq failed for wechat app signature check failed");
        return false;
    }
    if (!basereq.checkArgs())
    {
        com.tencent.mm.sdk.b.a.a("MicroMsg.SDK.WXApiImplV10", "sendReq checkArgs fail");
        return false;
    }
    com.tencent.mm.sdk.b.a.c("MicroMsg.SDK.WXApiImplV10", (new StringBuilder("sendReq, req type = ")).append(basereq.getType()).toString());
    Bundle bundle = new Bundle();
    basereq.toBundle(bundle);
    if (basereq.getType() == 5)
    {
        return a(b, bundle);
    }
    if (basereq.getType() == 7)
    {
        return b(b, bundle);
    }
    if (basereq.getType() == 8)
    {
        return c(b, bundle);
    } else
    {
        com.tencent.mm.sdk.a.a.a a1 = new com.tencent.mm.sdk.a.a.a();
        a1.e = bundle;
        a1.d = (new StringBuilder("weixin://sendreq?appid=")).append(c).toString();
        a1.b = "com.tencent.mm";
        a1.c = "com.tencent.mm.plugin.base.stub.WXEntryActivity";
        return com.tencent.mm.sdk.a.a.a(b, a1);
    }
}
 
Example #4
Source File: WxLoginInstance.java    From ShareUtil with Apache License 2.0 5 votes vote down vote up
@Override
public void handleResult(int requestCode, int resultCode, Intent data) {
    mIWXAPI.handleIntent(data, new IWXAPIEventHandler() {
        @Override
        public void onReq(BaseReq baseReq) {
        }

        @Override
        public void onResp(BaseResp baseResp) {
            if (baseResp instanceof SendAuth.Resp && baseResp.getType() == 1) {
                SendAuth.Resp resp = (SendAuth.Resp) baseResp;
                switch (resp.errCode) {
                    case BaseResp.ErrCode.ERR_OK:
                        getToken(resp.code);
                        break;
                    case BaseResp.ErrCode.ERR_USER_CANCEL:
                        mLoginListener.loginCancel();
                        break;
                    case BaseResp.ErrCode.ERR_SENT_FAILED:
                        mLoginListener.loginFailure(new Exception(INFO.WX_ERR_SENT_FAILED));
                        break;
                    case BaseResp.ErrCode.ERR_UNSUPPORT:
                        mLoginListener.loginFailure(new Exception(INFO.WX_ERR_UNSUPPORT));
                        break;
                    case BaseResp.ErrCode.ERR_AUTH_DENIED:
                        mLoginListener.loginFailure(new Exception(INFO.WX_ERR_AUTH_DENIED));
                        break;
                    default:
                        mLoginListener.loginFailure(new Exception(INFO.WX_ERR_AUTH_ERROR));
                }
            }
        }
    });
}
 
Example #5
Source File: WXPayEntryActivity.java    From letv with Apache License 2.0 4 votes vote down vote up
public void onReq(BaseReq req) {
}
 
Example #6
Source File: WXEntryActivity.java    From gokit-android with MIT License 4 votes vote down vote up
@Override
public void onReq(BaseReq req) {
	Log.e(TAG, "onReq...");
}
 
Example #7
Source File: WXCallbackActivity.java    From ESSocialSDK with Apache License 2.0 4 votes vote down vote up
@Override
public void onReq(BaseReq baseReq) {
}
 
Example #8
Source File: ShareActivity.java    From MiBandDecompiled with Apache License 2.0 4 votes vote down vote up
public void onReq(BaseReq basereq)
{
}
 
Example #9
Source File: WeixinPayHelper.java    From android-common-utils with Apache License 2.0 4 votes vote down vote up
@Override
public void onReq(BaseReq baseReq) {
}
 
Example #10
Source File: WeixinHelper.java    From android-common-utils with Apache License 2.0 4 votes vote down vote up
@Override
public void onReq(BaseReq baseReq) {
}
 
Example #11
Source File: WXEntryActivity.java    From Gizwits-SmartBuld_Android with MIT License 4 votes vote down vote up
@Override
public void onReq(BaseReq req) {
	Log.e(TAG, "onReq...");
}
 
Example #12
Source File: WXEntryActivity.java    From QiQuYing with Apache License 2.0 4 votes vote down vote up
@Override
public void onReq(BaseReq arg0) {
	finish();
}
 
Example #13
Source File: WXEntryActivity.java    From GOpenSource_AppKit_Android_AS with MIT License 4 votes vote down vote up
@Override
public void onReq(BaseReq req) {
	Log.e(TAG, "onReq...");
	SDKLog.d(TAG);
}
 
Example #14
Source File: WXEntryActivity.java    From letv with Apache License 2.0 4 votes vote down vote up
public void onReq(BaseReq arg0) {
}
 
Example #15
Source File: WXPayEntryActivity.java    From letv with Apache License 2.0 4 votes vote down vote up
public void onReq(BaseReq arg0) {
}
 
Example #16
Source File: WXEntryActivity.java    From ShareSDK with MIT License 2 votes vote down vote up
@Override
public void onReq(BaseReq req) {

}
 
Example #17
Source File: WXPayCallbackActivity.java    From PayAndroid with Apache License 2.0 2 votes vote down vote up
@Override
public void onReq(BaseReq baseReq) {

}
 
Example #18
Source File: WXEntryActivity.java    From MortgageCalculator with Apache License 2.0 2 votes vote down vote up
@Override
public void onReq(BaseReq baseReq) {

}
 
Example #19
Source File: WXEntryActivity.java    From MortgageCalculator with Apache License 2.0 2 votes vote down vote up
@Override
public void onReq(BaseReq baseReq) {

}
 
Example #20
Source File: WXPayEntryActivity.java    From Android-Application-ZJB with Apache License 2.0 2 votes vote down vote up
@Override
public void onReq(BaseReq baseReq) {

}
 
Example #21
Source File: WXEntryActivity.java    From FoodOrdering with Apache License 2.0 2 votes vote down vote up
@Override
public void onReq(BaseReq req) {

}
 
Example #22
Source File: WXEntryActivity.java    From Android-Application-ZJB with Apache License 2.0 votes vote down vote up
@Override
    public void onReq(BaseReq baseReq) {

    } 
Example #23
Source File: IWXAPI.java    From letv with Apache License 2.0 votes vote down vote up
boolean sendReq(BaseReq baseReq); 
Example #24
Source File: IWXAPIEventHandler.java    From MiBandDecompiled with Apache License 2.0 votes vote down vote up
public abstract void onReq(BaseReq basereq); 
Example #25
Source File: IWXAPIEventHandler.java    From letv with Apache License 2.0 votes vote down vote up
void onReq(BaseReq baseReq); 
Example #26
Source File: IWXAPI.java    From MiBandDecompiled with Apache License 2.0 votes vote down vote up
public abstract boolean sendReq(BaseReq basereq);