package com.tencent.mm.opensdk.modelmsg; import android.os.Bundle; import com.tencent.mm.opensdk.modelmsg.WXMediaMessage; import com.tencent.mm.opensdk.utils.Log; import com.tencent.mm.opensdk.utils.d; /* loaded from: classes.dex */ public class WXMiniProgramObject implements WXMediaMessage.IMediaObject { private static final String TAG = "MicroMsg.SDK.WXMiniProgramObject"; public String path; public String userName; public String webpageUrl; @Override // com.tencent.mm.opensdk.modelmsg.WXMediaMessage.IMediaObject public boolean checkArgs() { String str; if (d.h(this.webpageUrl)) { str = "webPageUrl is null"; } else { if (!d.h(this.userName)) { return true; } str = "userName is null"; } Log.e(TAG, str); return false; } @Override // com.tencent.mm.opensdk.modelmsg.WXMediaMessage.IMediaObject public void serialize(Bundle bundle) { bundle.putString("_wxminiprogram_webpageurl", this.webpageUrl); bundle.putString("_wxminiprogram_username", this.userName); bundle.putString("_wxminiprogram_path", this.path); } @Override // com.tencent.mm.opensdk.modelmsg.WXMediaMessage.IMediaObject public int type() { return 36; } @Override // com.tencent.mm.opensdk.modelmsg.WXMediaMessage.IMediaObject public void unserialize(Bundle bundle) { this.webpageUrl = bundle.getString("_wxminiprogram_webpageurl"); this.userName = bundle.getString("_wxminiprogram_username"); this.path = bundle.getString("_wxminiprogram_path"); } }