| 1234567891011121314151617181920212223242526272829 |
- using System.Runtime.InteropServices;
- namespace Muchinfo.MTPClient.Data.Quote.Structs
- {
- /// <summary>
- /// 发送订阅商品结构体
- /// </summary>
- [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
- public struct SubGoods
- {
- /// <summary>
- /// 订阅状态:0:未订阅;1:订阅成功;2订阅失败
- /// </summary>
- [MarshalAs(UnmanagedType.U1)]
- public byte State;
- /// <summary>
- /// 交易所代码
- /// </summary>
- [MarshalAs(UnmanagedType.U1)]
- public byte ExchangeCode;
- /// <summary>
- /// 商品编码
- /// </summary>
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
- public string GoodsCode;
- }
- }
|