public byte[] BuyItem(byte[] data) { var inputStream = new MemoryStream(data); var itemId = Int32Proxy.Deserialize(inputStream); var authToken = Encoding.UTF8.GetString(Convert.FromBase64String(StringProxy.Deserialize(inputStream))); var currencyType = EnumProxy <UberStrikeCurrencyType> .Deserialize(inputStream); var itemType = EnumProxy <UberstrikeItemType> .Deserialize(inputStream); var buyingLocationType = EnumProxy <BuyingLocationType> .Deserialize(inputStream); var buyingRecommendationType = EnumProxy <BuyingRecommendationType> .Deserialize(inputStream); var outputStream = new MemoryStream(); if (inventoryData.ContainsKey(authToken)) { var item = new ItemInventoryView { ItemId = itemId, AmountRemaining = itemType != UberstrikeItemType.QuickUse ? -1 : 50 }; inventoryData[authToken].Add(item); UpdateInventoryData(); Int32Proxy.Serialize(outputStream, (int)BuyItemResult.OK); } else { Int32Proxy.Serialize(outputStream, (int)BuyItemResult.InvalidMember); } return(outputStream.ToArray()); }
public static void Serialize(Stream stream, PlayerWeaponStatisticsView instance) { using (MemoryStream memoryStream = new MemoryStream()) { Int32Proxy.Serialize(memoryStream, instance.CannonTotalDamageDone); Int32Proxy.Serialize(memoryStream, instance.CannonTotalShotsFired); Int32Proxy.Serialize(memoryStream, instance.CannonTotalShotsHit); Int32Proxy.Serialize(memoryStream, instance.CannonTotalSplats); Int32Proxy.Serialize(memoryStream, instance.LauncherTotalDamageDone); Int32Proxy.Serialize(memoryStream, instance.LauncherTotalShotsFired); Int32Proxy.Serialize(memoryStream, instance.LauncherTotalShotsHit); Int32Proxy.Serialize(memoryStream, instance.LauncherTotalSplats); Int32Proxy.Serialize(memoryStream, instance.MachineGunTotalDamageDone); Int32Proxy.Serialize(memoryStream, instance.MachineGunTotalShotsFired); Int32Proxy.Serialize(memoryStream, instance.MachineGunTotalShotsHit); Int32Proxy.Serialize(memoryStream, instance.MachineGunTotalSplats); Int32Proxy.Serialize(memoryStream, instance.MeleeTotalDamageDone); Int32Proxy.Serialize(memoryStream, instance.MeleeTotalShotsFired); Int32Proxy.Serialize(memoryStream, instance.MeleeTotalShotsHit); Int32Proxy.Serialize(memoryStream, instance.MeleeTotalSplats); Int32Proxy.Serialize(memoryStream, instance.ShotgunTotalDamageDone); Int32Proxy.Serialize(memoryStream, instance.ShotgunTotalShotsFired); Int32Proxy.Serialize(memoryStream, instance.ShotgunTotalShotsHit); Int32Proxy.Serialize(memoryStream, instance.ShotgunTotalSplats); Int32Proxy.Serialize(memoryStream, instance.SniperTotalDamageDone); Int32Proxy.Serialize(memoryStream, instance.SniperTotalShotsFired); Int32Proxy.Serialize(memoryStream, instance.SniperTotalShotsHit); Int32Proxy.Serialize(memoryStream, instance.SniperTotalSplats); Int32Proxy.Serialize(memoryStream, instance.SplattergunTotalDamageDone); Int32Proxy.Serialize(memoryStream, instance.SplattergunTotalShotsFired); Int32Proxy.Serialize(memoryStream, instance.SplattergunTotalShotsHit); Int32Proxy.Serialize(memoryStream, instance.SplattergunTotalSplats); memoryStream.WriteTo(stream); } }
public static void Serialize(Stream stream, AccountCompletionResultView instance) { int mask = 0; using (var bytes = new MemoryStream()) { if (instance.ItemsAttributed != null) { DictionaryProxy <int, int> .Serialize(bytes, instance.ItemsAttributed, Int32Proxy.Serialize, Int32Proxy.Serialize); } else { mask |= 1; } if (instance.NonDuplicateNames != null) { ListProxy <string> .Serialize(bytes, instance.NonDuplicateNames, StringProxy.Serialize); } else { mask |= 2; } Int32Proxy.Serialize(bytes, instance.Result); Int32Proxy.Serialize(stream, ~mask); bytes.WriteTo(stream); } }
public static void Serialize(Stream stream, UberstrikeMemberView instance) { int mask = 0; using (var bytes = new MemoryStream()) { if (instance.PlayerCardView != null) { PlayerCardViewProxy.Serialize(bytes, instance.PlayerCardView); } else { mask |= 1; } if (instance.PlayerStatisticsView != null) { PlayerStatisticsViewProxy.Serialize(bytes, instance.PlayerStatisticsView); } else { mask |= 2; } Int32Proxy.Serialize(stream, ~mask); bytes.WriteTo(stream); } }
// Token: 0x060011BE RID: 4542 RVA: 0x0001D2E0 File Offset: 0x0001B4E0 public static Coroutine BuyPack(int itemId, string authToken, PackType packType, UberStrikeCurrencyType currencyType, UberstrikeItemType itemType, BuyingLocationType marketLocation, BuyingRecommendationType recommendationType, Action <int> callback, Action <Exception> handler) { Coroutine result; using (MemoryStream memoryStream = new MemoryStream()) { Int32Proxy.Serialize(memoryStream, itemId); StringProxy.Serialize(memoryStream, authToken); EnumProxy <PackType> .Serialize(memoryStream, packType); EnumProxy <UberStrikeCurrencyType> .Serialize(memoryStream, currencyType); EnumProxy <UberstrikeItemType> .Serialize(memoryStream, itemType); EnumProxy <BuyingLocationType> .Serialize(memoryStream, marketLocation); EnumProxy <BuyingRecommendationType> .Serialize(memoryStream, recommendationType); result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IShopWebServiceContract", "ShopWebService", "BuyPack", memoryStream.ToArray(), delegate(byte[] data) { if (callback != null) { callback(Int32Proxy.Deserialize(new MemoryStream(data))); } }, handler)); } return(result); }
public static void Serialize(Stream stream, MemberView instance) { int mask = 0; using (var bytes = new MemoryStream()) { if (instance.MemberItems != null) { ListProxy <int> .Serialize(bytes, instance.MemberItems, new ListProxy <int> .Serializer <int>(Int32Proxy.Serialize)); } else { mask |= 1; } if (instance.MemberWallet != null) { MemberWalletViewProxy.Serialize(bytes, instance.MemberWallet); } else { mask |= 2; } if (instance.PublicProfile != null) { PublicProfileViewProxy.Serialize(bytes, instance.PublicProfile); } else { mask |= 4; } Int32Proxy.Serialize(stream, ~mask); bytes.WriteTo(stream); } }
public static void Serialize(Stream bytes, decimal instance) { int[] bits = decimal.GetBits(instance); Int32Proxy.Serialize(bytes, bits[0]); Int32Proxy.Serialize(bytes, bits[1]); Int32Proxy.Serialize(bytes, bits[2]); Int32Proxy.Serialize(bytes, bits[3]); }
public static void Serialize(Stream stream, ConnectionAddressView instance) { using (var bytes = new MemoryStream()) { Int32Proxy.Serialize(bytes, instance.Ipv4); UInt16Proxy.Serialize(bytes, instance.Port); bytes.WriteTo(stream); } }
public static void Serialize(Stream stream, PhotonServerLoadView instance) { using (var bytes = new MemoryStream()) { SingleProxy.Serialize(bytes, instance.MaxPlayerCount); Int32Proxy.Serialize(bytes, instance.PeersConnected); Int32Proxy.Serialize(bytes, instance.PlayersConnected); Int32Proxy.Serialize(bytes, instance.RoomsCreated); bytes.WriteTo(stream); } }
public static void Serialize(Stream stream, BundleItemView instance) { using (MemoryStream memoryStream = new MemoryStream()) { Int32Proxy.Serialize(memoryStream, instance.Amount); Int32Proxy.Serialize(memoryStream, instance.BundleId); EnumProxy <BuyingDurationType> .Serialize(memoryStream, instance.Duration); Int32Proxy.Serialize(memoryStream, instance.ItemId); memoryStream.WriteTo(stream); } }
public static void Serialize(Stream stream, CommActorInfoView instance) { int mask = 0; using (var bytes = new MemoryStream()) { EnumProxy <MemberAccessLevel> .Serialize(bytes, instance.AccessLevel); EnumProxy <ChannelType> .Serialize(bytes, instance.Channel); if (instance.ClanTag != null) { StringProxy.Serialize(bytes, instance.ClanTag); } else { mask |= 1; } Int32Proxy.Serialize(bytes, instance.Cmid); if (instance.CurrentRoom != null) { GameRoomViewProxy.Serialize(bytes, instance.CurrentRoom); } else { mask |= 2; } ByteProxy.Serialize(bytes, instance.ModerationFlag); if (instance.ModInformation != null) { StringProxy.Serialize(bytes, instance.ModInformation); } else { mask |= 4; } if (instance.PlayerName != null) { StringProxy.Serialize(bytes, instance.PlayerName); } else { mask |= 8; } Int32Proxy.Serialize(stream, ~mask); bytes.WriteTo(stream); } }
public static void Serialize(Stream stream, MemberWalletView instance) { using (MemoryStream memoryStream = new MemoryStream()) { Int32Proxy.Serialize(memoryStream, instance.Cmid); Int32Proxy.Serialize(memoryStream, instance.Credits); DateTimeProxy.Serialize(memoryStream, instance.CreditsExpiration); Int32Proxy.Serialize(memoryStream, instance.Points); DateTimeProxy.Serialize(memoryStream, instance.PointsExpiration); memoryStream.WriteTo(stream); } }
public static void Serialize(Stream stream, GameRoomDataView instance) { int mask = 0; using (var bytes = new MemoryStream()) { Int32Proxy.Serialize(bytes, instance.ConnectedPlayers); Int32Proxy.Serialize(bytes, instance.GameFlags); EnumProxy <GameModeType> .Serialize(bytes, instance.GameMode); if (instance.Guid != null) { StringProxy.Serialize(bytes, instance.Guid); } else { mask |= 1; } BooleanProxy.Serialize(bytes, instance.IsPasswordProtected); BooleanProxy.Serialize(bytes, instance.IsPermanentGame); Int32Proxy.Serialize(bytes, instance.KillLimit); ByteProxy.Serialize(bytes, instance.LevelMax); ByteProxy.Serialize(bytes, instance.LevelMin); Int32Proxy.Serialize(bytes, instance.MapID); if (instance.Name != null) { StringProxy.Serialize(bytes, instance.Name); } else { mask |= 2; } Int32Proxy.Serialize(bytes, instance.Number); Int32Proxy.Serialize(bytes, instance.PlayerLimit); if (instance.Server != null) { ConnectionAddressViewProxy.Serialize(bytes, instance.Server); } else { mask |= 4; } Int32Proxy.Serialize(bytes, instance.TimeLimit); Int32Proxy.Serialize(stream, ~mask); bytes.WriteTo(stream); } }
public static void Serialize(Stream stream, LoadoutView instance) { int mask = 0; using (var bytes = new MemoryStream()) { Int32Proxy.Serialize(bytes, instance.Backpack); Int32Proxy.Serialize(bytes, instance.Boots); Int32Proxy.Serialize(bytes, instance.Cmid); Int32Proxy.Serialize(bytes, instance.Face); Int32Proxy.Serialize(bytes, instance.FunctionalItem1); Int32Proxy.Serialize(bytes, instance.FunctionalItem2); Int32Proxy.Serialize(bytes, instance.FunctionalItem3); Int32Proxy.Serialize(bytes, instance.Gloves); Int32Proxy.Serialize(bytes, instance.Head); Int32Proxy.Serialize(bytes, instance.LoadoutId); Int32Proxy.Serialize(bytes, instance.LowerBody); Int32Proxy.Serialize(bytes, instance.MeleeWeapon); Int32Proxy.Serialize(bytes, instance.QuickItem1); Int32Proxy.Serialize(bytes, instance.QuickItem2); Int32Proxy.Serialize(bytes, instance.QuickItem3); if (instance.SkinColor != null) { StringProxy.Serialize(bytes, instance.SkinColor); } else { mask |= 1; } EnumProxy <AvatarType> .Serialize(bytes, instance.Type); Int32Proxy.Serialize(bytes, instance.UpperBody); Int32Proxy.Serialize(bytes, instance.Weapon1); Int32Proxy.Serialize(bytes, instance.Weapon1Mod1); Int32Proxy.Serialize(bytes, instance.Weapon1Mod2); Int32Proxy.Serialize(bytes, instance.Weapon1Mod3); Int32Proxy.Serialize(bytes, instance.Weapon2); Int32Proxy.Serialize(bytes, instance.Weapon2Mod1); Int32Proxy.Serialize(bytes, instance.Weapon2Mod2); Int32Proxy.Serialize(bytes, instance.Weapon2Mod3); Int32Proxy.Serialize(bytes, instance.Weapon3); Int32Proxy.Serialize(bytes, instance.Weapon3Mod1); Int32Proxy.Serialize(bytes, instance.Weapon3Mod2); Int32Proxy.Serialize(bytes, instance.Weapon3Mod3); Int32Proxy.Serialize(bytes, instance.Webbing); Int32Proxy.Serialize(stream, ~mask); bytes.WriteTo(stream); } }
public static void Serialize(Stream stream, LuckyDrawUnityView instance) { int mask = 0; using (var bytes = new MemoryStream()) { EnumProxy <BundleCategoryType> .Serialize(bytes, instance.Category); if (instance.Description != null) { StringProxy.Serialize(bytes, instance.Description); } else { mask |= 1; } if (instance.IconUrl != null) { StringProxy.Serialize(bytes, instance.IconUrl); } else { mask |= 2; } Int32Proxy.Serialize(bytes, instance.Id); BooleanProxy.Serialize(bytes, instance.IsAvailableInShop); if (instance.LuckyDrawSets != null) { ListProxy <LuckyDrawSetUnityView> .Serialize(bytes, instance.LuckyDrawSets, new ListProxy <LuckyDrawSetUnityView> .Serializer <LuckyDrawSetUnityView>(LuckyDrawSetUnityViewProxy.Serialize)); } else { mask |= 4; } if (instance.Name != null) { StringProxy.Serialize(bytes, instance.Name); } else { mask |= 8; } Int32Proxy.Serialize(bytes, instance.Price); EnumProxy <UberStrikeCurrencyType> .Serialize(bytes, instance.UberStrikeCurrencyType); Int32Proxy.Serialize(stream, ~mask); bytes.WriteTo(stream); } }
public static void Serialize(Stream stream, MapView instance) { var mask = 0; using (var bytes = new MemoryStream()) { if (instance.Description != null) { StringProxy.Serialize(bytes, instance.Description); } else { mask |= 1; } if (instance.DisplayName != null) { StringProxy.Serialize(bytes, instance.DisplayName); } else { mask |= 2; } BooleanProxy.Serialize(bytes, instance.IsBlueBox); Int32Proxy.Serialize(bytes, instance.MapId); Int32Proxy.Serialize(bytes, instance.MaxPlayers); Int32Proxy.Serialize(bytes, instance.RecommendedItemId); if (instance.SceneName != null) { StringProxy.Serialize(bytes, instance.SceneName); } else { mask |= 4; } if (instance.Settings != null) { DictionaryProxy <GameModeType, MapSettingsView> .Serialize(bytes, instance.Settings, EnumProxy <GameModeType> .Serialize, MapSettingsViewProxy.Serialize); } else { mask |= 8; } Int32Proxy.Serialize(bytes, instance.SupportedGameModes); Int32Proxy.Serialize(bytes, instance.SupportedItemClass); Int32Proxy.Serialize(stream, ~mask); bytes.WriteTo(stream); } }
public static void Serialize(Stream stream, MemberAuthenticationResultView instance) { int mask = 0; using (var bytes = new MemoryStream()) { if (instance.AuthToken != null) { StringProxy.Serialize(bytes, instance.AuthToken); } else { mask |= 1; } BooleanProxy.Serialize(bytes, instance.IsAccountComplete); if (instance.LuckyDraw != null) { LuckyDrawUnityViewProxy.Serialize(bytes, instance.LuckyDraw); } else { mask |= 2; } EnumProxy <MemberAuthenticationResult> .Serialize(bytes, instance.MemberAuthenticationResult); if (instance.MemberView != null) { MemberViewProxy.Serialize(bytes, instance.MemberView); } else { mask |= 4; } if (instance.PlayerStatisticsView != null) { PlayerStatisticsViewProxy.Serialize(bytes, instance.PlayerStatisticsView); } else { mask |= 8; } DateTimeProxy.Serialize(bytes, instance.ServerTime); Int32Proxy.Serialize(stream, ~mask); bytes.WriteTo(stream); } }
public static void Serialize(Stream stream, MapSettingsView instance) { using (MemoryStream bytes = new MemoryStream()) { Int32Proxy.Serialize(bytes, instance.KillsCurrent); Int32Proxy.Serialize(bytes, instance.KillsMax); Int32Proxy.Serialize(bytes, instance.KillsMin); Int32Proxy.Serialize(bytes, instance.PlayersCurrent); Int32Proxy.Serialize(bytes, instance.PlayersMax); Int32Proxy.Serialize(bytes, instance.PlayersMin); Int32Proxy.Serialize(bytes, instance.TimeCurrent); Int32Proxy.Serialize(bytes, instance.TimeMax); Int32Proxy.Serialize(bytes, instance.TimeMin); bytes.WriteTo(stream); } }
public AccountCompletionResultView CompleteAccount(int cmid, string name, ChannelType channelType, string locale, string machineId) { using (var bytes = new MemoryStream()) { Int32Proxy.Serialize(bytes, cmid); StringProxy.Serialize(bytes, name); EnumProxy <ChannelType> .Serialize(bytes, channelType); StringProxy.Serialize(bytes, locale); StringProxy.Serialize(bytes, machineId); var data = Channel.CompleteAccount(bytes.ToArray()); using (var inBytes = new MemoryStream(data)) return(AccountCompletionResultViewProxy.Deserialize(inBytes)); } }
public void SendMessage(int cmid, string name, string message) { var parameters = new Dictionary <byte, object>(); using (var stream = new MemoryStream()) { Int32Proxy.Serialize(stream, cmid); StringProxy.Serialize(stream, name); StringProxy.Serialize(stream, message); parameters.Add(0, stream.ToArray()); } var data = new EventData((byte)ILobbyRoomEventsType.LobbyChatMessage, parameters); _peer.SendEvent(data, CommPeer.s_parameters); }
public static void Serialize(Stream stream, ItemPriceView instance) { using (var bytes = new MemoryStream()) { Int32Proxy.Serialize(bytes, instance.Amount); EnumProxy <UberStrikeCurrencyType> .Serialize(bytes, instance.Currency); Int32Proxy.Serialize(bytes, instance.Discount); EnumProxy <BuyingDurationType> .Serialize(bytes, instance.Duration); EnumProxy <PackType> .Serialize(bytes, instance.PackType); Int32Proxy.Serialize(bytes, instance.Price); bytes.WriteTo(stream); } }
// Token: 0x060011CB RID: 4555 RVA: 0x0001D9E0 File Offset: 0x0001BBE0 public static Coroutine GetLuckyDraw(int luckyDrawId, Action <LuckyDrawUnityView> callback, Action <Exception> handler) { Coroutine result; using (MemoryStream memoryStream = new MemoryStream()) { Int32Proxy.Serialize(memoryStream, luckyDrawId); result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IShopWebServiceContract", "ShopWebService", "GetLuckyDraw", memoryStream.ToArray(), delegate(byte[] data) { if (callback != null) { callback(LuckyDrawUnityViewProxy.Deserialize(new MemoryStream(data))); } }, handler)); } return(result); }
public static void Serialize(Stream stream, AuthenticateApplicationView instance) { int mask = 0; using (var bytes = new MemoryStream()) { if (instance.CommServer != null) { PhotonViewProxy.Serialize(bytes, instance.CommServer); } else { mask |= 1; } if (instance.EncryptionInitVector != null) { StringProxy.Serialize(bytes, instance.EncryptionInitVector); } else { mask |= 2; } if (instance.EncryptionPassPhrase != null) { StringProxy.Serialize(bytes, instance.EncryptionPassPhrase); } else { mask |= 4; } if (instance.GameServers != null) { ListProxy <PhotonView> .Serialize(bytes, instance.GameServers, PhotonViewProxy.Serialize); } else { mask |= 8; } BooleanProxy.Serialize(bytes, instance.IsEnabled); BooleanProxy.Serialize(bytes, instance.WarnPlayer); Int32Proxy.Serialize(stream, ~mask); bytes.WriteTo(stream); } }
// Token: 0x0600119C RID: 4508 RVA: 0x0001CD70 File Offset: 0x0001AF70 public static Coroutine MarkThreadAsRead(string authToken, int otherCmid, Action callback, Action <Exception> handler) { Coroutine result; using (MemoryStream memoryStream = new MemoryStream()) { StringProxy.Serialize(memoryStream, authToken); Int32Proxy.Serialize(memoryStream, otherCmid); result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IPrivateMessageWebServiceContract", "PrivateMessageWebService", "MarkThreadAsRead", memoryStream.ToArray(), delegate(byte[] data) { if (callback != null) { callback(); } }, handler)); } return(result); }
// Token: 0x0600115D RID: 4445 RVA: 0x0001C23C File Offset: 0x0001A43C public static Coroutine DeclineClanInvitation(int clanInvitationId, string authToken, Action <ClanRequestDeclineView> callback, Action <Exception> handler) { Coroutine result; using (MemoryStream memoryStream = new MemoryStream()) { Int32Proxy.Serialize(memoryStream, clanInvitationId); StringProxy.Serialize(memoryStream, authToken); result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IClanWebServiceContract", "ClanWebService", "DeclineClanInvitation", memoryStream.ToArray(), delegate(byte[] data) { if (callback != null) { callback(ClanRequestDeclineViewProxy.Deserialize(new MemoryStream(data))); } }, handler)); } return(result); }
// Token: 0x06001195 RID: 4501 RVA: 0x0001CAB8 File Offset: 0x0001ACB8 public static Coroutine BanPermanently(string authToken, int targetCmid, Action <bool> callback, Action <Exception> handler) { Coroutine result; using (MemoryStream memoryStream = new MemoryStream()) { StringProxy.Serialize(memoryStream, authToken); Int32Proxy.Serialize(memoryStream, targetCmid); result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IModerationWebServiceContract", "ModerationWebService", "BanPermanently", memoryStream.ToArray(), delegate(byte[] data) { if (callback != null) { callback(BooleanProxy.Deserialize(new MemoryStream(data))); } }, handler)); } return(result); }
// Token: 0x06001261 RID: 4705 RVA: 0x0001E834 File Offset: 0x0001CA34 public void SendUpdateFriendsList(int cmid) { using (MemoryStream memoryStream = new MemoryStream()) { Int32Proxy.Serialize(memoryStream, cmid); Dictionary <byte, object> customOpParameters = new Dictionary <byte, object> { { this.__id, memoryStream.ToArray() } }; if (this.sendOperation != null) { this.sendOperation(4, customOpParameters, true, 0, false); } } }
// Token: 0x06001198 RID: 4504 RVA: 0x0001CB40 File Offset: 0x0001AD40 public static Coroutine GetAllMessageThreadsForUser(string authToken, int pageNumber, Action <List <MessageThreadView> > callback, Action <Exception> handler) { Coroutine result; using (MemoryStream memoryStream = new MemoryStream()) { StringProxy.Serialize(memoryStream, authToken); Int32Proxy.Serialize(memoryStream, pageNumber); result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IPrivateMessageWebServiceContract", "PrivateMessageWebService", "GetAllMessageThreadsForUser", memoryStream.ToArray(), delegate(byte[] data) { if (callback != null) { callback(ListProxy <MessageThreadView> .Deserialize(new MemoryStream(data), new ListProxy <MessageThreadView> .Deserializer <MessageThreadView>(MessageThreadViewProxy.Deserialize))); } }, handler)); } return(result); }
// Token: 0x0600119B RID: 4507 RVA: 0x0001CCE8 File Offset: 0x0001AEE8 public static Coroutine GetMessageWithIdForCmid(string authToken, int messageId, Action <PrivateMessageView> callback, Action <Exception> handler) { Coroutine result; using (MemoryStream memoryStream = new MemoryStream()) { StringProxy.Serialize(memoryStream, authToken); Int32Proxy.Serialize(memoryStream, messageId); result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IPrivateMessageWebServiceContract", "PrivateMessageWebService", "GetMessageWithIdForCmid", memoryStream.ToArray(), delegate(byte[] data) { if (callback != null) { callback(PrivateMessageViewProxy.Deserialize(new MemoryStream(data))); } }, handler)); } return(result); }
// Token: 0x060011C4 RID: 4548 RVA: 0x0001D644 File Offset: 0x0001B844 public static Coroutine UseConsumableItem(string authToken, int itemId, Action <bool> callback, Action <Exception> handler) { Coroutine result; using (MemoryStream memoryStream = new MemoryStream()) { StringProxy.Serialize(memoryStream, authToken); Int32Proxy.Serialize(memoryStream, itemId); result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IShopWebServiceContract", "ShopWebService", "UseConsumableItem", memoryStream.ToArray(), delegate(byte[] data) { if (callback != null) { callback(BooleanProxy.Deserialize(new MemoryStream(data))); } }, handler)); } return(result); }