NStorageFeatureImpl$c.smali
.class Lio/dcloud/feature/pdr/NStorageFeatureImpl$c;
.super Ljava/lang/Object;
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lio/dcloud/feature/pdr/NStorageFeatureImpl;->a(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$c;->d:Lio/dcloud/feature/pdr/NStorageFeatureImpl;
iput-object p2, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$c;->a:Lio/dcloud/common/util/db/DCStorage;
iput-object p3, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$c;->b:Lio/dcloud/common/DHInterface/IWebview;
iput-object p4, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$c;->c:Ljava/lang/String;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.registers 6
.line 1
iget-object v0, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$c;->a:Lio/dcloud/common/util/db/DCStorage;
iget-object v1, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$c;->b:Lio/dcloud/common/DHInterface/IWebview;
invoke-interface {v1}, Lio/dcloud/common/DHInterface/IWebview;->getContext()Landroid/content/Context;
move-result-object v1
iget-object v2, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$c;->b:Lio/dcloud/common/DHInterface/IWebview;
invoke-interface {v2}, Lio/dcloud/common/DHInterface/IWebview;->obtainApp()Lio/dcloud/common/DHInterface/IApp;
move-result-object v2
invoke-interface {v2}, Lio/dcloud/common/DHInterface/IApp;->obtainAppId()Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v1, v2}, Lio/dcloud/common/util/db/DCStorage;->performClear(Landroid/content/Context;Ljava/lang/String;)Lio/dcloud/common/util/db/DCStorage$StorageInfo;
move-result-object v0
.line 2
new-instance v1, Lorg/json/JSONObject;
invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V
.line 3
iget v2, v0, Lio/dcloud/common/util/db/DCStorage$StorageInfo;->code:I
const/4 v3, 0x0
const/4 v4, 0x1
if-ne v2, v4, :cond_2b
.line 4
iget-object v0, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$c;->b:Lio/dcloud/common/DHInterface/IWebview;
iget-object v2, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$c;->c:Ljava/lang/String;
sget v4, Lio/dcloud/common/util/JSUtil;->OK:I
invoke-static {v0, v2, v1, v4, v3}, Lio/dcloud/common/util/JSUtil;->execCallback(Lio/dcloud/common/DHInterface/IWebview;Ljava/lang/String;Lorg/json/JSONObject;IZ)V
goto :goto_45
:cond_2b
const-string v4, "code"
.line 7
:try_start_2d
invoke-virtual {v1, v4, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
:try_end_30
.catch Lorg/json/JSONException; {:try_start_2d .. :try_end_30} :catch_38
const-string v2, "message"
.line 8
:try_start_32
iget-object v0, v0, Lio/dcloud/common/util/db/DCStorage$StorageInfo;->meg:Ljava/lang/String;
invoke-virtual {v1, v2, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_37
.catch Lorg/json/JSONException; {:try_start_32 .. :try_end_37} :catch_38
goto :goto_3c
:catch_38
move-exception v0
.line 10
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
.line 12
:goto_3c
iget-object v0, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$c;->b:Lio/dcloud/common/DHInterface/IWebview;
iget-object v2, p0, Lio/dcloud/feature/pdr/NStorageFeatureImpl$c;->c:Ljava/lang/String;
sget v4, Lio/dcloud/common/util/JSUtil;->ERROR:I
invoke-static {v0, v2, v1, v4, v3}, Lio/dcloud/common/util/JSUtil;->execCallback(Lio/dcloud/common/DHInterface/IWebview;Ljava/lang/String;Lorg/json/JSONObject;IZ)V
:goto_45
return-void
.end method