package com.fyber.inneractive.sdk.cache.session; import org.json.JSONException; import org.json.JSONObject; /* loaded from: classes2.dex */ public final class e { public int a; public int b; public int c; public final long d; public static /* synthetic */ class a { public static final /* synthetic */ int[] a; static { int[] iArr = new int[com.fyber.inneractive.sdk.cache.session.enums.a.values().length]; a = iArr; try { iArr[com.fyber.inneractive.sdk.cache.session.enums.a.CLICK.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { a[com.fyber.inneractive.sdk.cache.session.enums.a.COMPLETION.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } try { a[com.fyber.inneractive.sdk.cache.session.enums.a.IMPRESSION.ordinal()] = 3; } catch (NoSuchFieldError unused3) { } } } public e() { this(0, 0, 0, System.currentTimeMillis()); } public final JSONObject a(boolean z, boolean z2) { JSONObject jSONObject = new JSONObject(); if (z) { try { jSONObject.put("time", this.d); } catch (JSONException unused) { } } jSONObject.put("imp", this.a); if (z2) { jSONObject.put("com", this.c); } jSONObject.put("cli", this.b); return jSONObject; } public e(int i, int i2, int i3, long j) { this.d = j; this.a = i; this.b = i2; this.c = i3; } }