public Dictionary <string, object> Serialize() { var result = new Dictionary <string, object>(); result.Add("iOSSKU", iOSSKU); result.Add("androidBillingPlatform", AndroidBillingPlatform.ToString()); result.Add("GooglePlayPublicKey", GooglePlayPublicKey); result.Add("useAmazonSandbox", AmazonSandboxEnabled); result.Add("UseWP8MockingFramework", WP8SandboxEnabled); result.Add("useHostedConfig", UseHostedConfig); result.Add("hostedConfigUrl", HostedConfigUrl); result.Add("UseWin8_1Sandbox", UseWin8_1Sandbox); result.Add("samsungAppsMode", SamsungAppsMode.ToString()); result.Add("samsungAppsItemGroupId", SamsungItemGroupId); { var items = new Dictionary <string, object>(); foreach (var item in inventory) { items.Add(item.Id, item.Serialize()); } result.Add("purchasableItems", items); } { var hash = new Dictionary <string, object>(); foreach (var currency in currencies) { hash.Add(currency.currencyId, currency.mappings); } result.Add("currencies", hash); } return(result); }
public void SetMode(SamsungAppsMode mode) { m_Java.Call("setMode", mode.ToString()); }