CommunityNoticesViewModel$a.smali

.class final Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;
.super Lkotlin/c/b/a/j;
.source "SourceFile"

# interfaces
.implements Lkotlin/f/a/b;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;->b()V
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lkotlin/c/b/a/j;",
        "Lkotlin/f/a/b<",
        "Lkotlin/c/c<",
        "-",
        "Lkotlin/w;",
        ">;",
        "Ljava/lang/Object;",
        ">;"
    }
.end annotation

.annotation runtime Lkotlin/c/b/a/f;
    b = "CommunityNoticesViewModel.kt"
    c = {
        0x84
    }
    d = "invokeSuspend"
    e = "com.imo.android.imoim.community.notice.CommunityNoticesViewModel$getReadMoreActivity$1"
.end annotation


# instance fields
.field a:I

.field final synthetic b:Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;


# direct methods
.method constructor <init>(Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;Lkotlin/c/c;)V
    .registers 3

    iput-object p1, p0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->b:Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;

    const/4 p1, 0x1

    invoke-direct {p0, p1, p2}, Lkotlin/c/b/a/j;-><init>(ILkotlin/c/c;)V

    return-void
.end method


# virtual methods
.method public final create(Lkotlin/c/c;)Lkotlin/c/c;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lkotlin/c/c<",
            "*>;)",
            "Lkotlin/c/c<",
            "Lkotlin/w;",
            ">;"
        }
    .end annotation

    const-string v0, "completion"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;

    iget-object v1, p0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->b:Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;

    invoke-direct {v0, v1, p1}, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;-><init>(Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;Lkotlin/c/c;)V

    return-object v0
.end method

