[M] sync from n3
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@@ -58,10 +58,11 @@ namespace tysdk
|
||||
return new SKUDetail() {
|
||||
price = x["price"].ToString(),
|
||||
productId = x["productId"].ToString(),
|
||||
LocaleCurrencyCode = x["LocaleCurrencyCode"].ToString(),
|
||||
price_currency_code = x["LocaleCurrencyCode"].ToString(),
|
||||
localeCurrencySymbol = x["localeCurrencySymbol"].ToString(),
|
||||
localizedDescription = x["localizedDescription"].ToString(),
|
||||
title = x["localizedTitle"].ToString()
|
||||
title = x["localizedTitle"].ToString(),
|
||||
ProdKey = x["productIdentifier"].ToString()
|
||||
};
|
||||
}).ToList();
|
||||
products = prodList;
|
||||
@@ -90,13 +91,14 @@ namespace tysdk
|
||||
public string ProdPriceStr => price;
|
||||
public float ProdPrice => float.Parse(price_amount_micros) / 1000000;
|
||||
public string ProdID => ourProductId;
|
||||
public string ProdKey => productId;
|
||||
}
|
||||
#elif UNITY_IOS
|
||||
public class SKUDetail
|
||||
{
|
||||
public string price;
|
||||
public string productId;
|
||||
public string LocaleCurrencyCode;
|
||||
public string price_currency_code;
|
||||
public string localeCurrencySymbol;
|
||||
public string localizedDescription;
|
||||
public string title;
|
||||
@@ -105,6 +107,7 @@ namespace tysdk
|
||||
public string ProdPriceStr => price;
|
||||
public float ProdPrice => float.Parse(price);
|
||||
public string ProdID => productId;
|
||||
public string ProdKey;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user