今奥全景相机
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.

135 lines
3.6 KiB

.class public final Lcom/viatech/cloud/CloudConfig;
.super Ljava/lang/Object;
.source "CloudConfig.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/viatech/cloud/CloudConfig$LoginUser;,
Lcom/viatech/cloud/CloudConfig$LoginResultCallback;
}
.end annotation
# static fields
.field private static final KEY_IMAGE_URL:Ljava/lang/String; = "image_url"
.field private static final KEY_NICKNAME:Ljava/lang/String; = "nickname"
.field private static final KEY_OPENID:Ljava/lang/String; = "openid"
.field private static final KEY_UNIONID:Ljava/lang/String; = "unionid"
.field private static final KEY_USERID:Ljava/lang/String; = "userid"
.field private static sInst:Lcom/viatech/cloud/CloudConfig;
# instance fields
.field private mContext:Landroid/content/Context;
.field private final mCurUser:Lcom/viatech/cloud/CloudConfig$LoginUser;
# direct methods
.method private constructor <init>(Landroid/content/Context;)V
.locals 2
.prologue
.line 210
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 211
iput-object p1, p0, Lcom/viatech/cloud/CloudConfig;->mContext:Landroid/content/Context;
.line 212
new-instance v0, Lcom/viatech/cloud/CloudConfig$LoginUser;
iget-object v1, p0, Lcom/viatech/cloud/CloudConfig;->mContext:Landroid/content/Context;
invoke-direct {v0, v1}, Lcom/viatech/cloud/CloudConfig$LoginUser;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lcom/viatech/cloud/CloudConfig;->mCurUser:Lcom/viatech/cloud/CloudConfig$LoginUser;
.line 213
iget-object v0, p0, Lcom/viatech/cloud/CloudConfig;->mCurUser:Lcom/viatech/cloud/CloudConfig$LoginUser;
invoke-virtual {v0}, Lcom/viatech/cloud/CloudConfig$LoginUser;->load()V
.line 214
return-void
.end method
.method public static curUser()Lcom/viatech/cloud/CloudConfig$LoginUser;
.locals 1
.prologue
.line 29
invoke-static {}, Lcom/viatech/cloud/CloudConfig;->inst()Lcom/viatech/cloud/CloudConfig;
move-result-object v0
iget-object v0, v0, Lcom/viatech/cloud/CloudConfig;->mCurUser:Lcom/viatech/cloud/CloudConfig$LoginUser;
return-object v0
.end method
.method public static initialize(Landroid/content/Context;)V
.locals 2
.prologue
.line 17
sget-object v0, Lcom/viatech/cloud/CloudConfig;->sInst:Lcom/viatech/cloud/CloudConfig;
if-eqz v0, :cond_0
.line 18
new-instance v0, Ljava/lang/RuntimeException;
const-string v1, "CloudConfig.initialize already called"
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
throw v0
.line 19
:cond_0
new-instance v0, Lcom/viatech/cloud/CloudConfig;
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v1
invoke-direct {v0, v1}, Lcom/viatech/cloud/CloudConfig;-><init>(Landroid/content/Context;)V
sput-object v0, Lcom/viatech/cloud/CloudConfig;->sInst:Lcom/viatech/cloud/CloudConfig;
.line 20
return-void
.end method
.method public static inst()Lcom/viatech/cloud/CloudConfig;
.locals 2
.prologue
.line 23
sget-object v0, Lcom/viatech/cloud/CloudConfig;->sInst:Lcom/viatech/cloud/CloudConfig;
if-nez v0, :cond_0
.line 24
new-instance v0, Ljava/lang/RuntimeException;
const-string v1, "CloudConfig.initialize has not been called"
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
throw v0
.line 25
:cond_0
sget-object v0, Lcom/viatech/cloud/CloudConfig;->sInst:Lcom/viatech/cloud/CloudConfig;
return-object v0
.end method