namespace LSServerService { using System; using System.Runtime.InteropServices; [StructLayout(LayoutKind.Sequential, Pack=1)] public struct S2C_ReqBackgroundDownload { public const uint ID = 65544; public MsgHeader header; public int dwErrId; public int reqType; public int dwCount; public S2C_ReqBackgroundDownload(bool autoSet) { this.dwErrId = this.dwCount = 0; this.reqType = 1; this.header = new MsgHeader(); this.header.dwType = 65544; this.header.dwLen = (uint) Marshal.SizeOf(this); } public bool isDownloadModel { get { return (this.reqType == 1); } } public bool isGetFileListModel { get { return (this.reqType == 2); } } } }