m$1.smali

.class final Lcom/masala/share/proto/puller/m$1;
.super Lcom/masala/share/proto/networkclient/http/f;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/masala/share/proto/puller/m;->a(Lcom/masala/share/proto/p;Ljava/lang/String;Lcom/masala/share/proto/a/e;)V
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/masala/share/proto/networkclient/http/f<",
        "Lcom/masala/share/proto/protocol/an;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic val$listener:Lcom/masala/share/proto/a/e;

.field final synthetic val$params:Lcom/masala/share/proto/p;

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

.field final synthetic val$reportVisitor:Z

.field final synthetic val$req:Lcom/masala/share/proto/protocol/am;

.field final synthetic val$startTs:J


# direct methods
.method constructor <init>(Lcom/masala/share/proto/a/e;Lcom/masala/share/proto/p;Ljava/lang/String;Lcom/masala/share/proto/protocol/am;JZ)V
    .registers 8

    .line 179
    iput-object p1, p0, Lcom/masala/share/proto/puller/m$1;->val$listener:Lcom/masala/share/proto/a/e;

    iput-object p2, p0, Lcom/masala/share/proto/puller/m$1;->val$params:Lcom/masala/share/proto/p;

    iput-object p3, p0, Lcom/masala/share/proto/puller/m$1;->val$refer:Ljava/lang/String;

    iput-object p4, p0, Lcom/masala/share/proto/puller/m$1;->val$req:Lcom/masala/share/proto/protocol/am;

    iput-wide p5, p0, Lcom/masala/share/proto/puller/m$1;->val$startTs:J

    iput-boolean p7, p0, Lcom/masala/share/proto/puller/m$1;->val$reportVisitor:Z

    invoke-direct {p0}, Lcom/masala/share/proto/networkclient/http/f;-><init>()V

    return-void
.end method


# virtual methods
.method public final onFail(Ljava/lang/Throwable;I)V
    .registers 7

    .line 189
    iget-object v0, p0, Lcom/masala/share/proto/puller/m$1;->val$req:Lcom/masala/share/proto/protocol/am;

    iget v0, v0, Lcom/masala/share/proto/protocol/am;->a:I

    const-string v1, "handleGetPopularVideoRes error!"

    invoke-static {v1, v0, p2}, Lcom/masala/share/utils/j;->a(Ljava/lang/String;II)Ljava/lang/String;

    move-result-object v0

    const-string v1, "VideoLet"

    invoke-static {v1, v0, p1}, Lsg/bigo/log/TraceLog;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 190
    iget-boolean p1, p0, Lcom/masala/share/proto/puller/m$1;->val$reportVisitor:Z

    const/4 v0, 0x1

    if-eqz p1, :cond_1b

    .line 191
    sget-object p1, Lcom/masala/share/utils/d/a;->b:Lcom/masala/share/utils/d/a/a;

    iget-object p1, p1, Lcom/masala/share/utils/d/a/a;->f:Lcom/masala/share/utils/d/a/d;

    invoke-virtual {p1, v0}, Lcom/masala/share/utils/d/a/d;->a(Z)V

    .line 193
    :cond_1b
    invoke-static {}, Lcom/masala/share/proto/puller/m;->a()Landroid/os/Handler;

    move-result-object p1

    new-instance v1, Lcom/masala/share/proto/puller/m$1$1;

    invoke-direct {v1, p0, p2}, Lcom/masala/share/proto/puller/m$1$1;-><init>(Lcom/masala/share/proto/puller/m$1;I)V

    invoke-virtual {p1, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 201
    iget-object p1, p0, Lcom/masala/share/proto/puller/m$1;->val$req:Lcom/masala/share/proto/protocol/am;

    const/4 v1, 0x0

    const-wide/16 v2, -0x1

    invoke-static {p1, v1, v2, v3}, Lcom/masala/share/i/a/a;->a(Lsg/bigo/svcapi/IProtocol;Lsg/bigo/svcapi/IProtocol;J)V

    const/16 p1, 0xd

    if-ne p2, p1, :cond_3f

    .line 203
    iget-object p1, p0, Lcom/masala/share/proto/puller/m$1;->val$req:Lcom/masala/share/proto/protocol/am;

    iget p1, p1, Lcom/masala/share/proto/protocol/am;->a:I

    invoke-static {p1, v0}, Lcom/masala/share/stat/m;->a(IB)Lcom/masala/share/stat/m;

    move-result-object p1

    invoke-virtual {p1}, Lcom/masala/share/stat/m;->d()V

    return-void

    .line 205
    :cond_3f
    iget-object p1, p0, Lcom/masala/share/proto/puller/m$1;->val$req:Lcom/masala/share/proto/protocol/am;

    iget p1, p1, Lcom/masala/share/proto/protocol/am;->a:I

    invoke-static {p1, v0}, Lcom/masala/share/stat/m;->a(IB)Lcom/masala/share/stat/m;

    move-result-object p1

    const/4 v0, -0x1

    invoke-virtual {p1, p2, v0}, Lcom/masala/share/stat/m;->a(II)V

    return-void
.end method

.method public final onResponse(Lcom/masala/share/proto/protocol/an;)V
    .registers 7

    .line 182
    iget-object v0, p0, Lcom/masala/share/proto/puller/m$1;->val$listener:Lcom/masala/share/proto/a/e;

    iget-object v1, p0, Lcom/masala/share/proto/puller/m$1;->val$params:Lcom/masala/share/proto/p;

    iget-boolean v1, v1, Lcom/masala/share/proto/p;->l:Z

    iget-object v2, p0, Lcom/masala/share/proto/puller/m$1;->val$params:Lcom/masala/share/proto/p;

    iget-boolean v2, v2, Lcom/masala/share/proto/p;->m:Z

    iget-object v3, p0, Lcom/masala/share/proto/puller/m$1;->val$refer:Ljava/lang/String;

    invoke-static {p1, v0, v1, v2, v3}, Lcom/masala/share/proto/puller/m;->a(Lcom/masala/share/proto/protocol/an;Lcom/masala/share/proto/a/e;ZZLjava/lang/String;)V

    .line 183
    iget-object v0, p0, Lcom/masala/share/proto/puller/m$1;->val$req:Lcom/masala/share/proto/protocol/am;

    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v1

    iget-wide v3, p0, Lcom/masala/share/proto/puller/m$1;->val$startTs:J

    sub-long/2addr v1, v3

    invoke-static {v0, p1, v1, v2}, Lcom/masala/share/i/a/a;->a(Lsg/bigo/svcapi/IProtocol;Lsg/bigo/svcapi/IProtocol;J)V

    .line 184
    iget v0, p1, Lcom/masala/share/proto/protocol/an;->a:I

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/masala/share/stat/m;->a(IB)Lcom/masala/share/stat/m;

    move-result-object v0

    iget v1, p1, Lcom/masala/share/proto/protocol/an;->c:I

    iget-object p1, p1, Lcom/masala/share/proto/protocol/an;->e:Ljava/util/ArrayList;

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p1

    invoke-virtual {v0, v1, p1}, Lcom/masala/share/stat/m;->a(II)V

    return-void
.end method

.method public final bridge synthetic onResponse(Lsg/bigo/svcapi/IProtocol;)V
    .registers 2

    .line 179
    check-cast p1, Lcom/masala/share/proto/protocol/an;

    invoke-virtual {p0, p1}, Lcom/masala/share/proto/puller/m$1;->onResponse(Lcom/masala/share/proto/protocol/an;)V

    return-void
.end method