78 lines
1.7 KiB
Smali
78 lines
1.7 KiB
Smali
.class public Lcom/android/billingclient/api/ProductDetails$PricingPhases;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/android/billingclient/api/ProductDetails;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "PricingPhases"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final zza:Ljava/util/List;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lorg/json/JSONArray;)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 2
|
|
:goto_0
|
|
invoke-virtual {p1}, Lorg/json/JSONArray;->length()I
|
|
|
|
move-result v2
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
.line 3
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
new-instance v3, Lcom/android/billingclient/api/ProductDetails$PricingPhase;
|
|
|
|
.line 4
|
|
invoke-direct {v3, v2}, Lcom/android/billingclient/api/ProductDetails$PricingPhase;-><init>(Lorg/json/JSONObject;)V
|
|
|
|
invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_0
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iput-object v0, p0, Lcom/android/billingclient/api/ProductDetails$PricingPhases;->zza:Ljava/util/List;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getPricingPhaseList()Ljava/util/List;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/android/billingclient/api/ProductDetails$PricingPhases;->zza:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|