171 lines
4.0 KiB
Smali
171 lines
4.0 KiB
Smali
.class public Lcom/moji/api/ipc/APIResult;
|
|
.super Ljava/lang/Object;
|
|
.source "APIResult.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/os/Parcelable;
|
|
|
|
|
|
# static fields
|
|
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroid/os/Parcelable$Creator<",
|
|
"Lcom/moji/api/ipc/APIResult;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final RESULT_CODE_FAIL_CLASS_LOADER_ERROR:I = 0x4
|
|
|
|
.field public static final RESULT_CODE_FAIL_PARAM_ERROR:I = 0x3
|
|
|
|
.field public static final RESULT_CODE_FAIL_REMOTE_INSTANCE_ERROR:I = 0x5
|
|
|
|
.field public static final RESULT_CODE_FAIL_REMOTE_METHOD_ERROR:I = 0x6
|
|
|
|
.field public static final RESULT_CODE_FAIL_REMOTE_REFLECT_ERROR:I = 0x6
|
|
|
|
.field public static final RESULT_CODE_SUCCESS:I = 0x1
|
|
|
|
|
|
# instance fields
|
|
.field private mResultCode:I
|
|
|
|
.field private mWrapper:Lcom/moji/api/ipc/ObjectWrapper;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 21
|
|
new-instance v0, Lcom/moji/api/ipc/APIResult$1;
|
|
|
|
invoke-direct {v0}, Lcom/moji/api/ipc/APIResult$1;-><init>()V
|
|
|
|
sput-object v0, Lcom/moji/api/ipc/APIResult;->CREATOR:Landroid/os/Parcelable$Creator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Landroid/os/Parcel;)V
|
|
.locals 1
|
|
|
|
.line 31
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 32
|
|
invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/moji/api/ipc/APIResult;->mResultCode:I
|
|
|
|
.line 33
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/os/Parcel;->readParcelable(Ljava/lang/ClassLoader;)Landroid/os/Parcelable;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/moji/api/ipc/ObjectWrapper;
|
|
|
|
iput-object p1, p0, Lcom/moji/api/ipc/APIResult;->mWrapper:Lcom/moji/api/ipc/ObjectWrapper;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method synthetic constructor <init>(Landroid/os/Parcel;Lcom/moji/api/ipc/APIResult$1;)V
|
|
.locals 0
|
|
|
|
.line 10
|
|
invoke-direct {p0, p1}, Lcom/moji/api/ipc/APIResult;-><init>(Landroid/os/Parcel;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/lang/Object;I)V
|
|
.locals 0
|
|
|
|
.line 47
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 48
|
|
iput p2, p0, Lcom/moji/api/ipc/APIResult;->mResultCode:I
|
|
|
|
.line 49
|
|
new-instance p2, Lcom/moji/api/ipc/ObjectWrapper;
|
|
|
|
invoke-direct {p2, p1}, Lcom/moji/api/ipc/ObjectWrapper;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object p2, p0, Lcom/moji/api/ipc/APIResult;->mWrapper:Lcom/moji/api/ipc/ObjectWrapper;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public describeContents()I
|
|
.locals 1
|
|
|
|
const v0, 0x87e85
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getResult()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 57
|
|
iget-object v0, p0, Lcom/moji/api/ipc/APIResult;->mWrapper:Lcom/moji/api/ipc/ObjectWrapper;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
|
|
.line 60
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/api/ipc/APIResult;->mWrapper:Lcom/moji/api/ipc/ObjectWrapper;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/api/ipc/ObjectWrapper;->getObject()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getResultCode()I
|
|
.locals 1
|
|
|
|
.line 53
|
|
iget v0, p0, Lcom/moji/api/ipc/APIResult;->mResultCode:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public writeToParcel(Landroid/os/Parcel;I)V
|
|
.locals 1
|
|
|
|
.line 38
|
|
iget v0, p0, Lcom/moji/api/ipc/APIResult;->mResultCode:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/os/Parcel;->writeInt(I)V
|
|
|
|
.line 39
|
|
iget-object v0, p0, Lcom/moji/api/ipc/APIResult;->mWrapper:Lcom/moji/api/ipc/ObjectWrapper;
|
|
|
|
invoke-virtual {p1, v0, p2}, Landroid/os/Parcel;->writeParcelable(Landroid/os/Parcelable;I)V
|
|
|
|
return-void
|
|
.end method
|