package com.ss.android.ugc.aweme.image.experiment;

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

public final class ImageModeMaxResolutionExperiment {
    public static final ImageModeMaxResolution LIZ = new ImageModeMaxResolution(1920, 1920);
    public static final ImageModeMaxResolutionExperiment LIZIZ = new ImageModeMaxResolutionExperiment();
    public static final ImageModeMaxResolution LIZJ = new ImageModeMaxResolution(1280, 1280);

    public static final class ImageModeMaxResolution {
        @c(LIZ = "height")
        public final int height;
        @c(LIZ = "width")
        public final int width;

        static {
            Covode.recordClassIndex(87458);
        }

        public static int INVOKESTATIC_com_ss_android_ugc_aweme_image_experiment_ImageModeMaxResolutionExperiment$ImageModeMaxResolution_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(int i) {
            return i;
        }

        public static /* synthetic */ ImageModeMaxResolution copy$default(ImageModeMaxResolution imageModeMaxResolution, int i, int i2, int i3, Object obj) {
            if ((i3 & 1) != 0) {
                i = imageModeMaxResolution.width;
            }
            if ((i3 & 2) != 0) {
                i2 = imageModeMaxResolution.height;
            }
            return imageModeMaxResolution.copy(i, i2);
        }

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

        public final ImageModeMaxResolution copy(int i, int i2) {
            return new ImageModeMaxResolution(i, i2);
        }

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

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

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

        public final int getHeight() {
            return this.height;
        }

        public final int getWidth() {
            return this.width;
        }

        public ImageModeMaxResolution(int i, int i2) {
            this.width = i;
            this.height = i2;
        }
    }

    static {
        Covode.recordClassIndex(87457);
    }

    public final ImageModeMaxResolution LIZ() {
        ImageModeMaxResolution imageModeMaxResolution;
        try {
            imageModeMaxResolution = (ImageModeMaxResolution) SettingsManager.LIZ().LIZ("image_album_resolution_for_creation", ImageModeMaxResolution.class, LIZ);
        } catch (Throwable unused) {
            imageModeMaxResolution = LIZ;
        }
        if (imageModeMaxResolution == null) {
            return LIZ;
        }
        return imageModeMaxResolution;
    }
}
