60 lines
2.1 KiB
Java
60 lines
2.1 KiB
Java
package com.discord.widgets.stickers;
|
|
|
|
import com.discord.utilities.analytics.Traits;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: StickerPurchaseLocation.kt */
|
|
/* loaded from: classes2.dex */
|
|
public enum StickerPurchaseLocation {
|
|
EXPRESSION_PICKER(Traits.Location.Section.EXPRESSION_PICKER),
|
|
STICKER_POPOUT(Traits.Location.Section.STICKER_POPOUT),
|
|
STICKER_UPSELL_POPOUT("Sticker Upsell Popout");
|
|
|
|
public static final Companion Companion = new Companion(null);
|
|
private final String analyticsValue;
|
|
|
|
/* compiled from: StickerPurchaseLocation.kt */
|
|
/* loaded from: classes2.dex */
|
|
public static final class Companion {
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final /* synthetic */ class WhenMappings {
|
|
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
|
|
|
static {
|
|
StickerPurchaseLocation.values();
|
|
int[] iArr = new int[3];
|
|
$EnumSwitchMapping$0 = iArr;
|
|
iArr[StickerPurchaseLocation.STICKER_POPOUT.ordinal()] = 1;
|
|
iArr[StickerPurchaseLocation.STICKER_UPSELL_POPOUT.ordinal()] = 2;
|
|
}
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public final StickerPurchaseLocation getPopoutPurchaseLocation(boolean z2) {
|
|
return z2 ? StickerPurchaseLocation.STICKER_UPSELL_POPOUT : StickerPurchaseLocation.STICKER_POPOUT;
|
|
}
|
|
|
|
public final StickerPurchaseLocation getSimplifiedLocation(StickerPurchaseLocation stickerPurchaseLocation) {
|
|
if (stickerPurchaseLocation == null) {
|
|
return stickerPurchaseLocation;
|
|
}
|
|
int ordinal = stickerPurchaseLocation.ordinal();
|
|
return (ordinal == 1 || ordinal == 2) ? StickerPurchaseLocation.STICKER_POPOUT : stickerPurchaseLocation;
|
|
}
|
|
}
|
|
|
|
StickerPurchaseLocation(String str) {
|
|
this.analyticsValue = str;
|
|
}
|
|
|
|
public final String getAnalyticsValue() {
|
|
return this.analyticsValue;
|
|
}
|
|
}
|