SaveReferences.smali
.class public Lcom/paytm/pgsdk/SaveReferences;
.super Ljava/lang/Object;
.source "SaveReferences.java"
# static fields
.field private static keepCallbackReference:Lcom/paytm/pgsdk/SaveReferences;
# instance fields
.field private isProduction:Z
.field private paytmPaymentTransactionCallback:Lcom/paytm/pgsdk/PaytmPaymentTransactionCallback;
# direct methods
.method private constructor <init>()V
.registers 1
.line 9
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static declared-synchronized getInstance()Lcom/paytm/pgsdk/SaveReferences;
.registers 2
const-class v0, Lcom/paytm/pgsdk/SaveReferences;
monitor-enter v0
.line 17
:try_start_3
sget-object v1, Lcom/paytm/pgsdk/SaveReferences;->keepCallbackReference:Lcom/paytm/pgsdk/SaveReferences;
if-nez v1, :cond_e
.line 18
new-instance v1, Lcom/paytm/pgsdk/SaveReferences;
invoke-direct {v1}, Lcom/paytm/pgsdk/SaveReferences;-><init>()V
sput-object v1, Lcom/paytm/pgsdk/SaveReferences;->keepCallbackReference:Lcom/paytm/pgsdk/SaveReferences;
.line 20
:cond_e
sget-object v1, Lcom/paytm/pgsdk/SaveReferences;->keepCallbackReference:Lcom/paytm/pgsdk/SaveReferences;
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_12
monitor-exit v0
return-object v1
:catchall_12
move-exception v1
monitor-exit v0
throw v1
.end method
# virtual methods
.method public getPaytmPaymentTransactionCallback()Lcom/paytm/pgsdk/PaytmPaymentTransactionCallback;
.registers 2
.line 25
iget-object v0, p0, Lcom/paytm/pgsdk/SaveReferences;->paytmPaymentTransactionCallback:Lcom/paytm/pgsdk/PaytmPaymentTransactionCallback;
return-object v0
.end method
.method public isProduction()Z
.registers 2
.line 33
iget-boolean v0, p0, Lcom/paytm/pgsdk/SaveReferences;->isProduction:Z
return v0
.end method
.method public setPaytmPaymentTransactionCallback(Lcom/paytm/pgsdk/PaytmPaymentTransactionCallback;)V
.registers 2
.line 29
iput-object p1, p0, Lcom/paytm/pgsdk/SaveReferences;->paytmPaymentTransactionCallback:Lcom/paytm/pgsdk/PaytmPaymentTransactionCallback;
return-void
.end method
.method public setProduction(Z)V
.registers 2
.line 37
iput-boolean p1, p0, Lcom/paytm/pgsdk/SaveReferences;->isProduction:Z
return-void
.end method