public MNVItemsProvider.PlayerVItemInfo[] GetPlayerVItemList() { MNTools.DLog("MNVItemsProvider:GetPlayerVItemList"); if (Application.platform == RuntimePlatform.Android) { List<object> deserializedArray = MNUnityCommunicator.Serializer.DeserializeArray( MNVItemsProviderUnityClass.CallStatic<string>("getPlayerVItemList"), typeof(MNVItemsProvider.PlayerVItemInfo)); MNVItemsProvider.PlayerVItemInfo[] resultArray = new MNVItemsProvider.PlayerVItemInfo[deserializedArray.Count]; for (int index = 0;index < deserializedArray.Count;index++) { resultArray[index] = (MNVItemsProvider.PlayerVItemInfo)(deserializedArray[index]); } return resultArray; } else { return new MNVItemsProvider.PlayerVItemInfo[0]; } }
public static MNVItemsProvider.PlayerVItemInfo MNVItemsProviderPlayerVItemInfoFromDictionary(IDictionary deserializedObject) { if (deserializedObject == null) { return null; } MNVItemsProvider.PlayerVItemInfo typedResult = new MNVItemsProvider.PlayerVItemInfo(); typedResult.Count = Convert.ToInt64(deserializedObject["Count"]); typedResult.Id = Convert.ToInt32(deserializedObject["Id"]); return typedResult; }