FFAPI$9.smali

.class Lcom/dts/freefireth/FFAPI$9;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lj7/a;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/dts/freefireth/FFAPI;->doInAppReview()V
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lj7/a<",
        "Lcom/google/android/play/core/review/ReviewInfo;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic val$reviewManager:Lg7/a;


# direct methods
.method constructor <init>(Lg7/a;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()V"
        }
    .end annotation

    iput-object p1, p0, Lcom/dts/freefireth/FFAPI$9;->val$reviewManager:Lg7/a;

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

    return-void
.end method


# virtual methods
.method public onComplete(Lj7/e;)V
    .registers 4
    .param p1    # Lj7/e;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lj7/e<",
            "Lcom/google/android/play/core/review/ReviewInfo;",
            ">;)V"
        }
    .end annotation

    invoke-virtual {p1}, Lj7/e;->g()Z

    move-result v0

    if-eqz v0, :cond_1d

    invoke-virtual {p1}, Lj7/e;->e()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/google/android/play/core/review/ReviewInfo;

    iget-object v0, p0, Lcom/dts/freefireth/FFAPI$9;->val$reviewManager:Lg7/a;

    sget-object v1, Lcom/dts/freefireth/FFAPI;->MainActivity:Lcom/dts/freefireth/FFMainActivity;

    invoke-interface {v0, v1, p1}, Lg7/a;->a(Landroid/app/Activity;Lcom/google/android/play/core/review/ReviewInfo;)Lj7/e;

    move-result-object p1

    new-instance v0, Lcom/dts/freefireth/FFAPI$9$1;

    invoke-direct {v0, p0}, Lcom/dts/freefireth/FFAPI$9$1;-><init>(Lcom/dts/freefireth/FFAPI$9;)V

    invoke-virtual {p1, v0}, Lj7/e;->a(Lj7/a;)Lj7/e;

    goto :goto_52

    :cond_1d
    new-instance v0, Lcom/dts/freefireth/InAppReviewResult;

    invoke-direct {v0}, Lcom/dts/freefireth/InAppReviewResult;-><init>()V

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/dts/freefireth/InAppReviewResult;->RequestFailure:Z

    invoke-virtual {p1}, Lj7/e;->d()Ljava/lang/Exception;

    move-result-object v1

    if-eqz v1, :cond_43

    invoke-virtual {p1}, Lj7/e;->d()Ljava/lang/Exception;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/dts/freefireth/InAppReviewResult;->ExceptionType:Ljava/lang/String;

    invoke-virtual {p1}, Lj7/e;->d()Ljava/lang/Exception;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object p1

    iput-object p1, v0, Lcom/dts/freefireth/InAppReviewResult;->ExceptionMessage:Ljava/lang/String;

    :cond_43
    sget-object p1, Lcom/dts/freefireth/FFAPI;->UnitySendMessageGameObjectName:Ljava/lang/String;

    # invokes: Lcom/dts/freefireth/FFAPI;->gson()Lcom/google/gson/Gson;
    invoke-static {}, Lcom/dts/freefireth/FFAPI;->access$100()Lcom/google/gson/Gson;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/google/gson/Gson;->t(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "onInAppReviewCallback"

    invoke-static {p1, v1, v0}, Lcom/dts/freefireth/FFMainActivity;->FFSendToUnity(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    :goto_52
    return-void
.end method