.class final Lcom/moji/api/APIManager$4;
.super Ljava/lang/Object;
.source "APIManager.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/api/APIManager;->b(Ljava/lang/Class;Lcom/moji/api/APIListener;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/lang/Class;

.field final synthetic b:Lcom/moji/api/APIListener;


# direct methods
.method constructor <init>(Ljava/lang/Class;Lcom/moji/api/APIListener;)V
    .locals 0

    .line 400
    iput-object p1, p0, Lcom/moji/api/APIManager$4;->a:Ljava/lang/Class;

    iput-object p2, p0, Lcom/moji/api/APIManager$4;->b:Lcom/moji/api/APIListener;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 3

    .line 403
    iget-object v0, p0, Lcom/moji/api/APIManager$4;->a:Ljava/lang/Class;

    invoke-static {v0}, Lcom/moji/api/APIManager;->b(Ljava/lang/Class;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 404
    iget-object v0, p0, Lcom/moji/api/APIManager$4;->a:Ljava/lang/Class;

    invoke-static {v0}, Lcom/moji/api/util/BundleHolder;->a(Ljava/lang/Class;)Lcom/moji/api/entity/APIBundle;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 406
    invoke-static {}, Landroid/os/Process;->myPid()I

    move-result v1

    iget v2, v0, Lcom/moji/api/entity/APIBundle;->b:I

    if-ne v1, v2, :cond_1

    .line 407
    iget-object v1, p0, Lcom/moji/api/APIManager$4;->b:Lcom/moji/api/APIListener;

    if-eqz v1, :cond_0

    .line 408
    iget-object v1, p0, Lcom/moji/api/APIManager$4;->b:Lcom/moji/api/APIListener;

    iget-object v0, v0, Lcom/moji/api/entity/APIBundle;->a:Ljava/lang/Object;

    invoke-interface {v1, v0}, Lcom/moji/api/APIListener;->a(Ljava/lang/Object;)V

    :cond_0
    return-void

    .line 413
    :cond_1
    iget-object v0, p0, Lcom/moji/api/APIManager$4;->a:Ljava/lang/Class;

    iget-object v1, p0, Lcom/moji/api/APIManager$4;->b:Lcom/moji/api/APIListener;

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Lcom/moji/api/APIManager;->a(Ljava/lang/Class;Lcom/moji/api/APIListener;Z)V

    goto :goto_0

    .line 415
    :cond_2
    iget-object v0, p0, Lcom/moji/api/APIManager$4;->b:Lcom/moji/api/APIListener;

    if-eqz v0, :cond_3

    .line 416
    iget-object v0, p0, Lcom/moji/api/APIManager$4;->b:Lcom/moji/api/APIListener;

    const/4 v1, 0x5

    invoke-interface {v0, v1}, Lcom/moji/api/APIListener;->a(I)V

    :cond_3
    :goto_0
    return-void
.end method
