using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;

namespace RCUHost.Protocols
{
	/// <summary>
	/// 搜索主机 Packet RCU -> 服务器
	/// </summary>
	[StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
	public struct SearchHostPacketReplyV2
	{
        /// <summary>
        /// DNS：新主机才有
        /// </summary>
        [MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst = 4)]
        public byte[] DNS;

        /// <summary>
        /// 房型编号：新主机才有
        /// </summary>
        [MarshalAsAttribute(UnmanagedType.ByValTStr, SizeConst = 16)]
        public string RoomTypeCode;

        /// <summary>
        /// 房号：新主机才有
        /// </summary>
        [MarshalAsAttribute(UnmanagedType.ByValTStr, SizeConst = 16)]
        public string RoomNumber;

        /// <summary>
        /// 房型ID：新主机才有
        /// </summary>
        public int RoomTypeID;

        /// <summary>
        /// 主机ID：新主机才有
        /// </summary>
        public int HostID;

        /// <summary>
        /// CRC16
        /// </summary>
        public ushort CRC;
	}
}
