package com.vungle.warren.model; import android.content.ContentValues; import com.vungle.warren.AdConfig; /* loaded from: classes2.dex */ public class o implements g8.c { @Override // g8.c public String b() { return "placement"; } @Override // g8.c /* renamed from: d, reason: merged with bridge method [inline-methods] */ public n c(ContentValues contentValues) { n nVar = new n(); nVar.f8382a = contentValues.getAsString("item_id"); nVar.f8385d = contentValues.getAsLong("wakeup_time").longValue(); nVar.f8384c = g8.b.a(contentValues, "incentivized"); nVar.f8388g = g8.b.a(contentValues, "header_bidding"); nVar.f8383b = g8.b.a(contentValues, "auto_cached"); nVar.f8389h = g8.b.a(contentValues, "is_valid"); nVar.f8386e = contentValues.getAsInteger("refresh_duration").intValue(); nVar.f8390i = contentValues.getAsInteger("supported_template_types").intValue(); nVar.f8391j = AdConfig.AdSize.fromName(contentValues.getAsString("ad_size")); nVar.f8387f = contentValues.getAsInteger("autocache_priority").intValue(); nVar.f8393l = contentValues.getAsInteger("max_hb_cache").intValue(); nVar.f8392k = AdConfig.AdSize.fromName(contentValues.getAsString("recommended_ad_size")); return nVar; } @Override // g8.c /* renamed from: e, reason: merged with bridge method [inline-methods] */ public ContentValues a(n nVar) { ContentValues contentValues = new ContentValues(); contentValues.put("item_id", nVar.f8382a); contentValues.put("incentivized", Boolean.valueOf(nVar.f8384c)); contentValues.put("header_bidding", Boolean.valueOf(nVar.f8388g)); contentValues.put("auto_cached", Boolean.valueOf(nVar.f8383b)); contentValues.put("wakeup_time", Long.valueOf(nVar.f8385d)); contentValues.put("is_valid", Boolean.valueOf(nVar.f8389h)); contentValues.put("refresh_duration", Integer.valueOf(nVar.f8386e)); contentValues.put("supported_template_types", Integer.valueOf(nVar.f8390i)); contentValues.put("ad_size", nVar.b().getName()); contentValues.put("autocache_priority", Integer.valueOf(nVar.f8387f)); contentValues.put("max_hb_cache", Integer.valueOf(nVar.f8393l)); contentValues.put("recommended_ad_size", nVar.g().getName()); return contentValues; } }