package com.bytedance.android.livesdk.livesetting.message;

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

public final class LiveMessageConfig {
    @c(LIZ = "duplicate_size")
    public final int duplicateSize;
    @c(LIZ = "enhance_websocket")
    public final boolean enhanceWebsocket;

    static {
        Covode.recordClassIndex(18010);
    }

    public LiveMessageConfig() {
        this(0, false, 3, (2HN) null);
    }

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

    public static /* synthetic */ LiveMessageConfig copy$default(LiveMessageConfig liveMessageConfig, int i, boolean z, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            i = liveMessageConfig.duplicateSize;
        }
        if ((i2 & 2) != 0) {
            z = liveMessageConfig.enhanceWebsocket;
        }
        return liveMessageConfig.copy(i, z);
    }

    private Object[] getObjects() {
        return new Object[]{Integer.valueOf(this.duplicateSize), Boolean.valueOf(this.enhanceWebsocket)};
    }

    public final LiveMessageConfig copy(int i, boolean z) {
        return new LiveMessageConfig(i, z);
    }

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

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

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

    public final int getDuplicateSize() {
        return this.duplicateSize;
    }

    public final boolean getEnhanceWebsocket() {
        return this.enhanceWebsocket;
    }

    public LiveMessageConfig(int i, boolean z) {
        this.duplicateSize = i;
        this.enhanceWebsocket = z;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ LiveMessageConfig(int i, boolean z, int i2, 2HN r5) {
        this((i2 & 1) != 0 ? 512 : i, (i2 & 2) != 0 ? false : z);
    }
}
