Esempio n. 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());
        }
Esempio n. 2
0
		public override void GetChannelInfo(Google.ProtocolBuffers.IRpcController controller, GetChannelInfoRequest request, Action<GetChannelInfoResponse> done) {
			throw new NotImplementedException();
		}
Esempio n. 3
0
 public override void GetChannelInfo(IRpcController controller, GetChannelInfoRequest request, Action<GetChannelInfoResponse> done)
 {
     ProtoOutputBuffer.Write(request.GetType(), request.ToString());
 }
Esempio n. 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));
 }
Esempio n. 5
0
 public override void GetChannelInfo(IRpcController controller, GetChannelInfoRequest request, Action <GetChannelInfoResponse> done)
 {
     throw new NotImplementedException();
 }