e.smali

.class public final Lcom/sandboxol/blockymods/view/fragment/tribemute/e;
.super Ljava/lang/Object;
.source "TribeMuteListModel.kt"

# interfaces
.implements Lcom/sandboxol/repository/d/a$a;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/blockymods/view/fragment/tribemute/f;->onLoad(Lcom/sandboxol/common/base/web/OnResponseListener;)V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/sandboxol/blockymods/view/fragment/tribemute/f;

.field final synthetic b:Lcom/sandboxol/common/base/web/OnResponseListener;


# direct methods
.method constructor <init>(Lcom/sandboxol/blockymods/view/fragment/tribemute/f;Lcom/sandboxol/common/base/web/OnResponseListener;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/sandboxol/common/base/web/OnResponseListener;",
            ")V"
        }
    .end annotation

    .line 1
    iput-object p1, p0, Lcom/sandboxol/blockymods/view/fragment/tribemute/e;->a:Lcom/sandboxol/blockymods/view/fragment/tribemute/f;

    iput-object p2, p0, Lcom/sandboxol/blockymods/view/fragment/tribemute/e;->b:Lcom/sandboxol/common/base/web/OnResponseListener;

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

    return-void
.end method


# virtual methods
.method public a(Ljava/util/List;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/sandboxol/greendao/entity/TribeMember;",
            ">;)V"
        }
    .end annotation

    if-eqz p1, :cond_5b

    .line 1
    iget-object v0, p0, Lcom/sandboxol/blockymods/view/fragment/tribemute/e;->a:Lcom/sandboxol/blockymods/view/fragment/tribemute/f;

    invoke-static {v0}, Lcom/sandboxol/blockymods/view/fragment/tribemute/f;->c(Lcom/sandboxol/blockymods/view/fragment/tribemute/f;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 2
    iget-object v0, p0, Lcom/sandboxol/blockymods/view/fragment/tribemute/e;->a:Lcom/sandboxol/blockymods/view/fragment/tribemute/f;

    invoke-static {v0}, Lcom/sandboxol/blockymods/view/fragment/tribemute/f;->c(Lcom/sandboxol/blockymods/view/fragment/tribemute/f;)Ljava/util/List;

    move-result-object v0

    iget-object v1, p0, Lcom/sandboxol/blockymods/view/fragment/tribemute/e;->a:Lcom/sandboxol/blockymods/view/fragment/tribemute/f;

    invoke-static {v1, p1}, Lcom/sandboxol/blockymods/view/fragment/tribemute/f;->a(Lcom/sandboxol/blockymods/view/fragment/tribemute/f;Ljava/util/List;)Ljava/util/List;

    move-result-object p1

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

    .line 3
    iget-object p1, p0, Lcom/sandboxol/blockymods/view/fragment/tribemute/e;->a:Lcom/sandboxol/blockymods/view/fragment/tribemute/f;

    invoke-static {p1}, Lcom/sandboxol/blockymods/view/fragment/tribemute/f;->b(Lcom/sandboxol/blockymods/view/fragment/tribemute/f;)Landroidx/databinding/ObservableField;

    move-result-object p1

    invoke-virtual {p1}, Landroidx/databinding/ObservableField;->get()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/CharSequence;

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_4e

    iget-object p1, p0, Lcom/sandboxol/blockymods/view/fragment/tribemute/e;->a:Lcom/sandboxol/blockymods/view/fragment/tribemute/f;

    invoke-static {p1}, Lcom/sandboxol/blockymods/view/fragment/tribemute/f;->c(Lcom/sandboxol/blockymods/view/fragment/tribemute/f;)Ljava/util/List;

    move-result-object p1

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

    move-result p1

    if-nez p1, :cond_4e

    .line 4
    iget-object p1, p0, Lcom/sandboxol/blockymods/view/fragment/tribemute/e;->b:Lcom/sandboxol/common/base/web/OnResponseListener;

    if-eqz p1, :cond_5b

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/sandboxol/blockymods/view/fragment/tribemute/e;->a:Lcom/sandboxol/blockymods/view/fragment/tribemute/f;

    invoke-static {v1}, Lcom/sandboxol/blockymods/view/fragment/tribemute/f;->a(Lcom/sandboxol/blockymods/view/fragment/tribemute/f;)Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f120dee

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/sandboxol/common/base/web/OnResponseListener;->onError(ILjava/lang/String;)V

    goto :goto_5b

    .line 5
    :cond_4e
    iget-object p1, p0, Lcom/sandboxol/blockymods/view/fragment/tribemute/e;->b:Lcom/sandboxol/common/base/web/OnResponseListener;

    if-eqz p1, :cond_5b

    iget-object v0, p0, Lcom/sandboxol/blockymods/view/fragment/tribemute/e;->a:Lcom/sandboxol/blockymods/view/fragment/tribemute/f;

    invoke-static {v0}, Lcom/sandboxol/blockymods/view/fragment/tribemute/f;->c(Lcom/sandboxol/blockymods/view/fragment/tribemute/f;)Ljava/util/List;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/sandboxol/common/base/web/OnResponseListener;->onSuccess(Ljava/lang/Object;)V

    :cond_5b
    :goto_5b
    return-void
.end method

.method public onError(ILjava/lang/String;)V
    .registers 3

    return-void
.end method