JubeatPlus 3.9.11
Loading...
Searching...
No Matches
CubePurchaseInfo Class Reference

A cube pack's identity, price and store product. More...

#include <CubePurchaseInfo.h>

Inheritance diagram for CubePurchaseInfo:
Collaboration diagram for CubePurchaseInfo:

Instance Methods

(void) - initWithDictionary:
 Fills the pack from a store dictionary.
(void) - updateProduct:
 Attaches the resolved StoreKit product.
(nullable NSString *) - getProductID
 The pack's product identifier.
(nullable NSString *) - getPriceString
 The pack's price, already formatted for display.
(nullable SKProduct *) - getProduct
 The attached StoreKit product.
(int) - getCubeNum
 How many cubes the pack contains.
(nullable NSString *) - getName
 The pack's name (also the cube count as a string).
(nullable NSString *) - getDescription
 The pack's description line.

Detailed Description

A cube pack's identity, price and store product.

Backed by four ivars: purchaseID, productInfo (an SKProduct), itemName and description.

Method Documentation

◆ getCubeNum

- (int) getCubeNum

How many cubes the pack contains.

-[itemName intValue], so the count is carried as text and parsed on every call.

Ghidra address:
0x63d20
Ghidra address:
0x63d20

◆ getDescription

- (NSString *) getDescription

The pack's description line.

Returns
The pack's description line.
Ghidra address:
0x63d48
Ghidra address:
0x63d48

◆ getName

- (NSString *) getName

The pack's name (also the cube count as a string).

Returns
The pack's name.
Ghidra address:
0x63d38
Ghidra address:
0x63d38

◆ getPriceString

- (NSString *) getPriceString

The pack's price, already formatted for display.

DECLARED ONLY.

Returns
The formatted price.
Ghidra address:
0x63c6c
Ghidra address:
0x63c6c

◆ getProduct

- (SKProduct *) getProduct

The attached StoreKit product.

Returns
The attached StoreKit product, or nil when none has been resolved.
Ghidra address:
0x63d10
Ghidra address:
0x63d10

◆ getProductID

- (NSString *) getProductID

The pack's product identifier.

Returns
The product identifier.
Ghidra address:
0x63c5c
Ghidra address:
0x63c5c

◆ initWithDictionary:

- (void) initWithDictionary: (nullable NSDictionary *) dictionary

Fills the pack from a store dictionary.

Parameters
dictionaryThe store dictionary (carries item_id , name , and description ).
Ghidra address:
0x63b68

◆ updateProduct:

- (void) updateProduct: (nullable SKProduct *) product

Attaches the resolved StoreKit product.

Parameters
productThe product.
Ghidra address:
0x63c48

The documentation for this class was generated from the following files: