今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

266 lines
7.2 KiB

.class Lcom/viatech/gallery/GalleryContainer$2;
.super Ljava/lang/Object;
.source "GalleryContainer.java"
# interfaces
.implements Lcom/viatech/gallery/RemoteGalleryView$RemoteFileList;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/viatech/gallery/GalleryContainer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/viatech/gallery/GalleryContainer;
# direct methods
.method constructor <init>(Lcom/viatech/gallery/GalleryContainer;)V
.locals 0
.prologue
.line 202
iput-object p1, p0, Lcom/viatech/gallery/GalleryContainer$2;->this$0:Lcom/viatech/gallery/GalleryContainer;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static synthetic access$200(Lcom/viatech/gallery/GalleryContainer$2;Ljava/lang/String;Ljava/util/List;)Z
.locals 1
.prologue
.line 202
invoke-direct {p0, p1, p2}, Lcom/viatech/gallery/GalleryContainer$2;->deleteFileInternal(Ljava/lang/String;Ljava/util/List;)Z
move-result v0
return v0
.end method
.method private deleteFileInternal(Ljava/lang/String;Ljava/util/List;)Z
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/util/List",
"<",
"Lcom/viatech/gallery/FileInfo;",
">;)Z"
}
.end annotation
.prologue
.line 283
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
.line 284
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
:goto_0
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/viatech/gallery/FileInfo;
.line 285
invoke-virtual {v0}, Lcom/viatech/gallery/FileInfo;->toCloudGalleryReq()Lcom/via/vpaicloud/community/request/CloudGalleryReq;
move-result-object v0
.line 286
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 288
:cond_0
invoke-static {}, Lcom/via/vpaicloud/storage/a;->a()Lcom/via/vpaicloud/storage/a;
move-result-object v0
new-instance v2, Lcom/viatech/gallery/GalleryContainer$2$4;
invoke-direct {v2, p0}, Lcom/viatech/gallery/GalleryContainer$2$4;-><init>(Lcom/viatech/gallery/GalleryContainer$2;)V
invoke-virtual {v0, v1, v2}, Lcom/via/vpaicloud/storage/a;->b(Ljava/util/List;Lcom/via/vpaicloud/storage/a$a;)V
.line 300
const/4 v0, 0x1
return v0
.end method
# virtual methods
.method public deleteFile(Ljava/util/List;Lcom/viatech/device/DeviceMessage$DeviceMessageCallback;)Z
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Lcom/viatech/gallery/FileInfo;",
">;",
"Lcom/viatech/device/DeviceMessage$DeviceMessageCallback;",
")Z"
}
.end annotation
.prologue
.line 266
invoke-static {}, Lcom/viatech/cloud/CloudConfig;->curUser()Lcom/viatech/cloud/CloudConfig$LoginUser;
move-result-object v0
invoke-virtual {v0}, Lcom/viatech/cloud/CloudConfig$LoginUser;->isCloudLogin()Z
move-result v0
if-eqz v0, :cond_0
.line 267
invoke-static {}, Lcom/viatech/cloud/CloudConfig;->curUser()Lcom/viatech/cloud/CloudConfig$LoginUser;
move-result-object v0
iget-object v0, v0, Lcom/viatech/cloud/CloudConfig$LoginUser;->userid:Ljava/lang/String;
invoke-direct {p0, v0, p1}, Lcom/viatech/gallery/GalleryContainer$2;->deleteFileInternal(Ljava/lang/String;Ljava/util/List;)Z
move-result v0
.line 279
:goto_0
return v0
.line 269
:cond_0
invoke-static {}, Lcom/viatech/cloud/CloudConfig;->curUser()Lcom/viatech/cloud/CloudConfig$LoginUser;
move-result-object v0
iget-object v1, p0, Lcom/viatech/gallery/GalleryContainer$2;->this$0:Lcom/viatech/gallery/GalleryContainer;
invoke-static {v1}, Lcom/viatech/gallery/GalleryContainer;->access$100(Lcom/viatech/gallery/GalleryContainer;)Landroid/os/Handler;
move-result-object v1
new-instance v2, Lcom/viatech/gallery/GalleryContainer$2$3;
invoke-direct {v2, p0, p1}, Lcom/viatech/gallery/GalleryContainer$2$3;-><init>(Lcom/viatech/gallery/GalleryContainer$2;Ljava/util/List;)V
invoke-virtual {v0, v1, v2}, Lcom/viatech/cloud/CloudConfig$LoginUser;->login(Landroid/os/Handler;Lcom/viatech/cloud/CloudConfig$LoginResultCallback;)V
.line 279
const/4 v0, 0x1
goto :goto_0
.end method
.method public requestRemoteFileList(Z)Z
.locals 4
.prologue
.line 207
if-nez p1, :cond_0
.line 208
iget-object v0, p0, Lcom/viatech/gallery/GalleryContainer$2;->this$0:Lcom/viatech/gallery/GalleryContainer;
invoke-static {v0}, Lcom/viatech/gallery/GalleryContainer;->access$000(Lcom/viatech/gallery/GalleryContainer;)Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v0
if-nez v0, :cond_0
.line 209
const/4 v0, 0x0
.line 261
:goto_0
return v0
.line 212
:cond_0
new-instance v0, Lcom/viatech/gallery/GalleryContainer$2$1;
invoke-direct {v0, p0}, Lcom/viatech/gallery/GalleryContainer$2$1;-><init>(Lcom/viatech/gallery/GalleryContainer$2;)V
.line 246
invoke-static {}, Lcom/viatech/cloud/CloudConfig;->curUser()Lcom/viatech/cloud/CloudConfig$LoginUser;
move-result-object v1
invoke-virtual {v1}, Lcom/viatech/cloud/CloudConfig$LoginUser;->getPrefixUUID()Ljava/lang/String;
move-result-object v1
.line 247
invoke-static {}, Lcom/viatech/cloud/CloudConfig;->curUser()Lcom/viatech/cloud/CloudConfig$LoginUser;
move-result-object v2
invoke-virtual {v2}, Lcom/viatech/cloud/CloudConfig$LoginUser;->isCloudLogin()Z
move-result v2
if-eqz v2, :cond_1
.line 248
invoke-static {}, Lcom/via/vpaicloud/storage/a;->a()Lcom/via/vpaicloud/storage/a;
move-result-object v2
invoke-virtual {v2, v1, v0}, Lcom/via/vpaicloud/storage/a;->a(Ljava/lang/String;Lcom/via/vpaicloud/storage/a$b;)V
.line 261
:goto_1
const/4 v0, 0x1
goto :goto_0
.line 250
:cond_1
invoke-static {}, Lcom/viatech/cloud/CloudConfig;->curUser()Lcom/viatech/cloud/CloudConfig$LoginUser;
move-result-object v1
iget-object v2, p0, Lcom/viatech/gallery/GalleryContainer$2;->this$0:Lcom/viatech/gallery/GalleryContainer;
invoke-static {v2}, Lcom/viatech/gallery/GalleryContainer;->access$100(Lcom/viatech/gallery/GalleryContainer;)Landroid/os/Handler;
move-result-object v2
new-instance v3, Lcom/viatech/gallery/GalleryContainer$2$2;
invoke-direct {v3, p0, v0}, Lcom/viatech/gallery/GalleryContainer$2$2;-><init>(Lcom/viatech/gallery/GalleryContainer$2;Lcom/via/vpaicloud/storage/a$b;)V
invoke-virtual {v1, v2, v3}, Lcom/viatech/cloud/CloudConfig$LoginUser;->login(Landroid/os/Handler;Lcom/viatech/cloud/CloudConfig$LoginResultCallback;)V
goto :goto_1
.end method