NStorageFeatureImpl$e.smali
.class Lio/dcloud/feature/pdr/NStorageFeatureImpl$e;
.super Ljava/lang/Object;
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lio/dcloud/feature/pdr/NStorageFeatureImpl;->c(Lio/dcloud/common/DHInterface/IWebview;Ljava/lang/String;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Lio/dcloud/common/util/db/DCStorage;
.field final synthetic b:Lio/dcloud/common/DHInterface/IWebview;
.field final synthetic c:Ljava/lang/String;
.field final synthetic d:Lio/dcloud/feature/pdr/NStorageFeatureImpl;
# direct methods
.method constructor <init>(Lio/dcloud/feature/pdr/NStorageFeatureImpl;Lio/dcloud/common/util/db/DCStorage;Lio/dcloud/common/DHInterface/IWebview;Ljava/lang/String;)V
.registers 5
.line 1
iput-object p1, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$e;->d:Lio/dcloud/feature/pdr/NStorageFeatureImpl;
iput-object p2, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$e;->a:Lio/dcloud/common/util/db/DCStorage;
iput-object p3, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$e;->b:Lio/dcloud/common/DHInterface/IWebview;
iput-object p4, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$e;->c:Ljava/lang/String;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.registers 7
.line 1
new-instance v0, Lorg/json/JSONArray;
invoke-direct {v0}, Lorg/json/JSONArray;-><init>()V
.line 2
new-instance v1, Lorg/json/JSONObject;
invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V
.line 3
iget-object v2, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$e;->a:Lio/dcloud/common/util/db/DCStorage;
iget-object v3, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$e;->b:Lio/dcloud/common/DHInterface/IWebview;
invoke-interface {v3}, Lio/dcloud/common/DHInterface/IWebview;->obtainApp()Lio/dcloud/common/DHInterface/IApp;
move-result-object v3
invoke-interface {v3}, Lio/dcloud/common/DHInterface/IApp;->obtainAppId()Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Lio/dcloud/common/util/db/DCStorage;->performGetAllKeys(Ljava/lang/String;)Lio/dcloud/common/util/db/DCStorage$StorageInfo;
move-result-object v2
.line 4
iget v3, v2, Lio/dcloud/common/util/db/DCStorage$StorageInfo;->code:I
const/4 v4, 0x0
const/4 v5, 0x1
if-ne v3, v5, :cond_54
iget-object v5, v2, Lio/dcloud/common/util/db/DCStorage$StorageInfo;->v:Ljava/lang/Object;
if-eqz v5, :cond_54
.line 5
check-cast v5, Ljava/util/List;
.line 6
invoke-interface {v5}, Ljava/util/List;->size()I
move-result v2
if-lez v2, :cond_40
.line 7
invoke-interface {v5}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
:goto_30
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_40
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
.line 8
invoke-virtual {v0, v3}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
goto :goto_30
:cond_40
:try_start_40
const-string v2, "keys"
.line 12
invoke-virtual {v1, v2, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_45
.catch Lorg/json/JSONException; {:try_start_40 .. :try_end_45} :catch_46
goto :goto_4a
:catch_46
move-exception v0
.line 14
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
.line 16
:goto_4a
iget-object v0, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$e;->b:Lio/dcloud/common/DHInterface/IWebview;
iget-object v2, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$e;->c:Ljava/lang/String;
sget v3, Lio/dcloud/common/util/JSUtil;->OK:I
invoke-static {v0, v2, v1, v3, v4}, Lio/dcloud/common/util/JSUtil;->execCallback(Lio/dcloud/common/DHInterface/IWebview;Ljava/lang/String;Lorg/json/JSONObject;IZ)V
goto :goto_6e
:cond_54
const-string v0, "code"
.line 19
:try_start_56
invoke-virtual {v1, v0, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
:try_end_59
.catch Lorg/json/JSONException; {:try_start_56 .. :try_end_59} :catch_61
const-string v0, "message"
.line 20
:try_start_5b
iget-object v2, v2, Lio/dcloud/common/util/db/DCStorage$StorageInfo;->meg:Ljava/lang/String;
invoke-virtual {v1, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_60
.catch Lorg/json/JSONException; {:try_start_5b .. :try_end_60} :catch_61
goto :goto_65
:catch_61
move-exception v0
.line 22
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
.line 24
:goto_65
iget-object v0, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$e;->b:Lio/dcloud/common/DHInterface/IWebview;
iget-object v2, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$e;->c:Ljava/lang/String;
sget v3, Lio/dcloud/common/util/JSUtil;->ERROR:I
invoke-static {v0, v2, v1, v3, v4}, Lio/dcloud/common/util/JSUtil;->execCallback(Lio/dcloud/common/DHInterface/IWebview;Ljava/lang/String;Lorg/json/JSONObject;IZ)V
:goto_6e
return-void
.end method