Skip to main content

Ready to market your stellar app?

Samsung Developer Program is your gateway to app monetization success.

Learn More

Samsung Developer Program

SkuDetails Method Details

ParseFromJson

private void ParseFromJson()

Checks the PriceValue and CurrencyCode of an item using the other keys (typically price_amount_micros and price_currency_code).

It checks if the price value and currency are empty. For the price value,  price_amount_micros is used, then val = val /= 1000000. For the currency, it uses price_currency_code to get and assign values.

ToString

public override string ToString()

Converts the SKU details into a string that includes ItemType, Sku, Title, Price, Description, PriceValue, and CurrencyCode field values of the item specified by ToString().

Used when assigning values as a string (as in SKUDetails).

Returns:

Returns a string form of the SKU details.


  • Was this article helpful?