package com.ss.android.ugc.aweme.shortvideo.model;

import X.2HN;
import X.M12;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.io.Serializable;
import java.util.Objects;

public final class TTSVoiceModel implements Parcelable, Serializable {
    public static final Parcelable.Creator<TTSVoiceModel> CREATOR = new Creator();
    @c(LIZ = "effect_id")
    public final String effectId;
    @c(LIZ = "speaker_name")
    public final String speakerName;

    public static class Creator implements Parcelable.Creator<TTSVoiceModel> {
        static {
            Covode.recordClassIndex(111063);
        }

        public final TTSVoiceModel createFromParcel(Parcel parcel) {
            M12.LIZ(parcel);
            return new TTSVoiceModel(parcel.readString(), parcel.readString());
        }

        public final TTSVoiceModel[] newArray(int i) {
            return new TTSVoiceModel[i];
        }
    }

    static {
        Covode.recordClassIndex(111062);
    }

    public TTSVoiceModel() {
        this((String) null, (String) null, 3, (2HN) null);
    }

    public static /* synthetic */ TTSVoiceModel copy$default(TTSVoiceModel tTSVoiceModel, String str, String str2, int i, Object obj) {
        if ((i & 1) != 0) {
            str = tTSVoiceModel.effectId;
        }
        if ((i & 2) != 0) {
            str2 = tTSVoiceModel.speakerName;
        }
        return tTSVoiceModel.copy(str, str2);
    }

    private Object[] getObjects() {
        return new Object[]{this.effectId, this.speakerName};
    }

    public final TTSVoiceModel copy(String str, String str2) {
        return new TTSVoiceModel(str, str2);
    }

    public final int describeContents() {
        return 0;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof TTSVoiceModel)) {
            return false;
        }
        return M12.LIZ(((TTSVoiceModel) obj).getObjects(), getObjects());
    }

    public final int hashCode() {
        return Objects.hash(getObjects());
    }

    public final String toString() {
        return M12.LIZ("TTSVoiceModel:%s,%s", getObjects());
    }

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        parcel.writeString(this.effectId);
        parcel.writeString(this.speakerName);
    }

    public final String getEffectId() {
        return this.effectId;
    }

    public final String getSpeakerName() {
        return this.speakerName;
    }

    public TTSVoiceModel(String str, String str2) {
        this.effectId = str;
        this.speakerName = str2;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ TTSVoiceModel(String str, String str2, int i, 2HN r6) {
        this((i & 1) != 0 ? null : str, (i & 2) != 0 ? null : str2);
    }
}
