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,144 @@
package com.tencent.mm.opensdk.modelbiz;
import android.os.Bundle;
import com.tencent.mm.opensdk.modelbase.BaseReq;
import com.tencent.mm.opensdk.modelbase.BaseResp;
import com.tencent.mm.opensdk.utils.Log;
import java.util.LinkedList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;
import org.json.JSONStringer;
import org.json.JSONTokener;
/* loaded from: classes.dex */
public class AddCardToWXCardPackage {
private static final String TAG = "MicroMsg.AddCardToWXCardPackage";
public static class Req extends BaseReq {
public List<WXCardItem> cardArrary;
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public boolean checkArgs() {
String str;
String str2;
List<WXCardItem> list = this.cardArrary;
if (list == null || list.size() == 0 || this.cardArrary.size() > 40) {
return false;
}
for (WXCardItem wXCardItem : this.cardArrary) {
if (wXCardItem == null || (str = wXCardItem.cardId) == null || str.length() > 1024 || ((str2 = wXCardItem.cardExtMsg) != null && str2.length() > 1024)) {
return false;
}
}
return true;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public int getType() {
return 9;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
JSONStringer jSONStringer = new JSONStringer();
try {
jSONStringer.object();
jSONStringer.key("card_list");
jSONStringer.array();
for (WXCardItem wXCardItem : this.cardArrary) {
jSONStringer.object();
jSONStringer.key("card_id");
jSONStringer.value(wXCardItem.cardId);
jSONStringer.key("card_ext");
jSONStringer.value(wXCardItem.cardExtMsg == null ? "" : wXCardItem.cardExtMsg);
jSONStringer.endObject();
}
jSONStringer.endArray();
jSONStringer.endObject();
} catch (Exception e) {
Log.e(AddCardToWXCardPackage.TAG, "Req.toBundle exception:" + e.getMessage());
}
bundle.putString("_wxapi_add_card_to_wx_card_list", jSONStringer.toString());
}
}
public static class Resp extends BaseResp {
public List<WXCardItem> cardArrary;
public Resp() {
}
public Resp(Bundle bundle) {
fromBundle(bundle);
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public boolean checkArgs() {
List<WXCardItem> list = this.cardArrary;
return (list == null || list.size() == 0) ? false : true;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public void fromBundle(Bundle bundle) {
super.fromBundle(bundle);
if (this.cardArrary == null) {
this.cardArrary = new LinkedList();
}
String string = bundle.getString("_wxapi_add_card_to_wx_card_list");
if (string == null || string.length() <= 0) {
return;
}
try {
JSONArray jSONArray = ((JSONObject) new JSONTokener(string).nextValue()).getJSONArray("card_list");
for (int i = 0; i < jSONArray.length(); i++) {
JSONObject jSONObject = jSONArray.getJSONObject(i);
WXCardItem wXCardItem = new WXCardItem();
wXCardItem.cardId = jSONObject.optString("card_id");
wXCardItem.cardExtMsg = jSONObject.optString("card_ext");
wXCardItem.cardState = jSONObject.optInt("is_succ");
this.cardArrary.add(wXCardItem);
}
} catch (Exception unused) {
}
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public int getType() {
return 9;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
JSONStringer jSONStringer = new JSONStringer();
try {
jSONStringer.object();
jSONStringer.key("card_list");
jSONStringer.array();
for (WXCardItem wXCardItem : this.cardArrary) {
jSONStringer.object();
jSONStringer.key("card_id");
jSONStringer.value(wXCardItem.cardId);
jSONStringer.key("card_ext");
jSONStringer.value(wXCardItem.cardExtMsg == null ? "" : wXCardItem.cardExtMsg);
jSONStringer.key("is_succ");
jSONStringer.value(wXCardItem.cardState);
jSONStringer.endObject();
}
jSONStringer.endArray();
jSONStringer.endObject();
} catch (Exception e) {
Log.e(AddCardToWXCardPackage.TAG, "Resp.toBundle exception:" + e.getMessage());
}
bundle.putString("_wxapi_add_card_to_wx_card_list", jSONStringer.toString());
}
}
public static final class WXCardItem {
public String cardExtMsg;
public String cardId;
public int cardState;
}
}

View File

@@ -0,0 +1,89 @@
package com.tencent.mm.opensdk.modelbiz;
import android.os.Bundle;
import com.tencent.mm.opensdk.modelbase.BaseReq;
import com.tencent.mm.opensdk.modelbase.BaseResp;
import com.tencent.mm.opensdk.utils.Log;
/* loaded from: classes.dex */
public class ChooseCardFromWXCardPackage {
private static final String TAG = "MicroMsg.ChooseCardFromWXCardPackage";
public static class Req extends BaseReq {
public String appId;
public String canMultiSelect;
public String cardId;
public String cardSign;
public String cardType;
public String locationId;
public String nonceStr;
public String signType;
public String timeStamp;
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public boolean checkArgs() {
String str;
String str2;
String str3 = this.appId;
return str3 != null && str3.length() > 0 && (str = this.signType) != null && str.length() > 0 && (str2 = this.cardSign) != null && str2.length() > 0;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public int getType() {
return 16;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
bundle.putString("_wxapi_choose_card_from_wx_card_app_id", this.appId);
bundle.putString("_wxapi_choose_card_from_wx_card_location_id", this.locationId);
bundle.putString("_wxapi_choose_card_from_wx_card_sign_type", this.signType);
bundle.putString("_wxapi_choose_card_from_wx_card_card_sign", this.cardSign);
bundle.putString("_wxapi_choose_card_from_wx_card_time_stamp", this.timeStamp);
bundle.putString("_wxapi_choose_card_from_wx_card_nonce_str", this.nonceStr);
bundle.putString("_wxapi_choose_card_from_wx_card_card_id", this.cardId);
bundle.putString("_wxapi_choose_card_from_wx_card_card_type", this.cardType);
bundle.putString("_wxapi_choose_card_from_wx_card_can_multi_select", this.canMultiSelect);
}
}
public static class Resp extends BaseResp {
public String cardItemList;
public Resp() {
}
public Resp(Bundle bundle) {
fromBundle(bundle);
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public boolean checkArgs() {
String str = this.cardItemList;
return (str == null || str.length() == 0) ? false : true;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public void fromBundle(Bundle bundle) {
super.fromBundle(bundle);
String string = bundle.getString("_wxapi_choose_card_from_wx_card_list");
if (string == null || string.length() <= 0) {
Log.i(ChooseCardFromWXCardPackage.TAG, "cardItemList is empty!");
} else {
this.cardItemList = string;
}
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public int getType() {
return 16;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
bundle.putString("_wxapi_choose_card_from_wx_card_list", this.cardItemList);
}
}
}

View File

@@ -0,0 +1,73 @@
package com.tencent.mm.opensdk.modelbiz;
import android.os.Bundle;
import com.tencent.mm.opensdk.modelbase.BaseReq;
import com.tencent.mm.opensdk.modelbase.BaseResp;
import com.tencent.mm.opensdk.utils.d;
/* loaded from: classes.dex */
public class CreateChatroom {
public static class Req extends BaseReq {
public String chatroomName;
public String chatroomNickName;
public String extMsg;
public String groupId = "";
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public boolean checkArgs() {
return !d.h(this.groupId);
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public int getType() {
return 14;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
bundle.putString("_wxapi_create_chatroom_group_id", this.groupId);
bundle.putString("_wxapi_create_chatroom_chatroom_name", this.chatroomName);
bundle.putString("_wxapi_create_chatroom_chatroom_nickname", this.chatroomNickName);
bundle.putString("_wxapi_create_chatroom_ext_msg", this.extMsg);
bundle.putString("_wxapi_basereq_openid", this.openId);
}
}
public static class Resp extends BaseResp {
public String extMsg;
public Resp() {
}
public Resp(Bundle bundle) {
fromBundle(bundle);
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public boolean checkArgs() {
return true;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public void fromBundle(Bundle bundle) {
super.fromBundle(bundle);
this.extMsg = bundle.getString("_wxapi_create_chatroom_ext_msg");
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public int getType() {
return 14;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
bundle.putString("_wxapi_create_chatroom_ext_msg", this.extMsg);
}
}
private CreateChatroom() {
}
}

View File

@@ -0,0 +1,61 @@
package com.tencent.mm.opensdk.modelbiz;
import android.os.Bundle;
import com.tencent.mm.opensdk.modelbase.BaseReq;
import com.tencent.mm.opensdk.modelbase.BaseResp;
import java.net.URLEncoder;
/* loaded from: classes.dex */
public class HandleScanResult {
public static class Req extends BaseReq {
private static final int MAX_URL_LENGHT = 10240;
public String scanResult;
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public boolean checkArgs() {
String str = this.scanResult;
return str != null && str.length() >= 0 && this.scanResult.length() <= MAX_URL_LENGHT;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public int getType() {
return 17;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
bundle.putString("_wxapi_scan_qrcode_result", URLEncoder.encode(this.scanResult));
}
}
public static class Resp extends BaseResp {
public Resp() {
}
public Resp(Bundle bundle) {
fromBundle(bundle);
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public boolean checkArgs() {
return true;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public void fromBundle(Bundle bundle) {
super.fromBundle(bundle);
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public int getType() {
return 17;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
}
}
}

View File

@@ -0,0 +1,71 @@
package com.tencent.mm.opensdk.modelbiz;
import android.os.Bundle;
import com.tencent.mm.opensdk.modelbase.BaseReq;
import com.tencent.mm.opensdk.modelbase.BaseResp;
import com.tencent.mm.opensdk.utils.d;
/* loaded from: classes.dex */
public class JoinChatroom {
public static class Req extends BaseReq {
public String chatroomNickName;
public String extMsg;
public String groupId = "";
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public boolean checkArgs() {
return !d.h(this.groupId);
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public int getType() {
return 15;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
bundle.putString("_wxapi_join_chatroom_group_id", this.groupId);
bundle.putString("_wxapi_join_chatroom_chatroom_nickname", this.chatroomNickName);
bundle.putString("_wxapi_join_chatroom_ext_msg", this.extMsg);
bundle.putString("_wxapi_basereq_openid", this.openId);
}
}
public static class Resp extends BaseResp {
public String extMsg;
public Resp() {
}
public Resp(Bundle bundle) {
fromBundle(bundle);
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public boolean checkArgs() {
return true;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public void fromBundle(Bundle bundle) {
super.fromBundle(bundle);
this.extMsg = bundle.getString("_wxapi_join_chatroom_ext_msg");
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public int getType() {
return 15;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
bundle.putString("_wxapi_join_chatroom_ext_msg", this.extMsg);
}
}
private JoinChatroom() {
}
}

View File

@@ -0,0 +1,62 @@
package com.tencent.mm.opensdk.modelbiz;
import android.os.Bundle;
import com.tencent.mm.opensdk.modelbase.BaseReq;
import com.tencent.mm.opensdk.utils.Log;
/* loaded from: classes.dex */
public class JumpToBizProfile {
public static final int JUMP_TO_HARD_WARE_BIZ_PROFILE = 1;
public static final int JUMP_TO_NORMAL_BIZ_PROFILE = 0;
public static class Req extends BaseReq {
private static final int EXT_MSG_LENGTH = 1024;
private static final String TAG = "MicroMsg.SDK.JumpToBizProfile.Req";
public String extMsg;
public int profileType = 0;
public String toUserName;
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public boolean checkArgs() {
String str;
String str2;
String str3 = this.toUserName;
if (str3 == null || str3.length() == 0) {
str = "checkArgs fail, toUserName is invalid";
} else {
String str4 = this.extMsg;
if (str4 != null && str4.length() > 1024) {
str = "ext msg is not null, while the length exceed 1024 bytes";
} else {
if (this.profileType != 1 || ((str2 = this.extMsg) != null && str2.length() != 0)) {
return true;
}
str = "scene is jump to hardware profile, while extmsg is null";
}
}
Log.e(TAG, str);
return false;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public void fromBundle(Bundle bundle) {
super.fromBundle(bundle);
this.toUserName = bundle.getString("_wxapi_jump_to_biz_profile_req_to_user_name");
this.extMsg = bundle.getString("_wxapi_jump_to_biz_profile_req_ext_msg");
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public int getType() {
return 7;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
bundle.putString("_wxapi_jump_to_biz_profile_req_to_user_name", this.toUserName);
bundle.putString("_wxapi_jump_to_biz_profile_req_ext_msg", this.extMsg);
bundle.putInt("_wxapi_jump_to_biz_profile_req_scene", 0);
bundle.putInt("_wxapi_jump_to_biz_profile_req_profile_type", this.profileType);
}
}
}

View File

@@ -0,0 +1,49 @@
package com.tencent.mm.opensdk.modelbiz;
import android.os.Bundle;
import com.tencent.mm.opensdk.modelbase.BaseReq;
import com.tencent.mm.opensdk.utils.Log;
/* loaded from: classes.dex */
public final class JumpToBizTempSession {
public static final int SHOW_CHAT = 1;
public static final int SHOW_MENU = 0;
public static class Req extends BaseReq {
private static final int MAX_SESSION_FROM_LENGTH = 1024;
private static final String TAG = "MicroMsg.SDK.JumpToBizTempSession.Req";
public String sessionFrom;
public int showType;
public String toUserName;
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public boolean checkArgs() {
String str;
String str2 = this.toUserName;
if (str2 == null || str2.length() <= 0) {
str = "checkArgs fail, toUserName is invalid";
} else {
String str3 = this.sessionFrom;
if (str3 != null && str3.length() <= 1024) {
return true;
}
str = "checkArgs fail, sessionFrom is invalid";
}
Log.e(TAG, str);
return false;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public int getType() {
return 10;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
bundle.putString("_wxapi_jump_to_biz_webview_req_to_user_name", this.toUserName);
bundle.putString("_wxapi_jump_to_biz_webview_req_session_from", this.sessionFrom);
bundle.putInt("_wxapi_jump_to_biz_webview_req_show_type", this.showType);
}
}
}

View File

@@ -0,0 +1,49 @@
package com.tencent.mm.opensdk.modelbiz;
import android.os.Bundle;
import com.tencent.mm.opensdk.modelbase.BaseReq;
import com.tencent.mm.opensdk.utils.Log;
/* loaded from: classes.dex */
public final class JumpToBizWebview {
public static class Req extends BaseReq {
private static final int EXT_MSG_LENGTH = 1024;
private static final String TAG = "MicroMsg.SDK.JumpToBizWebview.Req";
public String extMsg;
public int scene = 1;
public String toUserName;
public int webType;
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public boolean checkArgs() {
String str;
String str2 = this.toUserName;
if (str2 == null || str2.length() <= 0) {
str = "checkArgs fail, toUserName is invalid";
} else {
String str3 = this.extMsg;
if (str3 == null || str3.length() <= 1024) {
return true;
}
str = "ext msg is not null, while the length exceed 1024 bytes";
}
Log.e(TAG, str);
return false;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public int getType() {
return 8;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
bundle.putString("_wxapi_jump_to_biz_webview_req_to_user_name", this.toUserName);
bundle.putString("_wxapi_jump_to_biz_webview_req_ext_msg", this.extMsg);
bundle.putInt("_wxapi_jump_to_biz_webview_req_web_type", this.webType);
bundle.putInt("_wxapi_jump_to_biz_webview_req_scene", this.scene);
}
}
}

View File

@@ -0,0 +1,44 @@
package com.tencent.mm.opensdk.modelbiz;
import android.os.Bundle;
import com.tencent.mm.opensdk.modelbase.BaseReq;
/* loaded from: classes.dex */
public class OpenBusiLuckyMoney {
public static class Req extends BaseReq {
private static final int MAX_URL_LENGHT = 10240;
public String appId;
public String nonceStr;
public String packageExt;
public String signType;
public String signature;
public String timeStamp;
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public boolean checkArgs() {
String str;
String str2;
String str3;
String str4;
String str5 = this.appId;
return str5 != null && str5.length() > 0 && (str = this.timeStamp) != null && str.length() > 0 && (str2 = this.nonceStr) != null && str2.length() > 0 && (str3 = this.signType) != null && str3.length() > 0 && (str4 = this.signature) != null && str4.length() > 0;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public int getType() {
return 13;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
bundle.putString("_wxapi_open_busi_lucky_money_appid", this.appId);
bundle.putString("_wxapi_open_busi_lucky_money_timeStamp", this.timeStamp);
bundle.putString("_wxapi_open_busi_lucky_money_nonceStr", this.nonceStr);
bundle.putString("_wxapi_open_busi_lucky_money_signType", this.signType);
bundle.putString("_wxapi_open_busi_lucky_money_signature", this.signature);
bundle.putString("_wxapi_open_busi_lucky_money_package", this.packageExt);
}
}
}

View File

@@ -0,0 +1,19 @@
package com.tencent.mm.opensdk.modelbiz;
import com.tencent.mm.opensdk.modelbase.BaseReq;
/* loaded from: classes.dex */
public class OpenRankList {
public static class Req extends BaseReq {
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public boolean checkArgs() {
return true;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public int getType() {
return 11;
}
}
}

View File

@@ -0,0 +1,65 @@
package com.tencent.mm.opensdk.modelbiz;
import android.os.Bundle;
import com.tencent.mm.opensdk.modelbase.BaseReq;
import com.tencent.mm.opensdk.modelbase.BaseResp;
import java.net.URLEncoder;
/* loaded from: classes.dex */
public class OpenWebview {
public static class Req extends BaseReq {
private static final int MAX_URL_LENGHT = 10240;
public String url;
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public boolean checkArgs() {
String str = this.url;
return str != null && str.length() >= 0 && this.url.length() <= MAX_URL_LENGHT;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public int getType() {
return 12;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
bundle.putString("_wxapi_jump_to_webview_url", URLEncoder.encode(this.url));
}
}
public static class Resp extends BaseResp {
public String result;
public Resp() {
}
public Resp(Bundle bundle) {
fromBundle(bundle);
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public boolean checkArgs() {
return true;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public void fromBundle(Bundle bundle) {
super.fromBundle(bundle);
this.result = bundle.getString("_wxapi_open_webview_result");
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public int getType() {
return 12;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
bundle.putString("_wxapi_open_webview_result", this.result);
}
}
}

View File

@@ -0,0 +1,111 @@
package com.tencent.mm.opensdk.modelbiz;
import android.os.Bundle;
import com.tencent.mm.opensdk.modelbase.BaseReq;
import com.tencent.mm.opensdk.modelbase.BaseResp;
import com.tencent.mm.opensdk.utils.Log;
/* loaded from: classes.dex */
public final class SubscribeMessage {
public static class Req extends BaseReq {
private static final int LENGTH_LIMIT = 1024;
private static final String TAG = "MicroMsg.SDK.SubscribeMessage.Req";
public String reserved;
public int scene;
public String templateID;
public Req() {
}
public Req(Bundle bundle) {
fromBundle(bundle);
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public boolean checkArgs() {
String str;
String str2 = this.templateID;
if (str2 == null || str2.length() == 0) {
str = "checkArgs fail, templateID is null";
} else if (this.templateID.length() > 1024) {
str = "checkArgs fail, templateID is too long";
} else {
String str3 = this.reserved;
if (str3 == null || str3.length() <= 1024) {
return true;
}
str = "checkArgs fail, reserved is too long";
}
Log.e(TAG, str);
return false;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public void fromBundle(Bundle bundle) {
super.fromBundle(bundle);
this.scene = bundle.getInt("_wxapi_subscribemessage_req_scene");
this.templateID = bundle.getString("_wxapi_subscribemessage_req_templateid");
this.reserved = bundle.getString("_wxapi_subscribemessage_req_reserved");
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public int getType() {
return 18;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseReq
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
bundle.putInt("_wxapi_subscribemessage_req_scene", this.scene);
bundle.putString("_wxapi_subscribemessage_req_templateid", this.templateID);
bundle.putString("_wxapi_subscribemessage_req_reserved", this.reserved);
}
}
public static class Resp extends BaseResp {
private static final String TAG = "MicroMsg.SDK.SubscribeMessage.Resp";
public String action;
public String reserved;
public int scene;
public String templateID;
public Resp() {
}
public Resp(Bundle bundle) {
fromBundle(bundle);
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public boolean checkArgs() {
return true;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public void fromBundle(Bundle bundle) {
super.fromBundle(bundle);
this.templateID = bundle.getString("_wxapi_subscribemessage_resp_templateid");
this.scene = bundle.getInt("_wxapi_subscribemessage_resp_scene");
this.action = bundle.getString("_wxapi_subscribemessage_resp_action");
this.reserved = bundle.getString("_wxapi_subscribemessage_resp_reserved");
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public int getType() {
return 18;
}
@Override // com.tencent.mm.opensdk.modelbase.BaseResp
public void toBundle(Bundle bundle) {
super.toBundle(bundle);
bundle.putString("_wxapi_subscribemessage_resp_templateid", this.templateID);
bundle.putInt("_wxapi_subscribemessage_resp_scene", this.scene);
bundle.putString("_wxapi_subscribemessage_resp_action", this.action);
bundle.putString("_wxapi_subscribemessage_resp_reserved", this.reserved);
}
}
private SubscribeMessage() {
}
}