.class public final Ln4/d;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lya/d;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lya/d<",
        "Lcom/floydwiz/gamingcenter/models/network/SessionNotificationResponse;",
        ">;"
    }
.end annotation


# instance fields
.field public final synthetic a:Lcom/floydwiz/gamingcenter/services/SessionBasedNotificationWorker;


# direct methods
.method public constructor <init>(Lcom/floydwiz/gamingcenter/services/SessionBasedNotificationWorker;)V
    .registers 2

    iput-object p1, p0, Ln4/d;->a:Lcom/floydwiz/gamingcenter/services/SessionBasedNotificationWorker;

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

    return-void
.end method


# virtual methods
.method public a(Lya/b;Ljava/lang/Throwable;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lya/b<",
            "Lcom/floydwiz/gamingcenter/models/network/SessionNotificationResponse;",
            ">;",
            "Ljava/lang/Throwable;",
            ")V"
        }
    .end annotation

    const-string v0, "call"

    invoke-static {p1, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    const-string p1, "t"

    invoke-static {p2, p1}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p2}, Ljava/lang/Throwable;->printStackTrace()V

    return-void
.end method

.method public b(Lya/b;Lya/z;)V
    .registers 11
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lya/b<",
            "Lcom/floydwiz/gamingcenter/models/network/SessionNotificationResponse;",
            ">;",
            "Lya/z<",
            "Lcom/floydwiz/gamingcenter/models/network/SessionNotificationResponse;",
            ">;)V"
        }
    .end annotation

    const-string v0, "call"

    invoke-static {p1, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    const-string p1, "response"

    invoke-static {p2, p1}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    .line 1
    iget-object p1, p2, Lya/z;->b:Ljava/lang/Object;

    .line 2
    check-cast p1, Lcom/floydwiz/gamingcenter/models/network/SessionNotificationResponse;

    const/4 v0, 0x0

    if-nez p1, :cond_13

    move-object p1, v0

    goto :goto_1b

    :cond_13
    invoke-virtual {p1}, Lcom/floydwiz/gamingcenter/models/network/SessionNotificationResponse;->getStatusCode()I

    move-result p1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    :goto_1b
    const-string v1, "gamenotiworkerdebug data response statuscode: "

    invoke-static {v1, p1}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;

    invoke-virtual {v1, p1}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V

    .line 3
    iget-object p1, p2, Lya/z;->b:Ljava/lang/Object;

    .line 4
    check-cast p1, Lcom/floydwiz/gamingcenter/models/network/SessionNotificationResponse;

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-nez p1, :cond_30

    :cond_2e
    move p1, v2

    goto :goto_39

    :cond_30
    invoke-virtual {p1}, Lcom/floydwiz/gamingcenter/models/network/SessionNotificationResponse;->getStatusCode()I

    move-result p1

    const/16 v3, 0xc8

    if-ne p1, v3, :cond_2e

    move p1, v1

    :goto_39
    if-eqz p1, :cond_d8

    .line 5
    iget-object p1, p2, Lya/z;->b:Ljava/lang/Object;

    .line 6
    invoke-static {p1}, Lx/e;->d(Ljava/lang/Object;)V

    check-cast p1, Lcom/floydwiz/gamingcenter/models/network/SessionNotificationResponse;

    invoke-virtual {p1}, Lcom/floydwiz/gamingcenter/models/network/SessionNotificationResponse;->getBody()Lcom/floydwiz/gamingcenter/models/network/SessionNotificationBody;

    move-result-object p1

    const-string p2, "gamenotiworkerdebug: session body: "

    invoke-static {p2, p1}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p2

    sget-object v3, Ljava/lang/System;->out:Ljava/io/PrintStream;

    invoke-virtual {v3, p2}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V

    iget-object p2, p0, Ln4/d;->a:Lcom/floydwiz/gamingcenter/services/SessionBasedNotificationWorker;

    .line 7
    iget-object p2, p2, Lcom/floydwiz/gamingcenter/services/SessionBasedNotificationWorker;->a:Landroid/content/Context;

    .line 8
    sget-object v3, Lo4/b$a;->D:Lo4/b$a;

    invoke-virtual {p1}, Lcom/floydwiz/gamingcenter/models/network/SessionNotificationBody;->getNotification_interval()J

    move-result-wide v4

    const-string v6, "key"

    .line 9
    invoke-static {v3, v6}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v7, "game_centre"

    if-nez p2, :cond_65

    goto :goto_78

    :cond_65
    invoke-virtual {p2, v7, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object p2

    invoke-interface {p2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object p2

    invoke-virtual {v3}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object v3

    invoke-interface {p2, v3, v4, v5}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    move-result-object p2

    invoke-interface {p2}, Landroid/content/SharedPreferences$Editor;->apply()V

    .line 10
    :goto_78
    invoke-virtual {p1}, Lcom/floydwiz/gamingcenter/models/network/SessionNotificationBody;->getNotification()Lcom/floydwiz/gamingcenter/models/network/SessionNotificationData;

    move-result-object p1

    const-string p2, "gamenotiworkerdebug: notification data: "

    invoke-static {p2, p1}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p2

    sget-object v3, Ljava/lang/System;->out:Ljava/io/PrintStream;

    invoke-virtual {v3, p2}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V

    iget-object p2, p0, Ln4/d;->a:Lcom/floydwiz/gamingcenter/services/SessionBasedNotificationWorker;

    .line 11
    iget-object p2, p2, Lcom/floydwiz/gamingcenter/services/SessionBasedNotificationWorker;->a:Landroid/content/Context;

    .line 12
    sget-object v3, Lo4/b$a;->C:Lo4/b$a;

    invoke-virtual {p1}, Lcom/floydwiz/gamingcenter/models/network/SessionNotificationData;->getId()I

    move-result v4

    .line 13
    invoke-static {v3, v6}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    if-nez p2, :cond_97

    goto :goto_aa

    :cond_97
    invoke-virtual {p2, v7, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object p2

    invoke-interface {p2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object p2

    invoke-virtual {v3}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object v2

    invoke-interface {p2, v2, v4}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    move-result-object p2

    invoke-interface {p2}, Landroid/content/SharedPreferences$Editor;->apply()V

    .line 14
    :goto_aa
    iget-object p2, p0, Ln4/d;->a:Lcom/floydwiz/gamingcenter/services/SessionBasedNotificationWorker;

    .line 15
    iget-object p2, p2, Lcom/floydwiz/gamingcenter/services/SessionBasedNotificationWorker;->a:Landroid/content/Context;

    .line 16
    invoke-static {p2}, Lcom/bumptech/glide/b;->d(Landroid/content/Context;)Lcom/bumptech/glide/i;

    move-result-object p2

    invoke-virtual {p2}, Lcom/bumptech/glide/i;->i()Lcom/bumptech/glide/h;

    move-result-object p2

    invoke-virtual {p1}, Lcom/floydwiz/gamingcenter/models/network/SessionNotificationData;->getImageUrl()Ljava/lang/String;

    move-result-object v2

    .line 17
    invoke-virtual {p2, v2}, Lcom/bumptech/glide/h;->D(Ljava/lang/Object;)Lcom/bumptech/glide/h;

    move-result-object p2

    .line 18
    sget-object v2, Lm3/k;->a:Lm3/k;

    invoke-virtual {p2, v2}, Lc4/a;->d(Lm3/k;)Lc4/a;

    move-result-object p2

    check-cast p2, Lcom/bumptech/glide/h;

    invoke-virtual {p2, v1}, Lc4/a;->q(Z)Lc4/a;

    move-result-object p2

    check-cast p2, Lcom/bumptech/glide/h;

    new-instance v1, Ln4/d$a;

    iget-object v2, p0, Ln4/d;->a:Lcom/floydwiz/gamingcenter/services/SessionBasedNotificationWorker;

    invoke-direct {v1, v2, p1}, Ln4/d$a;-><init>(Lcom/floydwiz/gamingcenter/services/SessionBasedNotificationWorker;Lcom/floydwiz/gamingcenter/models/network/SessionNotificationData;)V

    .line 19
    sget-object p1, Lg4/e;->a:Ljava/util/concurrent/Executor;

    .line 20
    invoke-virtual {p2, v1, v0, p2, p1}, Lcom/bumptech/glide/h;->B(Ld4/g;Lc4/e;Lc4/a;Ljava/util/concurrent/Executor;)Ld4/g;

    :cond_d8
    return-void
.end method
