public Task <IEnumerable <ResponseContent> > HandleIncomingRequestAsync(RequestContent request)
        {
            var guildId = swap16(BitConverter.ToUInt16(request.Data, 0));

            return(Task.FromResult <IEnumerable <ResponseContent> >(
                       new[]
            {
                request.CreateResponse(OpCodes.OPCODE_DATA_GET_GUILD_INFO_RESPONSE, guildManagementService.GetGuildInfo(guildId))
            }));
        }
示例#2
0
        public Task <IEnumerable <ResponseContent> > HandleIncomingRequestAsync(RequestContent request)
        {
            var u = BitConverter.ToUInt16(request.Data, 0).Swap();

            request.Client.currentGuildInvitaionSelection = u;
            return(Task.FromResult <IEnumerable <ResponseContent> >(new[]
            {
                request.CreateResponse(0x772D,
                                       _guildManagementService.GetGuildInfo(u))
            }));
        }
        public Task <IEnumerable <ResponseContent> > HandleIncomingRequestAsync(RequestContent request)
        {
            var guildId = swap16(BitConverter.ToUInt16(request.Data, 0));

            return(Task.FromResult <IEnumerable <ResponseContent> >(new[] { request.CreateResponse(0x789d, guildManagementService.GetGuildInfo(guildId)) }));
        }