g.smali

.class public final Lcom/cmcm/safewallet/data/invite/g;
.super Ljava/lang/Object;
.source "InviteImpl.java"

# interfaces
.implements Lcom/cmcm/safewallet/data/invite/c;


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

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

    return-void
.end method

.method public static a(Lcom/cmcm/safewallet/data/invite/h;Ljava/lang/String;)Lretrofit2/Response;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/cmcm/safewallet/data/invite/h;",
            "Ljava/lang/String;",
            ")",
            "Lretrofit2/Response",
            "<",
            "Lorg/json/JSONObject;",
            ">;"
        }
    .end annotation

    .prologue
    .line 37
    invoke-static {}, Lcom/cmcm/safewallet/data/remote/b;->ll()Lcom/cmcm/safewallet/data/remote/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cmcm/safewallet/data/remote/b;->ln()Lcom/cmcm/safewallet/data/remote/api/InvitedRewardRequest;

    move-result-object v0

    .line 39
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "Bearer "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 1018
    iget-object v2, p0, Lcom/cmcm/safewallet/data/invite/h;->VW:Ljava/lang/String;

    .line 39
    invoke-interface {v0, v1, v2, p0}, Lcom/cmcm/safewallet/data/remote/api/InvitedRewardRequest;->postInvitedReward(Ljava/lang/String;Ljava/lang/String;Lcom/cmcm/safewallet/data/invite/h;)Lretrofit2/Call;

    move-result-object v0

    .line 41
    :try_start_1d
    invoke-interface {v0}, Lretrofit2/Call;->execute()Lretrofit2/Response;
    :try_end_20
    .catch Ljava/io/IOException; {:try_start_1d .. :try_end_20} :catch_22
    .catch Ljava/lang/RuntimeException; {:try_start_1d .. :try_end_20} :catch_28

    move-result-object v0

    .line 48
    :goto_21
    return-object v0

    .line 43
    :catch_22
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    .line 48
    :goto_26
    const/4 v0, 0x0

    goto :goto_21

    .line 45
    :catch_28
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/RuntimeException;->printStackTrace()V

    goto :goto_26
.end method

.method public static jB()Z
    .registers 2

    .prologue
    .line 146
    invoke-static {}, Lcom/cmcm/safewallet/data/remote/b;->ll()Lcom/cmcm/safewallet/data/remote/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cmcm/safewallet/data/remote/b;->ln()Lcom/cmcm/safewallet/data/remote/api/InvitedRewardRequest;

    move-result-object v0

    .line 147
    new-instance v1, Lcom/cmcm/safewallet/data/invite/b;

    invoke-direct {v1}, Lcom/cmcm/safewallet/data/invite/b;-><init>()V

    invoke-interface {v0, v1}, Lcom/cmcm/safewallet/data/remote/api/InvitedRewardRequest;->postFBToken(Lcom/cmcm/safewallet/data/invite/b;)Lretrofit2/Call;

    move-result-object v0

    .line 149
    :try_start_11
    invoke-interface {v0}, Lretrofit2/Call;->execute()Lretrofit2/Response;

    move-result-object v0

    .line 150
    invoke-virtual {v0}, Lretrofit2/Response;->isSuccessful()Z
    :try_end_18
    .catch Ljava/io/IOException; {:try_start_11 .. :try_end_18} :catch_1a
    .catch Ljava/lang/RuntimeException; {:try_start_11 .. :try_end_18} :catch_20

    move-result v0

    .line 157
    :goto_19
    return v0

    .line 152
    :catch_1a
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    .line 157
    :goto_1e
    const/4 v0, 0x0

    goto :goto_19

    .line 154
    :catch_20
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/RuntimeException;->printStackTrace()V

    goto :goto_1e
.end method

.method public static jC()Lretrofit2/Response;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lretrofit2/Response",
            "<",
            "Lorg/json/JSONObject;",
            ">;"
        }
    .end annotation

    .prologue
    .line 2020
    invoke-static {}, Lcom/cmcm/safewallet/ui/test/b/b;->uf()Lcom/cmcm/safewallet/ui/test/b/a;

    .line 1182
    invoke-static {}, Lcom/cmcm/safewallet/data/remote/b;->ll()Lcom/cmcm/safewallet/data/remote/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cmcm/safewallet/data/remote/b;->ln()Lcom/cmcm/safewallet/data/remote/api/InvitedRewardRequest;

    move-result-object v0

    .line 163
    new-instance v1, Lcom/cmcm/safewallet/data/invite/a;

    invoke-direct {v1}, Lcom/cmcm/safewallet/data/invite/a;-><init>()V

    invoke-interface {v0, v1}, Lcom/cmcm/safewallet/data/remote/api/InvitedRewardRequest;->postEmailGetReward(Lcom/cmcm/safewallet/data/invite/a;)Lretrofit2/Call;

    move-result-object v0

    .line 165
    :try_start_14
    invoke-interface {v0}, Lretrofit2/Call;->execute()Lretrofit2/Response;

    move-result-object v0

    .line 166
    invoke-virtual {v0}, Lretrofit2/Response;->toString()Ljava/lang/String;
    :try_end_1b
    .catch Ljava/io/IOException; {:try_start_14 .. :try_end_1b} :catch_1c
    .catch Ljava/lang/RuntimeException; {:try_start_14 .. :try_end_1b} :catch_22

    .line 174
    :goto_1b
    return-object v0

    .line 169
    :catch_1c
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    .line 174
    :goto_20
    const/4 v0, 0x0

    goto :goto_1b

    .line 171
    :catch_22
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/RuntimeException;->printStackTrace()V

    goto :goto_20
.end method