Esempio n. 1
0
        // Token: 0x060011C9 RID: 4553 RVA: 0x0001D8E0 File Offset: 0x0001BAE0
        public static Coroutine GetAllLuckyDraws(Action <List <LuckyDrawUnityView> > callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IShopWebServiceContract", "ShopWebService", "GetAllLuckyDraws_1", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(ListProxy <LuckyDrawUnityView> .Deserialize(new MemoryStream(data), new ListProxy <LuckyDrawUnityView> .Deserializer <LuckyDrawUnityView>(LuckyDrawUnityViewProxy.Deserialize)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 2
0
        // Token: 0x06001168 RID: 4456 RVA: 0x0001C814 File Offset: 0x0001AA14
        public static Coroutine test(Action <int> callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IClanWebServiceContract", "ClanWebService", "test", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(Int32Proxy.Deserialize(new MemoryStream(data)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 3
0
        // Token: 0x060011BC RID: 4540 RVA: 0x0001D1B4 File Offset: 0x0001B3B4
        public static Coroutine GetShop(Action <UberStrikeItemShopClientView> callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IShopWebServiceContract", "ShopWebService", "GetShop", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(UberStrikeItemShopClientViewProxy.Deserialize(new MemoryStream(data)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 4
0
        // Token: 0x060011F1 RID: 4593 RVA: 0x0001DC10 File Offset: 0x0001BE10
        public static Coroutine GenerateNonDuplicatedMemberNames(string username, Action <List <string> > callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                StringProxy.Serialize(memoryStream, username);
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IUserWebServiceContract", "UserWebService", "GenerateNonDuplicatedMemberNames", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(ListProxy <string> .Deserialize(new MemoryStream(data), new ListProxy <string> .Deserializer <string>(StringProxy.Deserialize)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 5
0
        // Token: 0x060011F0 RID: 4592 RVA: 0x0001DB8C File Offset: 0x0001BD8C
        public static Coroutine IsDuplicateMemberName(string username, Action <bool> callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                StringProxy.Serialize(memoryStream, username);
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IUserWebServiceContract", "UserWebService", "IsDuplicateMemberName", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(BooleanProxy.Deserialize(new MemoryStream(data)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 6
0
        // Token: 0x060011F2 RID: 4594 RVA: 0x0001DC94 File Offset: 0x0001BE94
        public static Coroutine GetMemberWallet(string authToken, Action <MemberWalletView> callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                StringProxy.Serialize(memoryStream, authToken);
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IUserWebServiceContract", "UserWebService", "GetMemberWallet", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(MemberWalletViewProxy.Deserialize(new MemoryStream(data)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 7
0
        // Token: 0x06001163 RID: 4451 RVA: 0x0001C570 File Offset: 0x0001A770
        public static Coroutine GetAllGroupInvitations(string authToken, Action <List <GroupInvitationView> > callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                StringProxy.Serialize(memoryStream, authToken);
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IClanWebServiceContract", "ClanWebService", "GetAllGroupInvitations", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(ListProxy <GroupInvitationView> .Deserialize(new MemoryStream(data), new ListProxy <GroupInvitationView> .Deserializer <GroupInvitationView>(GroupInvitationViewProxy.Deserialize)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 8
0
        // Token: 0x060011C3 RID: 4547 RVA: 0x0001D5C0 File Offset: 0x0001B7C0
        public static Coroutine VerifyReceipt(string hashedReceipt, Action <bool> callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                StringProxy.Serialize(memoryStream, hashedReceipt);
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IShopWebServiceContract", "ShopWebService", "VerifyReceipt", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(BooleanProxy.Deserialize(new MemoryStream(data)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 9
0
        // Token: 0x06001165 RID: 4453 RVA: 0x0001C67C File Offset: 0x0001A87C
        public static Coroutine CreateClan(GroupCreationView createClanData, Action <ClanCreationReturnView> callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                GroupCreationViewProxy.Serialize(memoryStream, createClanData);
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IClanWebServiceContract", "ClanWebService", "CreateClan", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(ClanCreationReturnViewProxy.Deserialize(new MemoryStream(data)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 10
0
        // 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);
        }
Esempio n. 11
0
        // Token: 0x0600113A RID: 4410 RVA: 0x0001BADC File Offset: 0x00019CDC
        public static Coroutine GetConfigurationData(string clientVersion, Action <ApplicationConfigurationView> callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                StringProxy.Serialize(memoryStream, clientVersion);
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IApplicationWebServiceContract", "ApplicationWebService", "GetConfigurationData", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(ApplicationConfigurationViewProxy.Deserialize(new MemoryStream(data)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 12
0
        // Token: 0x0600118B RID: 4491 RVA: 0x0001C9A0 File Offset: 0x0001ABA0
        public static Coroutine CheckFacebookSession(string cmuneAuthToken, string facebookIDString, Action <bool> callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                StringProxy.Serialize(memoryStream, cmuneAuthToken);
                StringProxy.Serialize(memoryStream, facebookIDString);
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IFacebookWebServiceContract", "FacebookWebService", "CheckFacebookSession", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(BooleanProxy.Deserialize(new MemoryStream(data)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 13
0
        // 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);
        }
Esempio n. 14
0
        // 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);
        }
Esempio n. 15
0
        // 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: 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);
        }
Esempio n. 17
0
        // Token: 0x0600118A RID: 4490 RVA: 0x0001C918 File Offset: 0x0001AB18
        public static Coroutine AttachFacebookAccountToCmuneAccount(string authToken, string facebookId, Action <MemberOperationResult> callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                StringProxy.Serialize(memoryStream, authToken);
                StringProxy.Serialize(memoryStream, facebookId);
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IFacebookWebServiceContract", "FacebookWebService", "AttachFacebookAccountToCmuneAccount", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(EnumProxy <MemberOperationResult> .Deserialize(new MemoryStream(data)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 18
0
        // Token: 0x0600118C RID: 4492 RVA: 0x0001CA28 File Offset: 0x0001AC28
        public static Coroutine GetFacebookFriendsList(List <string> facebookIds, Action <List <PublicProfileView> > callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                ListProxy <string> .Serialize(memoryStream, facebookIds, new ListProxy <string> .Serializer <string>(StringProxy.Serialize));

                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IFacebookWebServiceContract", "FacebookWebService", "GetFacebookFriendsList", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(ListProxy <PublicProfileView> .Deserialize(new MemoryStream(data), new ListProxy <PublicProfileView> .Deserializer <PublicProfileView>(PublicProfileViewProxy.Deserialize)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 19
0
        // Token: 0x060011FB RID: 4603 RVA: 0x0001E160 File Offset: 0x0001C360
        public static Coroutine GetMemberListSessionData(List <string> authTokens, Action <List <MemberSessionDataView> > callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                ListProxy <string> .Serialize(memoryStream, authTokens, new ListProxy <string> .Serializer <string>(StringProxy.Serialize));

                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IUserWebServiceContract", "UserWebService", "GetMemberListSessionData", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(ListProxy <MemberSessionDataView> .Deserialize(new MemoryStream(data), new ListProxy <MemberSessionDataView> .Deserializer <MemberSessionDataView>(MemberSessionDataViewProxy.Deserialize)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 20
0
        // 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);
        }
        // Token: 0x060011AE RID: 4526 RVA: 0x0001D0A4 File Offset: 0x0001B2A4
        public static Coroutine DeleteContact(string authToken, int contactCmid, Action <MemberOperationResult> callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                StringProxy.Serialize(memoryStream, authToken);
                Int32Proxy.Serialize(memoryStream, contactCmid);
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IRelationshipWebServiceContract", "RelationshipWebService", "DeleteContact", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(EnumProxy <MemberOperationResult> .Deserialize(new MemoryStream(data)));
                    }
                }, handler));
            }
            return(result);
        }
        // Token: 0x060011AF RID: 4527 RVA: 0x0001D12C File Offset: 0x0001B32C
        public static Coroutine GetContactsByGroups(string authToken, bool populateFacebookIds, Action <List <ContactGroupView> > callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                StringProxy.Serialize(memoryStream, authToken);
                BooleanProxy.Serialize(memoryStream, populateFacebookIds);
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IRelationshipWebServiceContract", "RelationshipWebService", "GetContactsByGroups", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(ListProxy <ContactGroupView> .Deserialize(new MemoryStream(data), new ListProxy <ContactGroupView> .Deserializer <ContactGroupView>(ContactGroupViewProxy.Deserialize)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 23
0
        // Token: 0x060011C6 RID: 4550 RVA: 0x0001D748 File Offset: 0x0001B948
        public static Coroutine GetAllMysteryBoxs(BundleCategoryType bundleCategoryType, Action <List <MysteryBoxUnityView> > callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                EnumProxy <BundleCategoryType> .Serialize(memoryStream, bundleCategoryType);

                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IShopWebServiceContract", "ShopWebService", "GetAllMysteryBoxs_2", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(ListProxy <MysteryBoxUnityView> .Deserialize(new MemoryStream(data), new ListProxy <MysteryBoxUnityView> .Deserializer <MysteryBoxUnityView>(MysteryBoxUnityViewProxy.Deserialize)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 24
0
        // 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);
        }
Esempio n. 25
0
        // Token: 0x06001189 RID: 4489 RVA: 0x0001C890 File Offset: 0x0001AA90
        public static Coroutine ClaimFacebookGift(string authToken, string facebookRequestObjectId, Action <ClaimFacebookGiftView> callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                StringProxy.Serialize(memoryStream, authToken);
                StringProxy.Serialize(memoryStream, facebookRequestObjectId);
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IFacebookWebServiceContract", "FacebookWebService", "ClaimFacebookGift", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(ClaimFacebookGiftViewProxy.Deserialize(new MemoryStream(data)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 26
0
        // Token: 0x060011BF RID: 4543 RVA: 0x0001D390 File Offset: 0x0001B590
        public static Coroutine GetBundles(ChannelType channel, Action <List <BundleView> > callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                EnumProxy <ChannelType> .Serialize(memoryStream, channel);

                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IShopWebServiceContract", "ShopWebService", "GetBundles", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(ListProxy <BundleView> .Deserialize(new MemoryStream(data), new ListProxy <BundleView> .Deserializer <BundleView>(BundleViewProxy.Deserialize)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 27
0
        // Token: 0x0600113B RID: 4411 RVA: 0x0001BB60 File Offset: 0x00019D60
        public static Coroutine SetMatchScore(string clientVersion, MatchStats scoringView, string serverAuthentication, Action callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                StringProxy.Serialize(memoryStream, clientVersion);
                MatchStatsProxy.Serialize(memoryStream, scoringView);
                StringProxy.Serialize(memoryStream, serverAuthentication);
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IApplicationWebServiceContract", "ApplicationWebService", "SetMatchScore", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback();
                    }
                }, handler));
            }
            return(result);
        }
        // Token: 0x060011AA RID: 4522 RVA: 0x0001CE80 File Offset: 0x0001B080
        public static Coroutine SendContactRequest(string authToken, int receiverCmid, string message, Action callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                StringProxy.Serialize(memoryStream, authToken);
                Int32Proxy.Serialize(memoryStream, receiverCmid);
                StringProxy.Serialize(memoryStream, message);
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IRelationshipWebServiceContract", "RelationshipWebService", "SendContactRequest", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback();
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 29
0
        // Token: 0x06001139 RID: 4409 RVA: 0x0001BA54 File Offset: 0x00019C54
        public static Coroutine GetMaps(string clientVersion, DefinitionType clientType, Action <List <MapView> > callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                StringProxy.Serialize(memoryStream, clientVersion);
                EnumProxy <DefinitionType> .Serialize(memoryStream, clientType);

                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IApplicationWebServiceContract", "ApplicationWebService", "GetMaps", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(ListProxy <MapView> .Deserialize(new MemoryStream(data), new ListProxy <MapView> .Deserializer <MapView>(MapViewProxy.Deserialize)));
                    }
                }, handler));
            }
            return(result);
        }
Esempio n. 30
0
        // Token: 0x06001166 RID: 4454 RVA: 0x0001C700 File Offset: 0x0001A900
        public static Coroutine TransferOwnership(int groupId, string authToken, int newLeaderCmid, Action <int> callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                Int32Proxy.Serialize(memoryStream, groupId);
                StringProxy.Serialize(memoryStream, authToken);
                Int32Proxy.Serialize(memoryStream, newLeaderCmid);
                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IClanWebServiceContract", "ClanWebService", "TransferOwnership", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(Int32Proxy.Deserialize(new MemoryStream(data)));
                    }
                }, handler));
            }
            return(result);
        }