コード例 #1
0
 /// <summary>
 /// 推送消息给Hotel
 /// </summary>
 /// <param name="msg"></param>
 public override void PushToHotel(UInt32 userID, UInt32 version, UInt64 roomID, UInt32 cmdID, IMessage msg)
 {
     Package.Types.Frame package = new Package.Types.Frame()
     {
         Type    = Package.Types.FrameType.PushMessage,
         Version = version,
         CmdId   = cmdID,
         UserId  = userID,
         Message = ByteUtils.ObjectToByteString(msg)
     };
     serverImp.PushToHotel(roomID, package).Wait();
 }