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 LinkInfo {
    @c(LIZ = "action_type")
    public final int actionType;
    @c(LIZ = "link_url")
    public final String linkUrl;

    static {
        Covode.recordClassIndex(84108);
    }

    public static int INVOKESTATIC_com_ss_android_ugc_aweme_im_sdk_chat_data_model_LinkInfo_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(int i) {
        return i;
    }

    public static /* synthetic */ LinkInfo copy$default(LinkInfo linkInfo, String str, int i, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = linkInfo.linkUrl;
        }
        if ((i2 & 2) != 0) {
            i = linkInfo.actionType;
        }
        return linkInfo.copy(str, i);
    }

    private Object[] getObjects() {
        return new Object[]{this.linkUrl, Integer.valueOf(this.actionType)};
    }

    public final LinkInfo copy(String str, int i) {
        M12.LIZ(str);
        return new LinkInfo(str, i);
    }

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

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

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

    public final int getActionType() {
        return this.actionType;
    }

    public final String getLinkUrl() {
        return this.linkUrl;
    }

    public LinkInfo(String str, int i) {
        M12.LIZ(str);
        this.linkUrl = str;
        this.actionType = i;
    }
}
