AuthorsFragment$2.smali

.class Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$2;
.super Ljava/lang/Object;
.source "AuthorsFragment.java"

# interfaces
.implements Ltr/com/hurriyet/androidsdk/callback/AuthorsCallback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->loadContent()V
.end annotation

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


# instance fields
.field final synthetic this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;


# direct methods
.method constructor <init>(Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;)V
    .registers 2

    .line 135
    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;

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

    return-void
.end method


# virtual methods
.method public onFailure(Ltr/com/hurriyet/androidsdk/model/ErrorResponse;)V
    .registers 4

    .line 150
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->isViewDestroyed()Z

    move-result v0

    if-nez v0, :cond_34

    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->access$400(Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;

    move-result-object v0

    if-nez v0, :cond_11

    goto :goto_34

    .line 153
    :cond_11
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->getContext()Landroid/content/Context;

    move-result-object v0

    if-eqz v0, :cond_2b

    .line 154
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p1}, Ltr/com/hurriyet/androidsdk/model/ErrorResponse;->getMessage()Ljava/lang/String;

    move-result-object p1

    const/4 v1, 0x0

    invoke-static {v0, p1, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    .line 156
    :cond_2b
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
    invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->access$400(Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;

    move-result-object p1

    invoke-virtual {p1}, Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;->hide()V

    :cond_34
    :goto_34
    return-void
.end method

.method public onSuccess(Ljava/util/ArrayList;Ljava/util/ArrayList;Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Ltr/com/hurriyet/androidsdk/model/content/Content;",
            ">;",
            "Ljava/util/ArrayList<",
            "Ltr/com/hurriyet/androidsdk/response/authors/Author;",
            ">;",
            "Ltr/com/hurriyet/androidsdk/response/content/DataLayer;",
            ")V"
        }
    .end annotation

    .line 138
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->isViewDestroyed()Z

    move-result v0

    if-eqz v0, :cond_9

    return-void

    .line 141
    :cond_9
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;

    # setter for: Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->columnsList:Ljava/util/ArrayList;
    invoke-static {v0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->access$102(Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    .line 142
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;

    # setter for: Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->authorsList:Ljava/util/ArrayList;
    invoke-static {p1, p2}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->access$202(Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    .line 143
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;

    # setter for: Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
    invoke-static {p1, p3}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->access$302(Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)Ltr/com/hurriyet/androidsdk/response/content/DataLayer;

    .line 144
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
    invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->access$400(Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;

    move-result-object p1

    invoke-virtual {p1}, Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;->hide()V

    .line 145
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;

    # invokes: Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->onResponseReceived()V
    invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->access$500(Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;)V

    return-void
.end method