package com.tencent.mm.opensdk.modelmsg;

import android.os.Bundle;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.opensdk.modelbase.BaseReq;
import com.tencent.mm.opensdk.modelmsg.WXMediaMessage.Builder;

public class ShowMessageFromWX$Req extends BaseReq {
    public String country;
    public String lang;
    public WXMediaMessage message;

    public ShowMessageFromWX$Req(Bundle bundle) {
        AppMethodBeat.i(128273);
        fromBundle(bundle);
        AppMethodBeat.o(128273);
    }

    public boolean checkArgs() {
        AppMethodBeat.i(128276);
        if (this.message == null) {
            AppMethodBeat.o(128276);
            return false;
        }
        boolean checkArgs = this.message.checkArgs();
        AppMethodBeat.o(128276);
        return checkArgs;
    }

    public void fromBundle(Bundle bundle) {
        AppMethodBeat.i(128275);
        super.fromBundle(bundle);
        this.lang = bundle.getString("_wxapi_showmessage_req_lang");
        this.country = bundle.getString("_wxapi_showmessage_req_country");
        this.message = Builder.fromBundle(bundle);
        AppMethodBeat.o(128275);
    }

    public int getType() {
        return 4;
    }

    public void toBundle(Bundle bundle) {
        AppMethodBeat.i(128274);
        Bundle toBundle = Builder.toBundle(this.message);
        super.toBundle(toBundle);
        bundle.putString("_wxapi_showmessage_req_lang", this.lang);
        bundle.putString("_wxapi_showmessage_req_country", this.country);
        bundle.putAll(toBundle);
        AppMethodBeat.o(128274);
    }
}
