package com.ss.android.ugc.aweme.im.sdk.chat.data.model;

import X.M12;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.util.Objects;

public final class LinkCard {
    public final String desc;
    @c(LIZ = "link_info")
    public final LinkInfo linkInfo;
    public final String name;

    static {
        Covode.recordClassIndex(84107);
    }

    public static /* synthetic */ LinkCard copy$default(LinkCard linkCard, String str, String str2, LinkInfo linkInfo2, int i, Object obj) {
        if ((i & 1) != 0) {
            str = linkCard.name;
        }
        if ((i & 2) != 0) {
            str2 = linkCard.desc;
        }
        if ((i & 4) != 0) {
            linkInfo2 = linkCard.linkInfo;
        }
        return linkCard.copy(str, str2, linkInfo2);
    }

    private Object[] getObjects() {
        return new Object[]{this.name, this.desc, this.linkInfo};
    }

    public final LinkCard copy(String str, String str2, LinkInfo linkInfo2) {
        M12.LIZ(str, str2, linkInfo2);
        return new LinkCard(str, str2, linkInfo2);
    }

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

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

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

    public final String getDesc() {
        return this.desc;
    }

    public final LinkInfo getLinkInfo() {
        return this.linkInfo;
    }

    public final String getName() {
        return this.name;
    }

    public LinkCard(String str, String str2, LinkInfo linkInfo2) {
        M12.LIZ(str, str2, linkInfo2);
        this.name = str;
        this.desc = str2;
        this.linkInfo = linkInfo2;
    }
}
