Initial commit

This commit is contained in:
2025-05-13 19:24:51 +02:00
commit a950f49678
10604 changed files with 932663 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package com.tencent.mm.opensdk.modelbase;
import android.os.Bundle;
import com.tencent.mm.opensdk.utils.a;
/* loaded from: classes.dex */
public abstract class BaseReq {
public String openId;
public String transaction;
public abstract boolean checkArgs();
public void fromBundle(Bundle bundle) {
this.transaction = a.b(bundle, "_wxapi_basereq_transaction");
this.openId = a.b(bundle, "_wxapi_basereq_openid");
}
public abstract int getType();
public void toBundle(Bundle bundle) {
bundle.putInt("_wxapi_command_type", getType());
bundle.putString("_wxapi_basereq_transaction", this.transaction);
bundle.putString("_wxapi_basereq_openid", this.openId);
}
}

View File

@@ -0,0 +1,40 @@
package com.tencent.mm.opensdk.modelbase;
import android.os.Bundle;
/* loaded from: classes.dex */
public abstract class BaseResp {
public int errCode;
public String errStr;
public String openId;
public String transaction;
public interface ErrCode {
public static final int ERR_AUTH_DENIED = -4;
public static final int ERR_BAN = -6;
public static final int ERR_COMM = -1;
public static final int ERR_OK = 0;
public static final int ERR_SENT_FAILED = -3;
public static final int ERR_UNSUPPORT = -5;
public static final int ERR_USER_CANCEL = -2;
}
public abstract boolean checkArgs();
public void fromBundle(Bundle bundle) {
this.errCode = bundle.getInt("_wxapi_baseresp_errcode");
this.errStr = bundle.getString("_wxapi_baseresp_errstr");
this.transaction = bundle.getString("_wxapi_baseresp_transaction");
this.openId = bundle.getString("_wxapi_baseresp_openId");
}
public abstract int getType();
public void toBundle(Bundle bundle) {
bundle.putInt("_wxapi_command_type", getType());
bundle.putInt("_wxapi_baseresp_errcode", this.errCode);
bundle.putString("_wxapi_baseresp_errstr", this.errStr);
bundle.putString("_wxapi_baseresp_transaction", this.transaction);
bundle.putString("_wxapi_baseresp_openId", this.openId);
}
}