.class public final Ls4/g$b;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lya/d;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Ls4/g;->h(Z)V
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lya/d<",
        "Lcom/floydwiz/gamingcenter/models/network/ChatResponse;",
        ">;"
    }
.end annotation


# instance fields
.field public final synthetic a:Ls4/g;


# direct methods
.method public constructor <init>(Ls4/g;)V
    .registers 2

    iput-object p1, p0, Ls4/g$b;->a:Ls4/g;

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

    return-void
.end method


# virtual methods
.method public a(Lya/b;Ljava/lang/Throwable;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lya/b<",
            "Lcom/floydwiz/gamingcenter/models/network/ChatResponse;",
            ">;",
            "Ljava/lang/Throwable;",
            ")V"
        }
    .end annotation

    const-string v0, "call"

    invoke-static {p1, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    const-string p1, "t"

    invoke-static {p2, p1}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p2}, Ljava/lang/Throwable;->printStackTrace()V

    iget-object p1, p0, Ls4/g$b;->a:Ls4/g;

    .line 1
    iget-object p1, p1, Ls4/g;->g:Landroidx/lifecycle/t;

    .line 2
    sget-object p2, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;

    invoke-virtual {p1, p2}, Landroidx/lifecycle/t;->k(Ljava/lang/Object;)V

    return-void
.end method

.method public b(Lya/b;Lya/z;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lya/b<",
            "Lcom/floydwiz/gamingcenter/models/network/ChatResponse;",
            ">;",
            "Lya/z<",
            "Lcom/floydwiz/gamingcenter/models/network/ChatResponse;",
            ">;)V"
        }
    .end annotation

    const-string v0, "call"

    invoke-static {p1, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    const-string p1, "response"

    invoke-static {p2, p1}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    .line 1
    iget-object p1, p2, Lya/z;->b:Ljava/lang/Object;

    .line 2
    check-cast p1, Lcom/floydwiz/gamingcenter/models/network/ChatResponse;

    if-nez p1, :cond_11

    goto :goto_56

    :cond_11
    iget-object p2, p0, Ls4/g$b;->a:Ls4/g;

    invoke-virtual {p1}, Lcom/floydwiz/gamingcenter/models/network/ChatResponse;->getMessages()Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_22

    invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_20

    goto :goto_22

    :cond_20
    const/4 v0, 0x0

    goto :goto_23

    :cond_22
    :goto_22
    const/4 v0, 0x1

    :goto_23
    if-nez v0, :cond_56

    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v1, "debugchat history fetched"

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V

    .line 3
    iget-object v0, p2, Ls4/g;->e:Lj4/d;

    .line 4
    iget-object v0, v0, Lj4/d;->c:Ljava/util/ArrayList;

    .line 5
    invoke-virtual {p1}, Lcom/floydwiz/gamingcenter/models/network/ChatResponse;->getMessages()Ljava/util/ArrayList;

    move-result-object v1

    if-eqz v1, :cond_37

    goto :goto_39

    :cond_37
    sget-object v1, Lz8/k;->r:Lz8/k;

    :goto_39
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 6
    iget-object p2, p2, Ls4/g;->e:Lj4/d;

    .line 7
    iget-object v0, p2, Lj4/d;->c:Ljava/util/ArrayList;

    .line 8
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    invoke-virtual {p1}, Lcom/floydwiz/gamingcenter/models/network/ChatResponse;->getMessages()Ljava/util/ArrayList;

    move-result-object p1

    if-eqz p1, :cond_4b

    goto :goto_4d

    :cond_4b
    sget-object p1, Lz8/k;->r:Lz8/k;

    :goto_4d
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    .line 9
    iget-object p2, p2, Landroidx/recyclerview/widget/RecyclerView$e;->a:Landroidx/recyclerview/widget/RecyclerView$f;

    invoke-virtual {p2, v0, p1}, Landroidx/recyclerview/widget/RecyclerView$f;->c(II)V

    :cond_56
    :goto_56
    return-void
.end method
