ContactUsFragment$1.smali

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

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


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment;->sendFeedback()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/ContactUsFragment;


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

    .line 87
    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment;

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

    return-void
.end method


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

    .line 100
    :try_start_0
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment;

    # invokes: Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment;->hideLoading()V
    invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment;->access$000(Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment;)V

    .line 101
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment;

    invoke-virtual {p1}, Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    check-cast p1, Lhurriyet/mobil/android/hurriyet/activities/BaseActivity;

    const v0, 0x7f1002b6

    invoke-static {v0}, Lcom/appcore/CoreApp;->getStrWithID(I)Ljava/lang/String;

    move-result-object v0

    sget-object v1, Lhurriyet/mobil/android/hurriyet/utils/SnackbarHelper$SnackBarType;->SNACK_FAILURE:Lhurriyet/mobil/android/hurriyet/utils/SnackbarHelper$SnackBarType;

    invoke-virtual {p1, v0, v1}, Lhurriyet/mobil/android/hurriyet/activities/BaseActivity;->showSnackBar(Ljava/lang/String;Lhurriyet/mobil/android/hurriyet/utils/SnackbarHelper$SnackBarType;)V
    :try_end_19
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_19} :catch_19

    :catch_19
    return-void
.end method

.method public onSuccess(Ltr/com/hurriyet/androidsdk/response/feedback/SendFeedbackResponse;)V
    .registers 5

    .line 91
    :try_start_0
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment;

    # invokes: Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment;->hideLoading()V
    invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment;->access$000(Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment;)V

    .line 92
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment;

    invoke-virtual {p1}, Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    check-cast p1, Lhurriyet/mobil/android/hurriyet/activities/BaseActivity;

    const v0, 0x7f1001af

    invoke-static {v0}, Lcom/appcore/CoreApp;->getStrWithID(I)Ljava/lang/String;

    move-result-object v0

    sget-object v1, Lhurriyet/mobil/android/hurriyet/utils/SnackbarHelper$SnackBarType;->SNACK_SUCCESS:Lhurriyet/mobil/android/hurriyet/utils/SnackbarHelper$SnackBarType;

    invoke-virtual {p1, v0, v1}, Lhurriyet/mobil/android/hurriyet/activities/BaseActivity;->showSnackBar(Ljava/lang/String;Lhurriyet/mobil/android/hurriyet/utils/SnackbarHelper$SnackBarType;)V

    .line 93
    invoke-static {}, Lhurriyet/mobil/android/hurriyet/HApp;->getH()Lhurriyet/mobil/android/hurriyet/HApp;

    move-result-object p1

    iget-object p1, p1, Lhurriyet/mobil/android/hurriyet/HApp;->mHandler:Landroid/os/Handler;

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

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment;->fragmentExitRunnable:Lcom/appcore/utils/TryRunnable;
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment;->access$100(Lhurriyet/mobil/android/hurriyet/fragments/ContactUsFragment;)Lcom/appcore/utils/TryRunnable;

    move-result-object v0

    const-wide/16 v1, 0x5dc

    invoke-virtual {p1, v0, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
    :try_end_2a
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_2a} :catch_2a

    :catch_2a
    return-void
.end method