Files
rr3-apk/decompiled/sources/com/iab/omid/library/unity3d/adsession/AdSessionConfiguration.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

53 lines
2.1 KiB
Java

package com.iab.omid.library.unity3d.adsession;
import com.iab.omid.library.unity3d.utils.c;
import com.iab.omid.library.unity3d.utils.g;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public class AdSessionConfiguration {
private final CreativeType creativeType;
private final Owner impressionOwner;
private final ImpressionType impressionType;
private final boolean isolateVerificationScripts;
private final Owner mediaEventsOwner;
private AdSessionConfiguration(CreativeType creativeType, ImpressionType impressionType, Owner owner, Owner owner2, boolean z) {
this.creativeType = creativeType;
this.impressionType = impressionType;
this.impressionOwner = owner;
if (owner2 == null) {
this.mediaEventsOwner = Owner.NONE;
} else {
this.mediaEventsOwner = owner2;
}
this.isolateVerificationScripts = z;
}
public static AdSessionConfiguration createAdSessionConfiguration(CreativeType creativeType, ImpressionType impressionType, Owner owner, Owner owner2, boolean z) {
g.a(creativeType, "CreativeType is null");
g.a(impressionType, "ImpressionType is null");
g.a(owner, "Impression owner is null");
g.a(owner, creativeType, impressionType);
return new AdSessionConfiguration(creativeType, impressionType, owner, owner2, z);
}
public boolean isNativeImpressionOwner() {
return Owner.NATIVE == this.impressionOwner;
}
public boolean isNativeMediaEventsOwner() {
return Owner.NATIVE == this.mediaEventsOwner;
}
public JSONObject toJsonObject() {
JSONObject jSONObject = new JSONObject();
c.a(jSONObject, "impressionOwner", this.impressionOwner);
c.a(jSONObject, "mediaEventsOwner", this.mediaEventsOwner);
c.a(jSONObject, "creativeType", this.creativeType);
c.a(jSONObject, "impressionType", this.impressionType);
c.a(jSONObject, "isolateVerificationScripts", Boolean.valueOf(this.isolateVerificationScripts));
return jSONObject;
}
}