a$d.smali

.class public final Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;
.super Lsg/bigo/svcapi/RequestCallback;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a;->a(Lcom/masala/share/proto/model/VideoCommentItem;)Landroidx/lifecycle/LiveData;
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lsg/bigo/svcapi/RequestCallback<",
        "Lcom/masala/share/proto/protocol/bt;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic $item:Lcom/masala/share/proto/model/VideoCommentItem;

.field final synthetic $liveData:Landroidx/lifecycle/MutableLiveData;

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

.field final synthetic this$0:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a;


# direct methods
.method constructor <init>(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a;Lcom/masala/share/proto/model/VideoCommentItem;Landroidx/lifecycle/MutableLiveData;Lcom/masala/share/proto/protocol/bs;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/masala/share/proto/model/VideoCommentItem;",
            "Landroidx/lifecycle/MutableLiveData;",
            "Lcom/masala/share/proto/protocol/bs;",
            ")V"
        }
    .end annotation

    .line 253
    iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->this$0:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a;

    iput-object p2, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->$item:Lcom/masala/share/proto/model/VideoCommentItem;

    iput-object p3, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->$liveData:Landroidx/lifecycle/MutableLiveData;

    iput-object p4, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->$req:Lcom/masala/share/proto/protocol/bs;

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

    return-void
.end method


# virtual methods
.method public final onResponse(Lcom/masala/share/proto/protocol/bt;)V
    .registers 7

    .line 255
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->this$0:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a;

    .line 1032
    iget-object v0, v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a;->a:Ljava/lang/String;

    .line 255
    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    const-string v2, "publishComment res="

    invoke-virtual {v2, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 256
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->$item:Lcom/masala/share/proto/model/VideoCommentItem;

    const/4 v1, 0x0

    if-eqz p1, :cond_1c

    iget v2, p1, Lcom/masala/share/proto/protocol/bt;->b:I

    if-nez v2, :cond_1c

    const/4 v2, 0x0

    goto :goto_1d

    :cond_1c
    const/4 v2, 0x2

    :goto_1d
    iput v2, v0, Lcom/masala/share/proto/model/VideoCommentItem;->sendStatus:I

    .line 257
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->$item:Lcom/masala/share/proto/model/VideoCommentItem;

    if-eqz p1, :cond_25

    iget v1, p1, Lcom/masala/share/proto/protocol/bt;->b:I

    :cond_25
    iput v1, v0, Lcom/masala/share/proto/model/VideoCommentItem;->failCode:I

    .line 258
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->$item:Lcom/masala/share/proto/model/VideoCommentItem;

    if-eqz p1, :cond_2e

    iget-wide v1, p1, Lcom/masala/share/proto/protocol/bt;->c:J

    goto :goto_30

    :cond_2e
    const-wide/16 v1, 0x0

    :goto_30
    iput-wide v1, v0, Lcom/masala/share/proto/model/VideoCommentItem;->commentId:J

    .line 259
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->$liveData:Landroidx/lifecycle/MutableLiveData;

    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->$item:Lcom/masala/share/proto/model/VideoCommentItem;

    invoke-virtual {v0, v1}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V

    if-eqz p1, :cond_5d

    .line 260
    iget v0, p1, Lcom/masala/share/proto/protocol/bt;->b:I

    if-nez v0, :cond_5d

    .line 261
    invoke-static {}, Lcom/masala/share/eventbus/b;->a()Lcom/masala/share/eventbus/c;

    move-result-object v0

    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    .line 262
    iget-object v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->$item:Lcom/masala/share/proto/model/VideoCommentItem;

    iget-wide v2, v2, Lcom/masala/share/proto/model/VideoCommentItem;->postId:J

    const-string v4, "key_video_id"

    invoke-virtual {v1, v4, v2, v3}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V

    .line 263
    iget-wide v2, p1, Lcom/masala/share/proto/protocol/bt;->c:J

    const-string p1, "key_comment_id"

    invoke-virtual {v1, p1, v2, v3}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V

    const-string p1, "local_event_publish_comment"

    .line 261
    invoke-interface {v0, p1, v1}, Lcom/masala/share/eventbus/c;->a(Ljava/lang/String;Landroid/os/Bundle;)V

    :cond_5d
    return-void
.end method

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

    .line 253
    check-cast p1, Lcom/masala/share/proto/protocol/bt;

    invoke-virtual {p0, p1}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->onResponse(Lcom/masala/share/proto/protocol/bt;)V

    return-void
.end method

.method public final onTimeout()V
    .registers 4

    .line 269
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->this$0:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a;

    .line 2032
    iget-object v0, v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a;->a:Ljava/lang/String;

    .line 269
    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->$req:Lcom/masala/share/proto/protocol/bs;

    iget v1, v1, Lcom/masala/share/proto/protocol/bs;->a:I

    const-string v2, "publishComment timeout! "

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

    move-result-object v1

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

    .line 270
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->$item:Lcom/masala/share/proto/model/VideoCommentItem;

    const/4 v1, 0x2

    iput v1, v0, Lcom/masala/share/proto/model/VideoCommentItem;->sendStatus:I

    .line 271
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->$item:Lcom/masala/share/proto/model/VideoCommentItem;

    const/16 v1, 0xd

    iput v1, v0, Lcom/masala/share/proto/model/VideoCommentItem;->failCode:I

    .line 272
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->$liveData:Landroidx/lifecycle/MutableLiveData;

    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/a/a$d;->$item:Lcom/masala/share/proto/model/VideoCommentItem;

    invoke-virtual {v0, v1}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V

    return-void
.end method