package com.tencent.mm.plugin.luckymoney.model;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import com.tencent.matrix.trace.core.AppMethodBeat;
import org.json.JSONObject;

public class LuckyMoneyEmojiSwitch implements Parcelable {
    public static final Creator<LuckyMoneyEmojiSwitch> CREATOR = new 1();
    public int nXp = 0;
    public int nXq = 0;
    public int nXr = 0;
    public int nXs = 0;

    public static LuckyMoneyEmojiSwitch V(JSONObject jSONObject) {
        AppMethodBeat.i(42295);
        LuckyMoneyEmojiSwitch luckyMoneyEmojiSwitch = new LuckyMoneyEmojiSwitch();
        luckyMoneyEmojiSwitch.nXp = jSONObject.optInt("showOpenNormalExpression", 0);
        luckyMoneyEmojiSwitch.nXq = jSONObject.optInt("showDetailNormalExpression", 0);
        luckyMoneyEmojiSwitch.nXr = jSONObject.optInt("enableAnswerByExpression", 0);
        luckyMoneyEmojiSwitch.nXs = jSONObject.optInt("enableAnswerBySelfie", 0);
        AppMethodBeat.o(42295);
        return luckyMoneyEmojiSwitch;
    }

    public int describeContents() {
        return 0;
    }

    public void writeToParcel(Parcel parcel, int i) {
        AppMethodBeat.i(42296);
        parcel.writeInt(this.nXp);
        parcel.writeInt(this.nXq);
        parcel.writeInt(this.nXr);
        parcel.writeInt(this.nXs);
        AppMethodBeat.o(42296);
    }

    protected LuckyMoneyEmojiSwitch(Parcel parcel) {
        AppMethodBeat.i(42297);
        this.nXp = parcel.readInt();
        this.nXq = parcel.readInt();
        this.nXr = parcel.readInt();
        this.nXs = parcel.readInt();
        AppMethodBeat.o(42297);
    }

    static {
        AppMethodBeat.i(42299);
        AppMethodBeat.o(42299);
    }

    public String toString() {
        AppMethodBeat.i(42298);
        String str = "LuckyMoneyEmojiSwitch{showOpenNormalExpression=" + this.nXp + ", showDetailNormalExpression=" + this.nXq + ", enalbeAnswerByExpression=" + this.nXr + ", enableAnswerBySelfie=" + this.nXs + '}';
        AppMethodBeat.o(42298);
        return str;
    }
}
