v.smali
.class public Lcom/qq/e/comm/plugin/util/v;
.super Ljava/lang/Object;
# instance fields
.field private a:Lorg/json/JSONObject;
# direct methods
.method public constructor <init>()V
.registers 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
iput-object v0, p0, Lcom/qq/e/comm/plugin/util/v;->a:Lorg/json/JSONObject;
return-void
.end method
.method public constructor <init>(Ljava/lang/String;)V
.registers 4
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
if-eqz p1, :cond_23
:try_start_5
invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z
move-result v0
if-nez v0, :cond_23
invoke-virtual {p1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;
move-result-object v0
const-string v1, "null"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_23
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
:goto_20
iput-object v0, p0, Lcom/qq/e/comm/plugin/util/v;->a:Lorg/json/JSONObject;
:goto_22
return-void
:cond_23
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
:try_end_28
.catch Lorg/json/JSONException; {:try_start_5 .. :try_end_28} :catch_29
goto :goto_20
:catch_29
move-exception v0
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
iput-object v0, p0, Lcom/qq/e/comm/plugin/util/v;->a:Lorg/json/JSONObject;
goto :goto_22
.end method
.method public constructor <init>(Lorg/json/JSONObject;)V
.registers 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
if-nez p1, :cond_d
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
iput-object v0, p0, Lcom/qq/e/comm/plugin/util/v;->a:Lorg/json/JSONObject;
:goto_c
return-void
:cond_d
iput-object p1, p0, Lcom/qq/e/comm/plugin/util/v;->a:Lorg/json/JSONObject;
goto :goto_c
.end method
# virtual methods
.method public a(Ljava/lang/String;I)Lcom/qq/e/comm/plugin/util/v;
.registers 4
:try_start_0
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_b
iget-object v0, p0, Lcom/qq/e/comm/plugin/util/v;->a:Lorg/json/JSONObject;
invoke-virtual {v0, p1, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
:try_end_b
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_b} :catch_c
:cond_b
:goto_b
return-object p0
:catch_c
move-exception v0
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
goto :goto_b
.end method
.method public a(Ljava/lang/String;J)Lcom/qq/e/comm/plugin/util/v;
.registers 6
:try_start_0
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_b
iget-object v0, p0, Lcom/qq/e/comm/plugin/util/v;->a:Lorg/json/JSONObject;
invoke-virtual {v0, p1, p2, p3}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;
:try_end_b
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_b} :catch_c
:cond_b
:goto_b
return-object p0
:catch_c
move-exception v0
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
goto :goto_b
.end method
.method public a(Ljava/lang/String;Ljava/lang/Object;)Lcom/qq/e/comm/plugin/util/v;
.registers 4
:try_start_0
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_d
if-eqz p2, :cond_d
iget-object v0, p0, Lcom/qq/e/comm/plugin/util/v;->a:Lorg/json/JSONObject;
invoke-virtual {v0, p1, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_d
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_d} :catch_e
:cond_d
:goto_d
return-object p0
:catch_e
move-exception v0
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
goto :goto_d
.end method
.method public a(Ljava/lang/String;Ljava/lang/String;)Lcom/qq/e/comm/plugin/util/v;
.registers 4
:try_start_0
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_11
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_11
iget-object v0, p0, Lcom/qq/e/comm/plugin/util/v;->a:Lorg/json/JSONObject;
invoke-virtual {v0, p1, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_11
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_11} :catch_12
:cond_11
:goto_11
return-object p0
:catch_12
move-exception v0
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
goto :goto_11
.end method
.method public a()Lorg/json/JSONObject;
.registers 2
iget-object v0, p0, Lcom/qq/e/comm/plugin/util/v;->a:Lorg/json/JSONObject;
return-object v0
.end method
.method public toString()Ljava/lang/String;
.registers 2
iget-object v0, p0, Lcom/qq/e/comm/plugin/util/v;->a:Lorg/json/JSONObject;
invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method