package com.vungle.warren.model; import android.content.ContentValues; import com.google.android.gms.ads.RequestConfiguration; /* loaded from: classes2.dex */ public class i implements g8.c { static String d(String[] strArr) { if (strArr == null || strArr.length == 0) { return RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED; } if (strArr.length == 1) { return strArr[0]; } StringBuilder sb = new StringBuilder(strArr[0]); for (int i10 = 1; i10 < strArr.length; i10++) { sb.append(";"); sb.append(strArr[i10]); } return sb.toString(); } static String[] f(String str) { return str.isEmpty() ? new String[0] : str.split(";"); } @Override // g8.c public String b() { return "cache_bust"; } @Override // g8.c /* renamed from: e, reason: merged with bridge method [inline-methods] */ public h c(ContentValues contentValues) { h hVar = new h(); hVar.f8355a = contentValues.getAsString("id"); hVar.f8356b = contentValues.getAsLong("time_window_end").longValue(); hVar.f8357c = contentValues.getAsInteger("id_type").intValue(); hVar.f8358d = f(contentValues.getAsString("event_ids")); hVar.f8359e = contentValues.getAsLong("timestamp_processed").longValue(); return hVar; } @Override // g8.c /* renamed from: g, reason: merged with bridge method [inline-methods] */ public ContentValues a(h hVar) { ContentValues contentValues = new ContentValues(); contentValues.put("item_id", hVar.a()); contentValues.put("id", hVar.f8355a); contentValues.put("time_window_end", Long.valueOf(hVar.f8356b)); contentValues.put("id_type", Integer.valueOf(hVar.f8357c)); contentValues.put("event_ids", d(hVar.f8358d)); contentValues.put("timestamp_processed", Long.valueOf(hVar.f8359e)); return contentValues; } }