package com.adjust.sdk;

import com.facebook.GraphRequest;

public enum ActivityKind {
    UNKNOWN,
    SESSION,
    EVENT,
    CLICK,
    ATTRIBUTION,
    REVENUE,
    REATTRIBUTION,
    INFO,
    GDPR,
    AD_REVENUE,
    DISABLE_THIRD_PARTY_SHARING,
    SUBSCRIPTION,
    THIRD_PARTY_SHARING,
    MEASUREMENT_CONSENT;

    public static /* synthetic */ class a {
        public static final /* synthetic */ int[] a;

        /* JADX WARNING: Can't wrap try/catch for region: R(22:0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|(3:21|22|24)) */
        /* JADX WARNING: Can't wrap try/catch for region: R(24:0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|24) */
        /* JADX WARNING: Failed to process nested try/catch */
        /* JADX WARNING: Missing exception handler attribute for start block: B:11:0x003e */
        /* JADX WARNING: Missing exception handler attribute for start block: B:13:0x0049 */
        /* JADX WARNING: Missing exception handler attribute for start block: B:15:0x0054 */
        /* JADX WARNING: Missing exception handler attribute for start block: B:17:0x0060 */
        /* JADX WARNING: Missing exception handler attribute for start block: B:19:0x006c */
        /* JADX WARNING: Missing exception handler attribute for start block: B:21:0x0078 */
        /* JADX WARNING: Missing exception handler attribute for start block: B:3:0x0012 */
        /* JADX WARNING: Missing exception handler attribute for start block: B:5:0x001d */
        /* JADX WARNING: Missing exception handler attribute for start block: B:7:0x0028 */
        /* JADX WARNING: Missing exception handler attribute for start block: B:9:0x0033 */
        static {
            int[] iArr = new int[ActivityKind.values().length];
            a = iArr;
            iArr[ActivityKind.SESSION.ordinal()] = 1;
            a[ActivityKind.EVENT.ordinal()] = 2;
            a[ActivityKind.CLICK.ordinal()] = 3;
            a[ActivityKind.ATTRIBUTION.ordinal()] = 4;
            a[ActivityKind.INFO.ordinal()] = 5;
            a[ActivityKind.GDPR.ordinal()] = 6;
            a[ActivityKind.DISABLE_THIRD_PARTY_SHARING.ordinal()] = 7;
            a[ActivityKind.AD_REVENUE.ordinal()] = 8;
            a[ActivityKind.SUBSCRIPTION.ordinal()] = 9;
            a[ActivityKind.THIRD_PARTY_SHARING.ordinal()] = 10;
            try {
                a[ActivityKind.MEASUREMENT_CONSENT.ordinal()] = 11;
            } catch (NoSuchFieldError unused) {
            }
        }
    }

    public static ActivityKind fromString(String str) {
        return "session".equals(str) ? SESSION : "event".equals(str) ? EVENT : "click".equals(str) ? CLICK : "attribution".equals(str) ? ATTRIBUTION : GraphRequest.DEBUG_SEVERITY_INFO.equals(str) ? INFO : "gdpr".equals(str) ? GDPR : SharedPreferencesManager.PREFS_KEY_DISABLE_THIRD_PARTY_SHARING.equals(str) ? DISABLE_THIRD_PARTY_SHARING : "ad_revenue".equals(str) ? AD_REVENUE : "subscription".equals(str) ? SUBSCRIPTION : "third_party_sharing".equals(str) ? THIRD_PARTY_SHARING : "measurement_consent".equals(str) ? MEASUREMENT_CONSENT : UNKNOWN;
    }

    public String toString() {
        switch (a.a[ordinal()]) {
            case 1:
                return "session";
            case 2:
                return "event";
            case 3:
                return "click";
            case 4:
                return "attribution";
            case 5:
                return GraphRequest.DEBUG_SEVERITY_INFO;
            case 6:
                return "gdpr";
            case 7:
                return SharedPreferencesManager.PREFS_KEY_DISABLE_THIRD_PARTY_SHARING;
            case 8:
                return "ad_revenue";
            case 9:
                return "subscription";
            case 10:
                return "third_party_sharing";
            case 11:
                return "measurement_consent";
            default:
                return "unknown";
        }
    }
}
