package com.fyber.inneractive.sdk.response; import android.text.TextUtils; import com.fyber.inneractive.sdk.config.e0; import com.fyber.inneractive.sdk.util.IAlog; /* loaded from: classes2.dex */ public abstract class b { public e a; public String b; public j c; public boolean d = true; public abstract e a(); public abstract void a(String str, e0 e0Var) throws Exception; public boolean b() { return !(this instanceof com.fyber.inneractive.sdk.dv.e); } public abstract void c(); public final e a(String str) throws Exception { this.d = str != null; e eVar = this.a; eVar.getClass(); eVar.c = System.currentTimeMillis(); this.c.a(this); String a = this.c.a(); this.a.h = a; e0 a2 = com.fyber.inneractive.sdk.config.a.a(this.b); IAlog.a("%sGot unit config for unitId: %s from config manager", IAlog.a(this), this.b); IAlog.a("%s%s", IAlog.a(this), a2); if (this.d) { a(str, a2); } else if (b()) { h hVar = new h(a); if (hVar.a) { String str2 = hVar.b; if (str2 == null || TextUtils.isEmpty(str2.trim())) { throw new Exception("empty ad content detected. failing fast."); } a(str2, a2); } } else { a(a, a2); } return this.a; } }