package com.ss.android.ugc.aweme.ecommerce.pdp.repository.dto;

import X.COM;
import X.M12;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import com.ss.android.ugc.aweme.ecommerce.api.model.Icon;
import java.util.Objects;

public final class PhoneContact implements Parcelable {
    public static final Parcelable.Creator<PhoneContact> CREATOR = new COM();
    @c(LIZ = "title")
    public final String LIZ;
    @c(LIZ = "message")
    public final String LIZIZ;
    @c(LIZ = "phone_num")
    public final String LIZJ;
    @c(LIZ = "button_text")
    public final String LIZLLL;
    @c(LIZ = "copy_icon")
    public final Icon LJ;

    static {
        Covode.recordClassIndex(71499);
    }

    private Object[] LIZ() {
        return new Object[]{this.LIZ, this.LIZIZ, this.LIZJ, this.LIZLLL, this.LJ};
    }

    public final int describeContents() {
        return 0;
    }

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

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

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

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        parcel.writeString(this.LIZ);
        parcel.writeString(this.LIZIZ);
        parcel.writeString(this.LIZJ);
        parcel.writeString(this.LIZLLL);
        Icon icon = this.LJ;
        if (icon != null) {
            parcel.writeInt(1);
            icon.writeToParcel(parcel, 0);
            return;
        }
        parcel.writeInt(0);
    }

    public PhoneContact(String str, String str2, String str3, String str4, Icon icon) {
        this.LIZ = str;
        this.LIZIZ = str2;
        this.LIZJ = str3;
        this.LIZLLL = str4;
        this.LJ = icon;
    }
}
