OutcomeEventsFormatter.smali
.class Lcom/ironsource/mediationsdk/events/OutcomeEventsFormatter;
.super Lcom/ironsource/mediationsdk/events/AbstractEventsFormatter;
# direct methods
.method constructor <init>(I)V
.registers 2
invoke-direct {p0}, Lcom/ironsource/mediationsdk/events/AbstractEventsFormatter;-><init>()V
iput p1, p0, Lcom/ironsource/mediationsdk/events/AbstractEventsFormatter;->b:I
return-void
.end method
# virtual methods
.method public c(Ljava/util/ArrayList;Lorg/json/JSONObject;)Ljava/lang/String;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList<",
"Lcom/ironsource/eventsmodule/EventData;",
">;",
"Lorg/json/JSONObject;",
")",
"Ljava/lang/String;"
}
.end annotation
if-nez p2, :cond_a
new-instance p2, Lorg/json/JSONObject;
invoke-direct {p2}, Lorg/json/JSONObject;-><init>()V
iput-object p2, p0, Lcom/ironsource/mediationsdk/events/AbstractEventsFormatter;->a:Lorg/json/JSONObject;
goto :goto_c
:cond_a
iput-object p2, p0, Lcom/ironsource/mediationsdk/events/AbstractEventsFormatter;->a:Lorg/json/JSONObject;
:goto_c
new-instance p2, Lorg/json/JSONArray;
invoke-direct {p2}, Lorg/json/JSONArray;-><init>()V
if-eqz p1, :cond_33
invoke-virtual {p1}, Ljava/util/ArrayList;->isEmpty()Z
move-result v0
if-nez v0, :cond_33
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_1d
:goto_1d
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_33
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/ironsource/eventsmodule/EventData;
invoke-virtual {p0, v0}, Lcom/ironsource/mediationsdk/events/AbstractEventsFormatter;->b(Lcom/ironsource/eventsmodule/EventData;)Lorg/json/JSONObject;
move-result-object v0
if-eqz v0, :cond_1d
invoke-virtual {p2, v0}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
goto :goto_1d
:cond_33
invoke-virtual {p0, p2}, Lcom/ironsource/mediationsdk/events/AbstractEventsFormatter;->a(Lorg/json/JSONArray;)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public d()Ljava/lang/String;
.registers 2
const-string v0, "http://="
return-object v0
.end method
.method public g()Ljava/lang/String;
.registers 2
const-string v0, "outcome"
return-object v0
.end method