Пример #1
0
        public override void GetChannelInfo(IRpcController controller, GetChannelInfoRequest request, Action<GetChannelInfoResponse> done)
        {
            Logger.Trace("GetChannelInfoRequest() to channel {0}:{1} by toon {2}", request.ChannelId.High, request.ChannelId.Low, Client.CurrentToon.Name);

            var builder = bnet.protocol.channel.GetChannelInfoResponse.CreateBuilder();
            var channel = ChannelManager.GetChannelByEntityId(request.ChannelId);
            if (channel != null)
                builder.SetChannelInfo(channel.Info);
            else
                Logger.Warn("Channel does not exist!");

            done(builder.Build());
        }
Пример #2
0
		public override void GetChannelInfo(Google.ProtocolBuffers.IRpcController controller, GetChannelInfoRequest request, Action<GetChannelInfoResponse> done) {
			throw new NotImplementedException();
		}
Пример #3
0
 public override void GetChannelInfo(IRpcController controller, GetChannelInfoRequest request, Action<GetChannelInfoResponse> done)
 {
     ProtoOutputBuffer.Write(request.GetType(), request.ToString());
 }
Пример #4
0
 public override void GetChannelInfo(IRpcController controller, GetChannelInfoRequest request, Action<GetChannelInfoResponse> done)
 {
     Logger.Warn(String.Format("GetChannelInfoRequest() channel: {0}:{1} by toon: {2}",
                                request.ChannelId.High,
                                request.ChannelId.Low, Client.CurrentToon.Name));
 }
Пример #5
0
 public override void GetChannelInfo(IRpcController controller, GetChannelInfoRequest request, Action <GetChannelInfoResponse> done)
 {
     throw new NotImplementedException();
 }