HomeDataCacheManager$3.smali

.class final Lcom/sandboxol/center/utils/HomeDataCacheManager$3;
.super Lcom/sandboxol/common/base/web/OnResponseListener;
.source "HomeDataCacheManager.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/center/utils/HomeDataCacheManager;->startFetchHomeDataFromServerAndRefreshHome()V
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/sandboxol/common/base/web/OnResponseListener<",
        "Ljava/util/List<",
        "Lcom/sandboxol/greendao/entity/homedata/HomeColumn;",
        ">;>;"
    }
.end annotation


# direct methods
.method constructor <init>()V
    .registers 1

    .line 1
    invoke-direct {p0}, Lcom/sandboxol/common/base/web/OnResponseListener;-><init>()V

    return-void
.end method


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

    return-void
.end method

.method public onServerError(I)V
    .registers 2

    return-void
.end method

.method public bridge synthetic onSuccess(Ljava/lang/Object;)V
    .registers 2

    .line 1
    check-cast p1, Ljava/util/List;

    invoke-virtual {p0, p1}, Lcom/sandboxol/center/utils/HomeDataCacheManager$3;->onSuccess(Ljava/util/List;)V

    return-void
.end method

.method public onSuccess(Ljava/util/List;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/sandboxol/greendao/entity/homedata/HomeColumn;",
            ">;)V"
        }
    .end annotation

    .line 2
    new-instance v0, Lcom/sandboxol/center/utils/HomeColumnSortComparator;

    invoke-direct {v0}, Lcom/sandboxol/center/utils/HomeColumnSortComparator;-><init>()V

    invoke-static {p1, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    .line 3
    # invokes: Lcom/sandboxol/center/utils/HomeDataCacheManager;->configTabList(Ljava/util/List;)V
    invoke-static {p1}, Lcom/sandboxol/center/utils/HomeDataCacheManager;->access$200(Ljava/util/List;)V

    .line 4
    # invokes: Lcom/sandboxol/center/utils/HomeDataCacheManager;->getInstance()Lcom/sandboxol/center/utils/HomeDataCacheManager;
    invoke-static {}, Lcom/sandboxol/center/utils/HomeDataCacheManager;->access$300()Lcom/sandboxol/center/utils/HomeDataCacheManager;

    move-result-object v0

    # getter for: Lcom/sandboxol/center/utils/HomeDataCacheManager;->homeCacheData:Ljava/util/List;
    invoke-static {v0}, Lcom/sandboxol/center/utils/HomeDataCacheManager;->access$400(Lcom/sandboxol/center/utils/HomeDataCacheManager;)Ljava/util/List;

    move-result-object v0

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

    .line 5
    # invokes: Lcom/sandboxol/center/utils/HomeDataCacheManager;->getInstance()Lcom/sandboxol/center/utils/HomeDataCacheManager;
    invoke-static {}, Lcom/sandboxol/center/utils/HomeDataCacheManager;->access$300()Lcom/sandboxol/center/utils/HomeDataCacheManager;

    move-result-object v0

    # getter for: Lcom/sandboxol/center/utils/HomeDataCacheManager;->homeCacheData:Ljava/util/List;
    invoke-static {v0}, Lcom/sandboxol/center/utils/HomeDataCacheManager;->access$400(Lcom/sandboxol/center/utils/HomeDataCacheManager;)Ljava/util/List;

    move-result-object v0

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

    .line 6
    # invokes: Lcom/sandboxol/center/utils/HomeDataCacheManager;->getInstance()Lcom/sandboxol/center/utils/HomeDataCacheManager;
    invoke-static {}, Lcom/sandboxol/center/utils/HomeDataCacheManager;->access$300()Lcom/sandboxol/center/utils/HomeDataCacheManager;

    move-result-object v0

    # getter for: Lcom/sandboxol/center/utils/HomeDataCacheManager;->loadListener:Lcom/sandboxol/center/utils/HomeDataCacheManager$OnLoadDataListener;
    invoke-static {v0}, Lcom/sandboxol/center/utils/HomeDataCacheManager;->access$500(Lcom/sandboxol/center/utils/HomeDataCacheManager;)Lcom/sandboxol/center/utils/HomeDataCacheManager$OnLoadDataListener;

    move-result-object v0

    if-eqz v0, :cond_36

    .line 7
    # invokes: Lcom/sandboxol/center/utils/HomeDataCacheManager;->getInstance()Lcom/sandboxol/center/utils/HomeDataCacheManager;
    invoke-static {}, Lcom/sandboxol/center/utils/HomeDataCacheManager;->access$300()Lcom/sandboxol/center/utils/HomeDataCacheManager;

    move-result-object v0

    # getter for: Lcom/sandboxol/center/utils/HomeDataCacheManager;->loadListener:Lcom/sandboxol/center/utils/HomeDataCacheManager$OnLoadDataListener;
    invoke-static {v0}, Lcom/sandboxol/center/utils/HomeDataCacheManager;->access$500(Lcom/sandboxol/center/utils/HomeDataCacheManager;)Lcom/sandboxol/center/utils/HomeDataCacheManager$OnLoadDataListener;

    move-result-object v0

    invoke-interface {v0, p1}, Lcom/sandboxol/center/utils/HomeDataCacheManager$OnLoadDataListener;->onLoadRemoteDataFinished(Ljava/util/List;)V

    .line 8
    :cond_36
    # invokes: Lcom/sandboxol/center/utils/HomeDataCacheManager;->getInstance()Lcom/sandboxol/center/utils/HomeDataCacheManager;
    invoke-static {}, Lcom/sandboxol/center/utils/HomeDataCacheManager;->access$300()Lcom/sandboxol/center/utils/HomeDataCacheManager;

    move-result-object v0

    # getter for: Lcom/sandboxol/center/utils/HomeDataCacheManager;->loadTabListListener:Lcom/sandboxol/center/utils/HomeDataCacheManager$OnLoadTabListListener;
    invoke-static {v0}, Lcom/sandboxol/center/utils/HomeDataCacheManager;->access$600(Lcom/sandboxol/center/utils/HomeDataCacheManager;)Lcom/sandboxol/center/utils/HomeDataCacheManager$OnLoadTabListListener;

    move-result-object v0

    if-eqz v0, :cond_53

    .line 9
    # invokes: Lcom/sandboxol/center/utils/HomeDataCacheManager;->getInstance()Lcom/sandboxol/center/utils/HomeDataCacheManager;
    invoke-static {}, Lcom/sandboxol/center/utils/HomeDataCacheManager;->access$300()Lcom/sandboxol/center/utils/HomeDataCacheManager;

    move-result-object v0

    # getter for: Lcom/sandboxol/center/utils/HomeDataCacheManager;->loadTabListListener:Lcom/sandboxol/center/utils/HomeDataCacheManager$OnLoadTabListListener;
    invoke-static {v0}, Lcom/sandboxol/center/utils/HomeDataCacheManager;->access$600(Lcom/sandboxol/center/utils/HomeDataCacheManager;)Lcom/sandboxol/center/utils/HomeDataCacheManager$OnLoadTabListListener;

    move-result-object v0

    .line 10
    # invokes: Lcom/sandboxol/center/utils/HomeDataCacheManager;->getInstance()Lcom/sandboxol/center/utils/HomeDataCacheManager;
    invoke-static {}, Lcom/sandboxol/center/utils/HomeDataCacheManager;->access$300()Lcom/sandboxol/center/utils/HomeDataCacheManager;

    move-result-object v1

    # getter for: Lcom/sandboxol/center/utils/HomeDataCacheManager;->tabList:Ljava/util/List;
    invoke-static {v1}, Lcom/sandboxol/center/utils/HomeDataCacheManager;->access$700(Lcom/sandboxol/center/utils/HomeDataCacheManager;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/sandboxol/center/utils/HomeDataCacheManager$OnLoadTabListListener;->onLoadTabListFinished(Ljava/util/List;)V

    .line 11
    :cond_53
    invoke-static {}, Lcom/sandboxol/greendao/c/V;->getInstance()Lcom/sandboxol/greendao/c/V;

    move-result-object v0

    invoke-static {}, Lcom/sandboxol/center/entity/AccountCenter;->newInstance()Lcom/sandboxol/center/entity/AccountCenter;

    move-result-object v1

    iget-object v1, v1, Lcom/sandboxol/center/entity/AccountCenter;->userId:Landroidx/databinding/ObservableField;

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

    move-result-object v1

    check-cast v1, Ljava/lang/Long;

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2, p1}, Lcom/sandboxol/greendao/c/V;->a(JLjava/util/List;)V

    .line 12
    invoke-static {}, Lcom/sandboxol/common/messenger/Messenger;->getDefault()Lcom/sandboxol/common/messenger/Messenger;

    move-result-object p1

    const-string v0, "token.refresh.home.data"

    invoke-virtual {p1, v0}, Lcom/sandboxol/common/messenger/Messenger;->sendNoMsg(Ljava/lang/Object;)V

    return-void
.end method