572 lines
15 KiB
Smali
572 lines
15 KiB
Smali
.class public Lcom/moji/statistics/EventEntity;
|
|
.super Ljava/lang/Object;
|
|
.source "EventEntity.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/io/Serializable;
|
|
|
|
|
|
# static fields
|
|
.field private static final TAG:Ljava/lang/String; = "EventEntity"
|
|
|
|
.field public static final common:Lcom/moji/statistics/EventCommBody;
|
|
|
|
.field private static final serialVersionUID:J = -0x720e9d8530fcba92L
|
|
|
|
|
|
# instance fields
|
|
.field public extra:Ljava/lang/String;
|
|
|
|
.field public mDu:Ljava/lang/String;
|
|
|
|
.field public mEventParams:Lcom/moji/statistics/EventParams;
|
|
|
|
.field public mEventTag:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 21
|
|
new-instance v0, Lcom/moji/statistics/EventCommBody;
|
|
|
|
invoke-direct {v0}, Lcom/moji/statistics/EventCommBody;-><init>()V
|
|
|
|
sput-object v0, Lcom/moji/statistics/EventEntity;->common:Lcom/moji/statistics/EventCommBody;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/moji/statistics/EVENT_TAG;)V
|
|
.locals 1
|
|
|
|
.line 31
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const-string v0, ""
|
|
|
|
.line 25
|
|
iput-object v0, p0, Lcom/moji/statistics/EventEntity;->mDu:Ljava/lang/String;
|
|
|
|
.line 32
|
|
iput-object p1, p0, Lcom/moji/statistics/EventEntity;->mEventTag:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/moji/statistics/EVENT_TAG;Lcom/moji/statistics/EventParams;)V
|
|
.locals 0
|
|
|
|
.line 62
|
|
invoke-direct {p0, p1}, Lcom/moji/statistics/EventEntity;-><init>(Lcom/moji/statistics/EVENT_TAG;)V
|
|
|
|
.line 63
|
|
iput-object p2, p0, Lcom/moji/statistics/EventEntity;->mEventParams:Lcom/moji/statistics/EventParams;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/moji/statistics/EVENT_TAG;Lcom/moji/statistics/EventParams;Lorg/json/JSONObject;)V
|
|
.locals 0
|
|
|
|
.line 80
|
|
invoke-direct {p0, p1, p2}, Lcom/moji/statistics/EventEntity;-><init>(Lcom/moji/statistics/EVENT_TAG;Lcom/moji/statistics/EventParams;)V
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 82
|
|
invoke-virtual {p3}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/moji/statistics/EventEntity;->extra:Ljava/lang/String;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)V
|
|
.locals 4
|
|
|
|
.line 40
|
|
invoke-direct {p0, p1}, Lcom/moji/statistics/EventEntity;-><init>(Lcom/moji/statistics/EVENT_TAG;)V
|
|
|
|
.line 41
|
|
new-instance v0, Lcom/moji/statistics/EventParams;
|
|
|
|
invoke-direct {v0}, Lcom/moji/statistics/EventParams;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/moji/statistics/EventEntity;->mEventParams:Lcom/moji/statistics/EventParams;
|
|
|
|
.line 42
|
|
iget-object p1, p1, Lcom/moji/statistics/EVENT_TAG;->mNodes:[Lcom/moji/statistics/EVENT_RECEIVER;
|
|
|
|
array-length v0, p1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_1
|
|
|
|
aget-object v2, p1, v1
|
|
|
|
.line 43
|
|
sget-object v3, Lcom/moji/statistics/EVENT_RECEIVER;->RT_SERVER:Lcom/moji/statistics/EVENT_RECEIVER;
|
|
|
|
if-ne v3, v2, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 44
|
|
:cond_0
|
|
iget-object v3, p0, Lcom/moji/statistics/EventEntity;->mEventParams:Lcom/moji/statistics/EventParams;
|
|
|
|
invoke-virtual {v3, v2, p2}, Lcom/moji/statistics/EventParams;->setParams(Lcom/moji/statistics/EVENT_RECEIVER;Ljava/lang/String;)Lcom/moji/statistics/EventParams;
|
|
|
|
:goto_1
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;J)V
|
|
.locals 2
|
|
|
|
.line 49
|
|
invoke-direct {p0, p1}, Lcom/moji/statistics/EventEntity;-><init>(Lcom/moji/statistics/EVENT_TAG;)V
|
|
|
|
.line 50
|
|
invoke-static {p3, p4}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
iput-object p3, p0, Lcom/moji/statistics/EventEntity;->mDu:Ljava/lang/String;
|
|
|
|
.line 51
|
|
new-instance p3, Lcom/moji/statistics/EventParams;
|
|
|
|
invoke-direct {p3}, Lcom/moji/statistics/EventParams;-><init>()V
|
|
|
|
iput-object p3, p0, Lcom/moji/statistics/EventEntity;->mEventParams:Lcom/moji/statistics/EventParams;
|
|
|
|
.line 52
|
|
iget-object p1, p1, Lcom/moji/statistics/EVENT_TAG;->mNodes:[Lcom/moji/statistics/EVENT_RECEIVER;
|
|
|
|
array-length p3, p1
|
|
|
|
const/4 p4, 0x0
|
|
|
|
:goto_0
|
|
if-ge p4, p3, :cond_0
|
|
|
|
aget-object v0, p1, p4
|
|
|
|
.line 53
|
|
iget-object v1, p0, Lcom/moji/statistics/EventEntity;->mEventParams:Lcom/moji/statistics/EventParams;
|
|
|
|
invoke-virtual {v1, v0, p2}, Lcom/moji/statistics/EventParams;->setParams(Lcom/moji/statistics/EVENT_RECEIVER;Ljava/lang/String;)Lcom/moji/statistics/EventParams;
|
|
|
|
add-int/lit8 p4, p4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;JLorg/json/JSONObject;)V
|
|
.locals 0
|
|
|
|
.line 104
|
|
invoke-direct {p0, p1, p2, p3, p4}, Lcom/moji/statistics/EventEntity;-><init>(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;J)V
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
.line 106
|
|
invoke-virtual {p5}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/moji/statistics/EventEntity;->extra:Ljava/lang/String;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;Lcom/moji/statistics/EventParams;)V
|
|
.locals 0
|
|
|
|
.line 71
|
|
invoke-direct {p0, p1, p2}, Lcom/moji/statistics/EventEntity;-><init>(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)V
|
|
|
|
.line 72
|
|
iget-object p1, p0, Lcom/moji/statistics/EventEntity;->mEventParams:Lcom/moji/statistics/EventParams;
|
|
|
|
invoke-virtual {p1, p3}, Lcom/moji/statistics/EventParams;->setParams(Lcom/moji/statistics/EventParams;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;Lorg/json/JSONObject;)V
|
|
.locals 0
|
|
|
|
.line 92
|
|
invoke-direct {p0, p1, p2}, Lcom/moji/statistics/EventEntity;-><init>(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)V
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 94
|
|
invoke-virtual {p3}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/moji/statistics/EventEntity;->extra:Ljava/lang/String;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public toNewAdJSONObject()Lorg/json/JSONObject;
|
|
.locals 3
|
|
|
|
const-string v0, ""
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 178
|
|
:try_start_0
|
|
iget-object v2, p0, Lcom/moji/statistics/EventEntity;->mEventParams:Lcom/moji/statistics/EventParams;
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 179
|
|
iget-object v0, p0, Lcom/moji/statistics/EventEntity;->mEventParams:Lcom/moji/statistics/EventParams;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/statistics/EventParams;->getNewAdParams()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 181
|
|
:cond_0
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
return-object v1
|
|
|
|
.line 184
|
|
:cond_1
|
|
new-instance v2, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v2, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
move-object v1, v2
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
const-string v2, "EventEntity"
|
|
|
|
.line 186
|
|
invoke-static {v2, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
:goto_0
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public toRTJSONObject()Lorg/json/JSONObject;
|
|
.locals 4
|
|
|
|
.line 157
|
|
new-instance v0, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
const-string v1, ""
|
|
|
|
:try_start_0
|
|
const-string v2, "common"
|
|
|
|
.line 160
|
|
sget-object v3, Lcom/moji/statistics/EventEntity;->common:Lcom/moji/statistics/EventCommBody;
|
|
|
|
invoke-virtual {v3}, Lcom/moji/statistics/EventCommBody;->getJsonObject()Lorg/json/JSONObject;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
.line 161
|
|
iget-object v2, p0, Lcom/moji/statistics/EventEntity;->mEventParams:Lcom/moji/statistics/EventParams;
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 162
|
|
iget-object v1, p0, Lcom/moji/statistics/EventEntity;->mEventParams:Lcom/moji/statistics/EventParams;
|
|
|
|
invoke-virtual {v1}, Lcom/moji/statistics/EventParams;->getRTServerParam()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
.line 164
|
|
:cond_0
|
|
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
const-string v2, "params"
|
|
|
|
.line 167
|
|
new-instance v3, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v3, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
const-string v2, "EventEntity"
|
|
|
|
.line 169
|
|
invoke-static {v2, v1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public toServerString()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
.line 135
|
|
new-instance v0, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
:try_start_0
|
|
const-string v1, "common"
|
|
|
|
.line 137
|
|
sget-object v2, Lcom/moji/statistics/EventEntity;->common:Lcom/moji/statistics/EventCommBody;
|
|
|
|
invoke-virtual {v2}, Lcom/moji/statistics/EventCommBody;->getJsonObject()Lorg/json/JSONObject;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
.line 138
|
|
new-instance v1, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
const-string v2, "key"
|
|
|
|
.line 139
|
|
iget-object v3, p0, Lcom/moji/statistics/EventEntity;->mEventTag:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {v3}, Lcom/moji/statistics/EVENT_TAG;->name()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, ""
|
|
|
|
.line 141
|
|
iget-object v3, p0, Lcom/moji/statistics/EventEntity;->mEventParams:Lcom/moji/statistics/EventParams;
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 142
|
|
iget-object v2, p0, Lcom/moji/statistics/EventEntity;->mEventParams:Lcom/moji/statistics/EventParams;
|
|
|
|
invoke-virtual {v2}, Lcom/moji/statistics/EventParams;->getServerParam()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
:cond_0
|
|
const-string v3, "value"
|
|
|
|
.line 144
|
|
invoke-virtual {v1, v3, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "du"
|
|
|
|
.line 145
|
|
iget-object v3, p0, Lcom/moji/statistics/EventEntity;->mDu:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "event"
|
|
|
|
.line 146
|
|
invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
.line 147
|
|
iget-object v1, p0, Lcom/moji/statistics/EventEntity;->extra:Ljava/lang/String;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const-string v1, "properties"
|
|
|
|
.line 148
|
|
new-instance v2, Lorg/json/JSONObject;
|
|
|
|
iget-object v3, p0, Lcom/moji/statistics/EventEntity;->extra:Ljava/lang/String;
|
|
|
|
invoke-direct {v2, v3}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
const-string v2, "EventEntity"
|
|
|
|
.line 151
|
|
invoke-static {v2, v1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 153
|
|
:cond_1
|
|
:goto_0
|
|
invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
.line 113
|
|
new-instance v0, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
:try_start_0
|
|
const-string v1, "common"
|
|
|
|
.line 115
|
|
sget-object v2, Lcom/moji/statistics/EventEntity;->common:Lcom/moji/statistics/EventCommBody;
|
|
|
|
invoke-virtual {v2}, Lcom/moji/statistics/EventCommBody;->getJsonObject()Lorg/json/JSONObject;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
.line 116
|
|
new-instance v1, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
const-string v2, "key"
|
|
|
|
.line 117
|
|
iget-object v3, p0, Lcom/moji/statistics/EventEntity;->mEventTag:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {v3}, Lcom/moji/statistics/EVENT_TAG;->name()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, ""
|
|
|
|
.line 119
|
|
iget-object v3, p0, Lcom/moji/statistics/EventEntity;->mEventParams:Lcom/moji/statistics/EventParams;
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 120
|
|
iget-object v2, p0, Lcom/moji/statistics/EventEntity;->mEventParams:Lcom/moji/statistics/EventParams;
|
|
|
|
invoke-virtual {v2}, Lcom/moji/statistics/EventParams;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
:cond_0
|
|
const-string v3, "value"
|
|
|
|
.line 122
|
|
invoke-virtual {v1, v3, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "du"
|
|
|
|
.line 123
|
|
iget-object v3, p0, Lcom/moji/statistics/EventEntity;->mDu:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "event"
|
|
|
|
.line 124
|
|
invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
.line 125
|
|
iget-object v1, p0, Lcom/moji/statistics/EventEntity;->extra:Ljava/lang/String;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const-string v1, "properties"
|
|
|
|
.line 126
|
|
new-instance v2, Lorg/json/JSONObject;
|
|
|
|
iget-object v3, p0, Lcom/moji/statistics/EventEntity;->extra:Ljava/lang/String;
|
|
|
|
invoke-direct {v2, v3}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
const-string v2, "EventEntity"
|
|
|
|
.line 129
|
|
invoke-static {v2, v1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 131
|
|
:cond_1
|
|
:goto_0
|
|
invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|