CustomServiceManager$1.smali

.class Lio/rong/imlib/cs/CustomServiceManager$1;
.super Ljava/lang/Object;
.source "CustomServiceManager.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lio/rong/imlib/cs/CustomServiceManager;->onReceived(Lio/rong/imlib/model/Message;IZI)Z
.end annotation

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


# instance fields
.field final synthetic this$0:Lio/rong/imlib/cs/CustomServiceManager;

.field final synthetic val$code:I

.field final synthetic val$msg:Ljava/lang/String;

.field final synthetic val$profile:Lio/rong/imlib/cs/CustomServiceManager$CustomServiceProfile;


# direct methods
.method constructor <init>(Lio/rong/imlib/cs/CustomServiceManager;Lio/rong/imlib/cs/CustomServiceManager$CustomServiceProfile;ILjava/lang/String;)V
    .registers 5

    .line 1
    iput-object p1, p0, Lio/rong/imlib/cs/CustomServiceManager$1;->this$0:Lio/rong/imlib/cs/CustomServiceManager;

    iput-object p2, p0, Lio/rong/imlib/cs/CustomServiceManager$1;->val$profile:Lio/rong/imlib/cs/CustomServiceManager$CustomServiceProfile;

    iput p3, p0, Lio/rong/imlib/cs/CustomServiceManager$1;->val$code:I

    iput-object p4, p0, Lio/rong/imlib/cs/CustomServiceManager$1;->val$msg:Ljava/lang/String;

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

    return-void
.end method


# virtual methods
.method public run()V
    .registers 4

    .line 1
    iget-object v0, p0, Lio/rong/imlib/cs/CustomServiceManager$1;->val$profile:Lio/rong/imlib/cs/CustomServiceManager$CustomServiceProfile;

    iget-object v0, v0, Lio/rong/imlib/cs/CustomServiceManager$CustomServiceProfile;->customServiceListener:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lio/rong/imlib/ICustomServiceListener;

    if-eqz v0, :cond_22

    .line 2
    iget v1, p0, Lio/rong/imlib/cs/CustomServiceManager$1;->val$code:I

    iget-object v2, p0, Lio/rong/imlib/cs/CustomServiceManager$1;->val$msg:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_1d

    iget-object v2, p0, Lio/rong/imlib/cs/CustomServiceManager$1;->this$0:Lio/rong/imlib/cs/CustomServiceManager;

    # getter for: Lio/rong/imlib/cs/CustomServiceManager;->failureStr:Ljava/lang/String;
    invoke-static {v2}, Lio/rong/imlib/cs/CustomServiceManager;->access$000(Lio/rong/imlib/cs/CustomServiceManager;)Ljava/lang/String;

    move-result-object v2

    goto :goto_1f

    :cond_1d
    iget-object v2, p0, Lio/rong/imlib/cs/CustomServiceManager$1;->val$msg:Ljava/lang/String;

    :goto_1f
    invoke-interface {v0, v1, v2}, Lio/rong/imlib/ICustomServiceListener;->onError(ILjava/lang/String;)V

    :cond_22
    return-void
.end method