.method public final invoke(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 3

    check-cast p1, Lkotlin/c/c;

    invoke-virtual {p0, p1}, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->create(Lkotlin/c/c;)Lkotlin/c/c;

    move-result-object p1

    check-cast p1, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;

    sget-object v0, Lkotlin/w;->a:Lkotlin/w;

    invoke-virtual {p1, v0}, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    return-object p1
.end method

.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 7

    .line 1054
    sget-object v0, Lkotlin/c/a/a;->COROUTINE_SUSPENDED:Lkotlin/c/a/a;

    .line 131
    iget v1, p0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->a:I

    const/4 v2, 0x1

    if-eqz v1, :cond_15

    if-ne v1, v2, :cond_d

    invoke-static {p1}, Lkotlin/o;->a(Ljava/lang/Object;)V

    goto :goto_2d

    .line 157
    :cond_d
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string v0, "call to \'resume\' before \'invoke\' with coroutine"

    invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 131
    :cond_15
    invoke-static {p1}, Lkotlin/o;->a(Ljava/lang/Object;)V

    .line 132
    iget-object p1, p0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->b:Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;

    .line 2021
    iget-object p1, p1, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;->l:Lcom/imo/android/imoim/community/notice/c;

    .line 132
    iget-object v1, p0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->b:Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;

    invoke-static {v1}, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;->b(Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;)Ljava/lang/String;

    move-result-object v1

    iput v2, p0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->a:I

    const-string v3, "activity"

    invoke-virtual {p1, v1, v3, p0}, Lcom/imo/android/imoim/community/notice/c;->a(Ljava/lang/String;Ljava/lang/String;Lkotlin/c/c;)Ljava/lang/Object;

    move-result-object p1

    if-ne p1, v0, :cond_2d

    return-object v0

    .line 131
    :cond_2d
    :goto_2d
    check-cast p1, Lcom/imo/android/imoim/managers/br;

    .line 133
    instance-of v0, p1, Lcom/imo/android/imoim/managers/br$b;

    const/4 v1, 0x0

    if-eqz v0, :cond_c2

    .line 134
    check-cast p1, Lcom/imo/android/imoim/managers/br$b;

    .line 3008
    iget-object v0, p1, Lcom/imo/android/imoim/managers/br$b;->a:Ljava/lang/Object;

    .line 134
    check-cast v0, Lcom/imo/android/imoim/community/notice/data/c;

    if-eqz v0, :cond_7a

    .line 4008
    iget-object v0, v0, Lcom/imo/android/imoim/community/notice/data/c;->b:Ljava/util/ArrayList;

    if-eqz v0, :cond_7a

    .line 135
    iget-object v3, p0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->b:Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;

    invoke-static {v3}, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;->e(Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;)Ljava/util/List;

    move-result-object v3

    if-eqz v3, :cond_71

    .line 136
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    .line 137
    iget-object v4, p0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->b:Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;

    invoke-static {v4}, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;->e(Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;)Ljava/util/List;

    move-result-object v4

    if-nez v4, :cond_58

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_58
    check-cast v4, Ljava/util/Collection;

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 138
    check-cast v0, Ljava/util/Collection;

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

    .line 139
    iget-object v0, p0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->b:Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;

    invoke-static {v0}, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;->g(Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;)Landroidx/lifecycle/MutableLiveData;

    move-result-object v0

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

    .line 140
    iget-object v0, p0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->b:Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;

    invoke-static {v0}, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;->f(Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;)V

    goto :goto_7a

    .line 142
    :cond_71
    iget-object v3, p0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->b:Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;

    invoke-static {v3}, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;->g(Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;)Landroidx/lifecycle/MutableLiveData;

    move-result-object v3

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

    .line 145
    :cond_7a
    :goto_7a
    iget-object v0, p0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->b:Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;

    .line 5008
    iget-object p1, p1, Lcom/imo/android/imoim/managers/br$b;->a:Ljava/lang/Object;

    .line 145
    check-cast p1, Lcom/imo/android/imoim/community/notice/data/c;

    const/4 v3, 0x0

    if-eqz p1, :cond_86

    .line 6006
    iget-object p1, p1, Lcom/imo/android/imoim/community/notice/data/c;->a:Ljava/lang/String;

    goto :goto_87

    :cond_86
    move-object p1, v3

    .line 145
    :goto_87
    invoke-static {v0, p1}, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;->a(Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;Ljava/lang/String;)V

    .line 146
    iget-object p1, p0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->b:Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;

    invoke-static {p1}, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;->b(Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;)Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_93

    goto :goto_94

    :cond_93
    const/4 v2, 0x0

    :goto_94
    invoke-static {p1, v2}, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;->a(Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;Z)V

    .line 147
    iget-object p1, p0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->b:Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;

    invoke-static {p1}, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;->b(Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;)Ljava/lang/String;

    move-result-object p1

    const/4 v0, 0x2

    if-nez p1, :cond_b1

    .line 148
    iget-object p1, p0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->b:Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;

    invoke-static {p1}, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;->h(Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;)Landroidx/lifecycle/MutableLiveData;

    move-result-object p1

    new-instance v1, Lcom/imo/android/imoim/community/community/data/bean/o;

    sget-object v2, Lcom/imo/android/imoim/community/community/data/bean/q;->NO_DATA:Lcom/imo/android/imoim/community/community/data/bean/q;

    invoke-direct {v1, v2, v3, v0, v3}, Lcom/imo/android/imoim/community/community/data/bean/o;-><init>(Lcom/imo/android/imoim/community/community/data/bean/q;Ljava/lang/String;ILkotlin/f/b/j;)V

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

    goto :goto_db

    .line 150
    :cond_b1
    iget-object p1, p0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->b:Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;

    invoke-static {p1}, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;->h(Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;)Landroidx/lifecycle/MutableLiveData;

    move-result-object p1

    new-instance v1, Lcom/imo/android/imoim/community/community/data/bean/o;

    sget-object v2, Lcom/imo/android/imoim/community/community/data/bean/q;->FAILURE:Lcom/imo/android/imoim/community/community/data/bean/q;

    invoke-direct {v1, v2, v3, v0, v3}, Lcom/imo/android/imoim/community/community/data/bean/o;-><init>(Lcom/imo/android/imoim/community/community/data/bean/q;Ljava/lang/String;ILkotlin/f/b/j;)V

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

    goto :goto_db

    .line 154
    :cond_c2
    iget-object p1, p0, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel$a;->b:Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;

    invoke-static {p1}, Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;->h(Lcom/imo/android/imoim/community/notice/CommunityNoticesViewModel;)Landroidx/lifecycle/MutableLiveData;

    move-result-object p1

    new-instance v0, Lcom/imo/android/imoim/community/community/data/bean/o;

    sget-object v2, Lcom/imo/android/imoim/community/community/data/bean/q;->EXCEPTION:Lcom/imo/android/imoim/community/community/data/bean/q;

    const v3, 0x7f0f061e

    new-array v1, v1, [Ljava/lang/Object;

    invoke-static {v3, v1}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v2, v1}, Lcom/imo/android/imoim/community/community/data/bean/o;-><init>(Lcom/imo/android/imoim/community/community/data/bean/q;Ljava/lang/String;)V

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

    .line 157
    :goto_db
    sget-object p1, Lkotlin/w;->a:Lkotlin/w;

    return-object p1
.end method