e$1.smali

.class final Lcom/masala/share/proto/networkclient/http/e$1;
.super Lsg/bigo/svcapi/RequestCallback;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/masala/share/proto/networkclient/http/e;->a(Lcom/masala/share/proto/networkclient/http/e$a;Lcom/masala/share/proto/networkclient/http/f;)V
.end annotation

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


# instance fields
.field final synthetic this$0:Lcom/masala/share/proto/networkclient/http/e;

.field final synthetic val$callback:Lcom/masala/share/proto/networkclient/http/f;

.field final synthetic val$requestModel:Lcom/masala/share/proto/networkclient/http/e$a;


# direct methods
.method constructor <init>(Lcom/masala/share/proto/networkclient/http/e;Lcom/masala/share/proto/networkclient/http/f;Lcom/masala/share/proto/networkclient/http/e$a;)V
    .registers 4

    .line 146
    iput-object p1, p0, Lcom/masala/share/proto/networkclient/http/e$1;->this$0:Lcom/masala/share/proto/networkclient/http/e;

    iput-object p2, p0, Lcom/masala/share/proto/networkclient/http/e$1;->val$callback:Lcom/masala/share/proto/networkclient/http/f;

    iput-object p3, p0, Lcom/masala/share/proto/networkclient/http/e$1;->val$requestModel:Lcom/masala/share/proto/networkclient/http/e$a;

    invoke-direct {p0}, Lsg/bigo/svcapi/RequestCallback;-><init>()V

    return-void
.end method


# virtual methods
.method public final createNewInstance()Lsg/bigo/svcapi/IProtocol;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()TV;"
        }
    .end annotation

    .line 150
    iget-object v0, p0, Lcom/masala/share/proto/networkclient/http/e$1;->val$callback:Lcom/masala/share/proto/networkclient/http/f;

    invoke-virtual {v0}, Lcom/masala/share/proto/networkclient/http/f;->getNewInstance()Lsg/bigo/svcapi/IProtocol;

    move-result-object v0

    return-object v0
.end method

.method public final onError(I)V
    .registers 6

    .line 185
    iget-object v0, p0, Lcom/masala/share/proto/networkclient/http/e$1;->this$0:Lcom/masala/share/proto/networkclient/http/e;

    iget-object v1, p0, Lcom/masala/share/proto/networkclient/http/e$1;->val$requestModel:Lcom/masala/share/proto/networkclient/http/e$a;

    new-instance v2, Ljava/io/IOException;

    const-string v3, "linkd request failed"

    invoke-direct {v2, v3}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    iget-object v3, p0, Lcom/masala/share/proto/networkclient/http/e$1;->val$callback:Lcom/masala/share/proto/networkclient/http/f;

    invoke-static {v0, v1, v2, p1, v3}, Lcom/masala/share/proto/networkclient/http/e;->a(Lcom/masala/share/proto/networkclient/http/e;Lcom/masala/share/proto/networkclient/http/e$a;Ljava/lang/Throwable;ILcom/masala/share/proto/networkclient/http/f;)V

    return-void
.end method

.method public final onPartialResponse(BLjava/nio/ByteBuffer;IZ)V
    .registers 5

    .line 159
    iget-object p1, p0, Lcom/masala/share/proto/networkclient/http/e$1;->val$callback:Lcom/masala/share/proto/networkclient/http/f;

    if-eqz p1, :cond_1b

    if-eqz p2, :cond_1b

    .line 161
    :try_start_6
    invoke-virtual {p1}, Lcom/masala/share/proto/networkclient/http/f;->getNewInstance()Lsg/bigo/svcapi/IProtocol;

    move-result-object p1

    .line 162
    invoke-interface {p1, p2}, Lsg/bigo/svcapi/IProtocol;->unmarshall(Ljava/nio/ByteBuffer;)V

    .line 163
    iget-object p2, p0, Lcom/masala/share/proto/networkclient/http/e$1;->val$callback:Lcom/masala/share/proto/networkclient/http/f;

    invoke-virtual {p2, p1}, Lcom/masala/share/proto/networkclient/http/f;->onResponse(Lsg/bigo/svcapi/IProtocol;)V
    :try_end_12
    .catch Lsg/bigo/svcapi/proto/InvalidProtocolData; {:try_start_6 .. :try_end_12} :catch_13

    return-void

    :catch_13
    move-exception p1

    .line 166
    iget-object p2, p0, Lcom/masala/share/proto/networkclient/http/e$1;->val$callback:Lcom/masala/share/proto/networkclient/http/f;

    const/16 p3, 0xf

    invoke-virtual {p2, p1, p3}, Lcom/masala/share/proto/networkclient/http/f;->onFail(Ljava/lang/Throwable;I)V

    :cond_1b
    return-void
.end method

.method public final onResponse(Lsg/bigo/svcapi/IProtocol;)V
    .registers 3

    .line 173
    iget-object v0, p0, Lcom/masala/share/proto/networkclient/http/e$1;->val$callback:Lcom/masala/share/proto/networkclient/http/f;

    invoke-virtual {v0, p1}, Lcom/masala/share/proto/networkclient/http/f;->onResponse(Lsg/bigo/svcapi/IProtocol;)V

    return-void
.end method

.method public final onTimeout()V
    .registers 6

    .line 179
    iget-object v0, p0, Lcom/masala/share/proto/networkclient/http/e$1;->this$0:Lcom/masala/share/proto/networkclient/http/e;

    iget-object v1, p0, Lcom/masala/share/proto/networkclient/http/e$1;->val$requestModel:Lcom/masala/share/proto/networkclient/http/e$a;

    new-instance v2, Ljava/io/IOException;

    const-string v3, "linkd request failed"

    invoke-direct {v2, v3}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    iget-object v3, p0, Lcom/masala/share/proto/networkclient/http/e$1;->val$callback:Lcom/masala/share/proto/networkclient/http/f;

    const/16 v4, 0xd

    invoke-static {v0, v1, v2, v4, v3}, Lcom/masala/share/proto/networkclient/http/e;->a(Lcom/masala/share/proto/networkclient/http/e;Lcom/masala/share/proto/networkclient/http/e$a;Ljava/lang/Throwable;ILcom/masala/share/proto/networkclient/http/f;)V

    return-void
.end method