HotRecommendEntryVM.smali

.class public final Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;
.super Landroidx/lifecycle/ViewModel;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$a;
    }
.end annotation


# static fields
.field static final synthetic a:[Lkotlin/k/g;

.field public static final d:Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$a;

.field private static final i:Lkotlin/f;

.field private static final j:Lkotlin/f;


# instance fields
.field public final b:I

.field public c:Ljava/lang/Integer;

.field private final e:Lkotlin/f;

.field private final f:Lkotlin/f;

.field private g:Lcom/imo/android/imoim/feeds/ui/recommend/a/b;

.field private final h:Landroidx/lifecycle/Observer;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/Observer<",
            "Ljava/util/List<",
            "Lcom/masala/share/database/b/a;",
            ">;>;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .registers 6

    const-class v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;

    const/4 v1, 0x2

    new-array v1, v1, [Lkotlin/k/g;

    new-instance v2, Lkotlin/f/b/z;

    invoke-static {v0}, Lkotlin/f/b/ab;->a(Ljava/lang/Class;)Lkotlin/k/b;

    move-result-object v3

    const-string v4, "recommendFollowStat"

    const-string v5, "getRecommendFollowStat()Lcom/masala/share/stat/RecommendFollowStat;"

    invoke-direct {v2, v3, v4, v5}, Lkotlin/f/b/z;-><init>(Lkotlin/k/c;Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {v2}, Lkotlin/f/b/ab;->a(Lkotlin/f/b/y;)Lkotlin/k/j;

    move-result-object v2

    check-cast v2, Lkotlin/k/g;

    const/4 v3, 0x0

    aput-object v2, v1, v3

    new-instance v2, Lkotlin/f/b/z;

    invoke-static {v0}, Lkotlin/f/b/ab;->a(Ljava/lang/Class;)Lkotlin/k/b;

    move-result-object v0

    const-string v3, "hasEntry"

    const-string v4, "getHasEntry()Z"

    invoke-direct {v2, v0, v3, v4}, Lkotlin/f/b/z;-><init>(Lkotlin/k/c;Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {v2}, Lkotlin/f/b/ab;->a(Lkotlin/f/b/y;)Lkotlin/k/j;

    move-result-object v0

    check-cast v0, Lkotlin/k/g;

    const/4 v2, 0x1

    aput-object v0, v1, v2

    sput-object v1, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->a:[Lkotlin/k/g;

    new-instance v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$a;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$a;-><init>(Lkotlin/f/b/j;)V

    sput-object v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->d:Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$a;

    .line 25
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$c;->a:Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$c;

    check-cast v0, Lkotlin/f/a/a;

    invoke-static {v0}, Lkotlin/g;->a(Lkotlin/f/a/a;)Lkotlin/f;

    move-result-object v0

    sput-object v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->i:Lkotlin/f;

    .line 28
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$b;->a:Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$b;

    check-cast v0, Lkotlin/f/a/a;

    invoke-static {v0}, Lkotlin/g;->a(Lkotlin/f/a/a;)Lkotlin/f;

    move-result-object v0

    sput-object v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->j:Lkotlin/f;

    return-void
.end method

.method public constructor <init>()V
    .registers 3

    .line 23
    invoke-direct {p0}, Landroidx/lifecycle/ViewModel;-><init>()V

    const/4 v0, 0x1

    .line 33
    iput v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->b:I

    .line 34
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$g;->a:Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$g;

    check-cast v0, Lkotlin/f/a/a;

    invoke-static {v0}, Lkotlin/g;->a(Lkotlin/f/a/a;)Lkotlin/f;

    move-result-object v0

    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->e:Lkotlin/f;

    .line 41
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$f;->a:Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$f;

    check-cast v0, Lkotlin/f/a/a;

    invoke-static {v0}, Lkotlin/g;->a(Lkotlin/f/a/a;)Lkotlin/f;

    move-result-object v0

    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->f:Lkotlin/f;

    .line 45
    new-instance v0, Lcom/imo/android/imoim/feeds/ui/recommend/a/a;

    invoke-direct {v0}, Lcom/imo/android/imoim/feeds/ui/recommend/a/a;-><init>()V

    check-cast v0, Lcom/imo/android/imoim/feeds/ui/recommend/a/b;

    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->g:Lcom/imo/android/imoim/feeds/ui/recommend/a/b;

    .line 46
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$e;->a:Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$e;

    check-cast v0, Landroidx/lifecycle/Observer;

    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->h:Landroidx/lifecycle/Observer;

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

    move-result-object v0

    const-string v1, "NewFollowCache.getInstance()"

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

    .line 2172
    iget-object v0, v0, Lcom/masala/share/b/a;->a:Landroidx/lifecycle/MediatorLiveData;

    .line 69
    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->h:Landroidx/lifecycle/Observer;

    invoke-virtual {v0, v1}, Landroidx/lifecycle/LiveData;->observeForever(Landroidx/lifecycle/Observer;)V

    return-void
.end method

.method public static a(Lcom/masala/share/proto/user/RecUserInfo;)V
    .registers 4

    const-string v0, "userInfo"

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

    .line 91
    iget v0, p0, Lcom/masala/share/proto/user/RecUserInfo;->d:I

    int-to-byte v0, v0

    const/4 v1, 0x1

    if-eq v0, v1, :cond_18

    const/4 v2, 0x3

    if-eq v0, v2, :cond_18

    .line 97
    iget v0, p0, Lcom/masala/share/proto/user/RecUserInfo;->d:I

    int-to-byte v0, v0

    invoke-static {v0, v1}, Lcom/imo/android/imoim/feeds/ui/widget/followbutton/AbsFollowButton;->a(BZ)B

    move-result v0

    iput v0, p0, Lcom/masala/share/proto/user/RecUserInfo;->d:I

    return-void

    .line 94
    :cond_18
    iget v0, p0, Lcom/masala/share/proto/user/RecUserInfo;->d:I

    int-to-byte v0, v0

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/imo/android/imoim/feeds/ui/widget/followbutton/AbsFollowButton;->a(BZ)B

    move-result v0

    iput v0, p0, Lcom/masala/share/proto/user/RecUserInfo;->d:I

    return-void
.end method

.method public static final synthetic c()Lkotlin/f;
    .registers 1

    .line 23
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->i:Lkotlin/f;

    return-object v0
.end method

.method public static final synthetic d()Lkotlin/f;
    .registers 1

    .line 23
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->j:Lkotlin/f;

    return-object v0
.end method

.method private final e()Z
    .registers 2

    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->f:Lkotlin/f;

    invoke-interface {v0}, Lkotlin/f;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    return v0
.end method


# virtual methods
.method public final a()Lcom/masala/share/stat/t;
    .registers 2

    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->e:Lkotlin/f;

    invoke-interface {v0}, Lkotlin/f;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/masala/share/stat/t;

    return-object v0
.end method

.method public final b()V
    .registers 4

    .line 78
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->e()Z

    move-result v0

    if-eqz v0, :cond_10

    .line 79
    iget v0, p0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->b:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_d

    const/4 v0, 0x3

    goto :goto_11

    :cond_d
    const/16 v0, 0x14

    goto :goto_11

    :cond_10
    const/4 v0, 0x0

    .line 83
    :goto_11
    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->g:Lcom/imo/android/imoim/feeds/ui/recommend/a/b;

    invoke-interface {v1, v0}, Lcom/imo/android/imoim/feeds/ui/recommend/a/b;->a(I)Landroidx/lifecycle/LiveData;

    move-result-object v0

    .line 84
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$a;->b()Landroidx/lifecycle/MediatorLiveData;

    move-result-object v1

    new-instance v2, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$d;

    invoke-direct {v2, v0}, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM$d;-><init>(Landroidx/lifecycle/LiveData;)V

    check-cast v2, Landroidx/lifecycle/Observer;

    invoke-virtual {v1, v0, v2}, Landroidx/lifecycle/MediatorLiveData;->addSource(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V

    return-void
.end method

.method public final onCleared()V
    .registers 3

    .line 73
    invoke-super {p0}, Landroidx/lifecycle/ViewModel;->onCleared()V

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

    move-result-object v0

    const-string v1, "NewFollowCache.getInstance()"

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

    .line 1172
    iget-object v0, v0, Lcom/masala/share/b/a;->a:Landroidx/lifecycle/MediatorLiveData;

    .line 74
    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/recommend/viewmodel/HotRecommendEntryVM;->h:Landroidx/lifecycle/Observer;

    invoke-virtual {v0, v1}, Landroidx/lifecycle/LiveData;->removeObserver(Landroidx/lifecycle/Observer;)V

    return-void
.end method