apkfuckery/com.discord/smali/com/adjust/sdk/AdjustAttribution.smali
2020-07-25 02:57:47 +00:00

589 lines
14 KiB
Smali

.class public Lcom/adjust/sdk/AdjustAttribution;
.super Ljava/lang/Object;
.source "AdjustAttribution.java"
# interfaces
.implements Ljava/io/Serializable;
# static fields
.field public static final serialPersistentFields:[Ljava/io/ObjectStreamField;
.field public static final serialVersionUID:J = 0x1L
# instance fields
.field public adgroup:Ljava/lang/String;
.field public adid:Ljava/lang/String;
.field public campaign:Ljava/lang/String;
.field public clickLabel:Ljava/lang/String;
.field public creative:Ljava/lang/String;
.field public network:Ljava/lang/String;
.field public trackerName:Ljava/lang/String;
.field public trackerToken:Ljava/lang/String;
# direct methods
.method public static constructor <clinit>()V
.locals 4
const-class v0, Ljava/lang/String;
const/16 v1, 0x8
new-array v1, v1, [Ljava/io/ObjectStreamField;
new-instance v2, Ljava/io/ObjectStreamField;
const-string v3, "trackerToken"
invoke-direct {v2, v3, v0}, Ljava/io/ObjectStreamField;-><init>(Ljava/lang/String;Ljava/lang/Class;)V
const/4 v3, 0x0
aput-object v2, v1, v3
new-instance v2, Ljava/io/ObjectStreamField;
const-string v3, "trackerName"
invoke-direct {v2, v3, v0}, Ljava/io/ObjectStreamField;-><init>(Ljava/lang/String;Ljava/lang/Class;)V
const/4 v3, 0x1
aput-object v2, v1, v3
new-instance v2, Ljava/io/ObjectStreamField;
const-string v3, "network"
invoke-direct {v2, v3, v0}, Ljava/io/ObjectStreamField;-><init>(Ljava/lang/String;Ljava/lang/Class;)V
const/4 v3, 0x2
aput-object v2, v1, v3
new-instance v2, Ljava/io/ObjectStreamField;
const-string v3, "campaign"
invoke-direct {v2, v3, v0}, Ljava/io/ObjectStreamField;-><init>(Ljava/lang/String;Ljava/lang/Class;)V
const/4 v3, 0x3
aput-object v2, v1, v3
new-instance v2, Ljava/io/ObjectStreamField;
const-string v3, "adgroup"
invoke-direct {v2, v3, v0}, Ljava/io/ObjectStreamField;-><init>(Ljava/lang/String;Ljava/lang/Class;)V
const/4 v3, 0x4
aput-object v2, v1, v3
new-instance v2, Ljava/io/ObjectStreamField;
const-string v3, "creative"
invoke-direct {v2, v3, v0}, Ljava/io/ObjectStreamField;-><init>(Ljava/lang/String;Ljava/lang/Class;)V
const/4 v3, 0x5
aput-object v2, v1, v3
new-instance v2, Ljava/io/ObjectStreamField;
const-string v3, "clickLabel"
invoke-direct {v2, v3, v0}, Ljava/io/ObjectStreamField;-><init>(Ljava/lang/String;Ljava/lang/Class;)V
const/4 v3, 0x6
aput-object v2, v1, v3
new-instance v2, Ljava/io/ObjectStreamField;
const-string v3, "adid"
invoke-direct {v2, v3, v0}, Ljava/io/ObjectStreamField;-><init>(Ljava/lang/String;Ljava/lang/Class;)V
const/4 v0, 0x7
aput-object v2, v1, v0
sput-object v1, Lcom/adjust/sdk/AdjustAttribution;->serialPersistentFields:[Ljava/io/ObjectStreamField;
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/String;)Lcom/adjust/sdk/AdjustAttribution;
.locals 9
const/4 v0, 0x0
if-nez p0, :cond_0
return-object v0
:cond_0
new-instance v1, Lcom/adjust/sdk/AdjustAttribution;
invoke-direct {v1}, Lcom/adjust/sdk/AdjustAttribution;-><init>()V
const-string v2, "unity"
invoke-virtual {v2, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p2
const-string v2, "click_label"
const-string v3, "creative"
const-string v4, "adgroup"
const-string v5, "campaign"
const-string v6, "network"
const-string v7, "tracker_name"
const-string v8, "tracker_token"
if-eqz p2, :cond_2
const-string p2, ""
invoke-virtual {p0, v8, p2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iput-object v0, v1, Lcom/adjust/sdk/AdjustAttribution;->trackerToken:Ljava/lang/String;
invoke-virtual {p0, v7, p2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iput-object v0, v1, Lcom/adjust/sdk/AdjustAttribution;->trackerName:Ljava/lang/String;
invoke-virtual {p0, v6, p2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iput-object v0, v1, Lcom/adjust/sdk/AdjustAttribution;->network:Ljava/lang/String;
invoke-virtual {p0, v5, p2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iput-object v0, v1, Lcom/adjust/sdk/AdjustAttribution;->campaign:Ljava/lang/String;
invoke-virtual {p0, v4, p2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iput-object v0, v1, Lcom/adjust/sdk/AdjustAttribution;->adgroup:Ljava/lang/String;
invoke-virtual {p0, v3, p2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iput-object v0, v1, Lcom/adjust/sdk/AdjustAttribution;->creative:Ljava/lang/String;
invoke-virtual {p0, v2, p2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
iput-object p0, v1, Lcom/adjust/sdk/AdjustAttribution;->clickLabel:Ljava/lang/String;
if-eqz p1, :cond_1
goto :goto_0
:cond_1
move-object p1, p2
:goto_0
iput-object p1, v1, Lcom/adjust/sdk/AdjustAttribution;->adid:Ljava/lang/String;
goto :goto_1
:cond_2
invoke-virtual {p0, v8, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
iput-object p2, v1, Lcom/adjust/sdk/AdjustAttribution;->trackerToken:Ljava/lang/String;
invoke-virtual {p0, v7, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
iput-object p2, v1, Lcom/adjust/sdk/AdjustAttribution;->trackerName:Ljava/lang/String;
invoke-virtual {p0, v6, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
iput-object p2, v1, Lcom/adjust/sdk/AdjustAttribution;->network:Ljava/lang/String;
invoke-virtual {p0, v5, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
iput-object p2, v1, Lcom/adjust/sdk/AdjustAttribution;->campaign:Ljava/lang/String;
invoke-virtual {p0, v4, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
iput-object p2, v1, Lcom/adjust/sdk/AdjustAttribution;->adgroup:Ljava/lang/String;
invoke-virtual {p0, v3, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
iput-object p2, v1, Lcom/adjust/sdk/AdjustAttribution;->creative:Ljava/lang/String;
invoke-virtual {p0, v2, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
iput-object p0, v1, Lcom/adjust/sdk/AdjustAttribution;->clickLabel:Ljava/lang/String;
iput-object p1, v1, Lcom/adjust/sdk/AdjustAttribution;->adid:Ljava/lang/String;
:goto_1
return-object v1
.end method
.method private readObject(Ljava/io/ObjectInputStream;)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;,
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->defaultReadObject()V
return-void
.end method
.method private writeObject(Ljava/io/ObjectOutputStream;)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p1}, Ljava/io/ObjectOutputStream;->defaultWriteObject()V
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 4
const/4 v0, 0x1
if-ne p1, p0, :cond_0
return v0
:cond_0
const/4 v1, 0x0
if-nez p1, :cond_1
return v1
:cond_1
const-class v2, Lcom/adjust/sdk/AdjustAttribution;
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v3
if-eq v2, v3, :cond_2
return v1
:cond_2
check-cast p1, Lcom/adjust/sdk/AdjustAttribution;
iget-object v2, p0, Lcom/adjust/sdk/AdjustAttribution;->trackerToken:Ljava/lang/String;
iget-object v3, p1, Lcom/adjust/sdk/AdjustAttribution;->trackerToken:Ljava/lang/String;
invoke-static {v2, v3}, Lf/c/a/e2;->c(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_3
return v1
:cond_3
iget-object v2, p0, Lcom/adjust/sdk/AdjustAttribution;->trackerName:Ljava/lang/String;
iget-object v3, p1, Lcom/adjust/sdk/AdjustAttribution;->trackerName:Ljava/lang/String;
invoke-static {v2, v3}, Lf/c/a/e2;->c(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_4
return v1
:cond_4
iget-object v2, p0, Lcom/adjust/sdk/AdjustAttribution;->network:Ljava/lang/String;
iget-object v3, p1, Lcom/adjust/sdk/AdjustAttribution;->network:Ljava/lang/String;
invoke-static {v2, v3}, Lf/c/a/e2;->c(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_5
return v1
:cond_5
iget-object v2, p0, Lcom/adjust/sdk/AdjustAttribution;->campaign:Ljava/lang/String;
iget-object v3, p1, Lcom/adjust/sdk/AdjustAttribution;->campaign:Ljava/lang/String;
invoke-static {v2, v3}, Lf/c/a/e2;->c(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_6
return v1
:cond_6
iget-object v2, p0, Lcom/adjust/sdk/AdjustAttribution;->adgroup:Ljava/lang/String;
iget-object v3, p1, Lcom/adjust/sdk/AdjustAttribution;->adgroup:Ljava/lang/String;
invoke-static {v2, v3}, Lf/c/a/e2;->c(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_7
return v1
:cond_7
iget-object v2, p0, Lcom/adjust/sdk/AdjustAttribution;->creative:Ljava/lang/String;
iget-object v3, p1, Lcom/adjust/sdk/AdjustAttribution;->creative:Ljava/lang/String;
invoke-static {v2, v3}, Lf/c/a/e2;->c(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_8
return v1
:cond_8
iget-object v2, p0, Lcom/adjust/sdk/AdjustAttribution;->clickLabel:Ljava/lang/String;
iget-object v3, p1, Lcom/adjust/sdk/AdjustAttribution;->clickLabel:Ljava/lang/String;
invoke-static {v2, v3}, Lf/c/a/e2;->c(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_9
return v1
:cond_9
iget-object v2, p0, Lcom/adjust/sdk/AdjustAttribution;->adid:Ljava/lang/String;
iget-object p1, p1, Lcom/adjust/sdk/AdjustAttribution;->adid:Ljava/lang/String;
invoke-static {v2, p1}, Lf/c/a/e2;->c(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_a
return v1
:cond_a
return v0
.end method
.method public hashCode()I
.locals 2
iget-object v0, p0, Lcom/adjust/sdk/AdjustAttribution;->trackerToken:Ljava/lang/String;
invoke-static {v0}, Lf/c/a/e2;->w(Ljava/lang/String;)I
move-result v0
add-int/lit16 v0, v0, 0x275
mul-int/lit8 v0, v0, 0x25
iget-object v1, p0, Lcom/adjust/sdk/AdjustAttribution;->trackerName:Ljava/lang/String;
invoke-static {v1}, Lf/c/a/e2;->w(Ljava/lang/String;)I
move-result v1
add-int/2addr v1, v0
mul-int/lit8 v1, v1, 0x25
iget-object v0, p0, Lcom/adjust/sdk/AdjustAttribution;->network:Ljava/lang/String;
invoke-static {v0}, Lf/c/a/e2;->w(Ljava/lang/String;)I
move-result v0
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x25
iget-object v1, p0, Lcom/adjust/sdk/AdjustAttribution;->campaign:Ljava/lang/String;
invoke-static {v1}, Lf/c/a/e2;->w(Ljava/lang/String;)I
move-result v1
add-int/2addr v1, v0
mul-int/lit8 v1, v1, 0x25
iget-object v0, p0, Lcom/adjust/sdk/AdjustAttribution;->adgroup:Ljava/lang/String;
invoke-static {v0}, Lf/c/a/e2;->w(Ljava/lang/String;)I
move-result v0
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x25
iget-object v1, p0, Lcom/adjust/sdk/AdjustAttribution;->creative:Ljava/lang/String;
invoke-static {v1}, Lf/c/a/e2;->w(Ljava/lang/String;)I
move-result v1
add-int/2addr v1, v0
mul-int/lit8 v1, v1, 0x25
iget-object v0, p0, Lcom/adjust/sdk/AdjustAttribution;->clickLabel:Ljava/lang/String;
invoke-static {v0}, Lf/c/a/e2;->w(Ljava/lang/String;)I
move-result v0
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x25
iget-object v1, p0, Lcom/adjust/sdk/AdjustAttribution;->adid:Ljava/lang/String;
invoke-static {v1}, Lf/c/a/e2;->w(Ljava/lang/String;)I
move-result v1
add-int/2addr v1, v0
return v1
.end method
.method public toString()Ljava/lang/String;
.locals 3
const/16 v0, 0x8
new-array v0, v0, [Ljava/lang/Object;
iget-object v1, p0, Lcom/adjust/sdk/AdjustAttribution;->trackerToken:Ljava/lang/String;
const/4 v2, 0x0
aput-object v1, v0, v2
iget-object v1, p0, Lcom/adjust/sdk/AdjustAttribution;->trackerName:Ljava/lang/String;
const/4 v2, 0x1
aput-object v1, v0, v2
iget-object v1, p0, Lcom/adjust/sdk/AdjustAttribution;->network:Ljava/lang/String;
const/4 v2, 0x2
aput-object v1, v0, v2
iget-object v1, p0, Lcom/adjust/sdk/AdjustAttribution;->campaign:Ljava/lang/String;
const/4 v2, 0x3
aput-object v1, v0, v2
iget-object v1, p0, Lcom/adjust/sdk/AdjustAttribution;->adgroup:Ljava/lang/String;
const/4 v2, 0x4
aput-object v1, v0, v2
iget-object v1, p0, Lcom/adjust/sdk/AdjustAttribution;->creative:Ljava/lang/String;
const/4 v2, 0x5
aput-object v1, v0, v2
iget-object v1, p0, Lcom/adjust/sdk/AdjustAttribution;->clickLabel:Ljava/lang/String;
const/4 v2, 0x6
aput-object v1, v0, v2
iget-object v1, p0, Lcom/adjust/sdk/AdjustAttribution;->adid:Ljava/lang/String;
const/4 v2, 0x7
aput-object v1, v0, v2
const-string v1, "tt:%s tn:%s net:%s cam:%s adg:%s cre:%s cl:%s adid:%s"
invoke-static {v1, v0}, Lf/c/a/e2;->d(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method