package com.vungle.warren.model; import android.content.ContentValues; import com.google.android.gms.common.internal.ImagesContract; import com.unity3d.ads.metadata.MediationMetaData; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.List; /* loaded from: classes2.dex */ public class q implements g8.c { /* renamed from: a, reason: collision with root package name */ private z4.e f8423a = new z4.f().b(); /* renamed from: b, reason: collision with root package name */ Type f8424b = new a().e(); /* renamed from: c, reason: collision with root package name */ Type f8425c = new b().e(); class a extends f5.a { a() { } } class b extends f5.a { b() { } } @Override // g8.c public String b() { return "report"; } @Override // g8.c /* renamed from: d, reason: merged with bridge method [inline-methods] */ public p c(ContentValues contentValues) { p pVar = new p(); pVar.f8404k = contentValues.getAsLong("ad_duration").longValue(); pVar.f8401h = contentValues.getAsLong("adStartTime").longValue(); pVar.f8396c = contentValues.getAsString("adToken"); pVar.f8412s = contentValues.getAsString("ad_type"); pVar.f8397d = contentValues.getAsString("appId"); pVar.f8406m = contentValues.getAsString("campaign"); pVar.f8415v = contentValues.getAsInteger(MediationMetaData.KEY_ORDINAL).intValue(); pVar.f8395b = contentValues.getAsString("placementId"); pVar.f8413t = contentValues.getAsString("template_id"); pVar.f8405l = contentValues.getAsLong("tt_download").longValue(); pVar.f8402i = contentValues.getAsString(ImagesContract.URL); pVar.f8414u = contentValues.getAsString("user_id"); pVar.f8403j = contentValues.getAsLong("videoLength").longValue(); pVar.f8408o = contentValues.getAsInteger("videoViewed").intValue(); pVar.f8417x = g8.b.a(contentValues, "was_CTAC_licked"); pVar.f8398e = g8.b.a(contentValues, "incentivized"); pVar.f8399f = g8.b.a(contentValues, "header_bidding"); pVar.f8394a = contentValues.getAsInteger("status").intValue(); pVar.f8416w = contentValues.getAsString("ad_size"); pVar.f8418y = contentValues.getAsLong("init_timestamp").longValue(); pVar.f8419z = contentValues.getAsLong("asset_download_duration").longValue(); pVar.f8400g = g8.b.a(contentValues, "play_remote_url"); List list = (List) this.f8423a.j(contentValues.getAsString("clicked_through"), this.f8424b); List list2 = (List) this.f8423a.j(contentValues.getAsString("errors"), this.f8424b); List list3 = (List) this.f8423a.j(contentValues.getAsString("user_actions"), this.f8425c); if (list != null) { pVar.f8410q.addAll(list); } if (list2 != null) { pVar.f8411r.addAll(list2); } if (list3 != null) { pVar.f8409p.addAll(list3); } return pVar; } @Override // g8.c /* renamed from: e, reason: merged with bridge method [inline-methods] */ public ContentValues a(p pVar) { ContentValues contentValues = new ContentValues(); contentValues.put("item_id", pVar.c()); contentValues.put("ad_duration", Long.valueOf(pVar.f8404k)); contentValues.put("adStartTime", Long.valueOf(pVar.f8401h)); contentValues.put("adToken", pVar.f8396c); contentValues.put("ad_type", pVar.f8412s); contentValues.put("appId", pVar.f8397d); contentValues.put("campaign", pVar.f8406m); contentValues.put("incentivized", Boolean.valueOf(pVar.f8398e)); contentValues.put("header_bidding", Boolean.valueOf(pVar.f8399f)); contentValues.put(MediationMetaData.KEY_ORDINAL, Integer.valueOf(pVar.f8415v)); contentValues.put("placementId", pVar.f8395b); contentValues.put("template_id", pVar.f8413t); contentValues.put("tt_download", Long.valueOf(pVar.f8405l)); contentValues.put(ImagesContract.URL, pVar.f8402i); contentValues.put("user_id", pVar.f8414u); contentValues.put("videoLength", Long.valueOf(pVar.f8403j)); contentValues.put("videoViewed", Integer.valueOf(pVar.f8408o)); contentValues.put("was_CTAC_licked", Boolean.valueOf(pVar.f8417x)); contentValues.put("user_actions", this.f8423a.t(new ArrayList(pVar.f8409p), this.f8425c)); contentValues.put("clicked_through", this.f8423a.t(new ArrayList(pVar.f8410q), this.f8424b)); contentValues.put("errors", this.f8423a.t(new ArrayList(pVar.f8411r), this.f8424b)); contentValues.put("status", Integer.valueOf(pVar.f8394a)); contentValues.put("ad_size", pVar.f8416w); contentValues.put("init_timestamp", Long.valueOf(pVar.f8418y)); contentValues.put("asset_download_duration", Long.valueOf(pVar.f8419z)); contentValues.put("play_remote_url", Boolean.valueOf(pVar.f8400g)); return contentValues; } }