CustomServiceManager$17.smali

.class Lio/rong/imlib/cs/CustomServiceManager$17;
.super Lio/rong/imlib/ISendMessageCallback$Stub;
.source "CustomServiceManager.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lio/rong/imlib/cs/CustomServiceManager;->startCustomService(Ljava/lang/String;Lio/rong/imlib/ICustomServiceListener;Lio/rong/imlib/model/CSCustomServiceInfo;)V
.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$kefuId:Ljava/lang/String;


# direct methods
.method constructor <init>(Lio/rong/imlib/cs/CustomServiceManager;Ljava/lang/String;)V
    .registers 3

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

    iput-object p2, p0, Lio/rong/imlib/cs/CustomServiceManager$17;->val$kefuId:Ljava/lang/String;

    invoke-direct {p0}, Lio/rong/imlib/ISendMessageCallback$Stub;-><init>()V

    return-void
.end method


# virtual methods
.method public onAttached(Lio/rong/imlib/model/Message;)V
    .registers 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    return-void
.end method

.method public onError(Lio/rong/imlib/model/Message;I)V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

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

    # getter for: Lio/rong/imlib/cs/CustomServiceManager;->customServiceCache:Ljava/util/HashMap;
    invoke-static {p1}, Lio/rong/imlib/cs/CustomServiceManager;->access$500(Lio/rong/imlib/cs/CustomServiceManager;)Ljava/util/HashMap;

    move-result-object p1

    iget-object v0, p0, Lio/rong/imlib/cs/CustomServiceManager$17;->val$kefuId:Ljava/lang/String;

    invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lio/rong/imlib/cs/CustomServiceManager$CustomServiceProfile;

    if-eqz p1, :cond_23

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

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

    move-result-object p1

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

    if-eqz p1, :cond_23

    .line 3
    iget-object v0, p0, Lio/rong/imlib/cs/CustomServiceManager$17;->this$0:Lio/rong/imlib/cs/CustomServiceManager;

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

    move-result-object v0

    invoke-interface {p1, p2, v0}, Lio/rong/imlib/ICustomServiceListener;->onError(ILjava/lang/String;)V

    :cond_23
    return-void
.end method

.method public onSuccess(Lio/rong/imlib/model/Message;)V
    .registers 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lio/rong/imlib/cs/CustomServiceManager$17;->this$0:Lio/rong/imlib/cs/CustomServiceManager;

    # getter for: Lio/rong/imlib/cs/CustomServiceManager;->customServiceCache:Ljava/util/HashMap;
    invoke-static {v0}, Lio/rong/imlib/cs/CustomServiceManager;->access$500(Lio/rong/imlib/cs/CustomServiceManager;)Ljava/util/HashMap;

    move-result-object v0

    iget-object v1, p0, Lio/rong/imlib/cs/CustomServiceManager$17;->val$kefuId:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lio/rong/imlib/cs/CustomServiceManager$CustomServiceProfile;

    if-eqz v0, :cond_16

    .line 2
    invoke-virtual {p1}, Lio/rong/imlib/model/Message;->getSentTime()J

    move-result-wide v1

    iput-wide v1, v0, Lio/rong/imlib/cs/CustomServiceManager$CustomServiceProfile;->time:J

    :cond_16
    return-void
.end method