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

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

public final class LiveIMMessageTrackConfig {
    @c(LIZ = "allow_method_list")
    public final List<String> allowedMethods;
    @c(LIZ = "p2p_sampling_rate")
    public final double p2pFullSampling;
    @c(LIZ = "common_sampling_rate")
    public final double samplingRate;

    static {
        Covode.recordClassIndex(18009);
    }

    public LiveIMMessageTrackConfig() {
        this(0.0d, 0.0d, (List) null, 7, (2HN) null);
    }

    public static /* synthetic */ LiveIMMessageTrackConfig copy$default(LiveIMMessageTrackConfig liveIMMessageTrackConfig, double d, double d2, List<String> list, int i, Object obj) {
        if ((i & 1) != 0) {
            d = liveIMMessageTrackConfig.samplingRate;
        }
        if ((i & 2) != 0) {
            d2 = liveIMMessageTrackConfig.p2pFullSampling;
        }
        if ((i & 4) != 0) {
            list = liveIMMessageTrackConfig.allowedMethods;
        }
        return liveIMMessageTrackConfig.copy(d, d2, list);
    }

    private Object[] getObjects() {
        return new Object[]{Double.valueOf(this.samplingRate), Double.valueOf(this.p2pFullSampling), this.allowedMethods};
    }

    public final LiveIMMessageTrackConfig copy(double d, double d2, List<String> list) {
        List<String> list2 = list;
        M12.LIZ(list2);
        return new LiveIMMessageTrackConfig(d, d2, list2);
    }

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

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

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

    public final List<String> getAllowedMethods() {
        return this.allowedMethods;
    }

    public final double getP2pFullSampling() {
        return this.p2pFullSampling;
    }

    public final double getSamplingRate() {
        return this.samplingRate;
    }

    public static int INVOKESTATIC_com_bytedance_android_livesdk_livesetting_message_LiveIMMessageTrackConfig_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(double d) {
        long doubleToLongBits = Double.doubleToLongBits(d);
        return (int) (doubleToLongBits ^ (doubleToLongBits >>> 32));
    }

    public LiveIMMessageTrackConfig(double d, double d2, List<String> list) {
        M12.LIZ(list);
        this.samplingRate = d;
        this.p2pFullSampling = d2;
        this.allowedMethods = list;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ LiveIMMessageTrackConfig(double d, double d2, List list, int i, 2HN r16) {
        this((i & 1) != 0 ? 1.0E-4d : d, (i & 2) != 0 ? 1.0d : d2, (i & 4) != 0 ? LeS.LIZIZ(new String[]{C4453HKs.GIFT.getWsMethod(), C4453HKs.DOODLE_GIFT.getWsMethod(), C4453HKs.FREE_CELL_GIFT_MESSAGE.getWsMethod(), C4453HKs.ASSET_MESSAGE.getWsMethod(), C4453HKs.BINDING_GIFT_MESSAGE.getWsMethod(), C4453HKs.TRAY_MESSAGE.getWsMethod(), C4453HKs.GIFT_GLOBAL_MESSAGE.getWsMethod()}) : list);
    }
}
