Exemplo n.º 1
0
        public override void ToonList(Google.ProtocolBuffers.IRpcController controller, ToonListRequest request, Action <ToonListResponse> done)
        {
            var response = ToonListResponse.CreateBuilder();

            response.AddToons(new EntityId.Builder {
                High = 0x300016200004433,
                Low  = 2
            });
            done(response.Build());
        }
Exemplo n.º 2
0
        public override void ToonList(Google.ProtocolBuffers.IRpcController controller, ToonListRequest request, Action <ToonListResponse> done)
        {
            Logger.Trace("ToonList()");
            var builder = ToonListResponse.CreateBuilder();

            if (Client.Account.Toons.Count > 0)
            {
                foreach (var pair in Client.Account.Toons)
                {
                    builder.AddToons(pair.Value.BnetEntityID);
                }
            }

            done(builder.Build());
        }