SubGoods.cs 779 B

1234567891011121314151617181920212223242526272829
  1. using System.Runtime.InteropServices;
  2. namespace Muchinfo.MTPClient.Data.Quote.Structs
  3. {
  4. /// <summary>
  5. /// 发送订阅商品结构体
  6. /// </summary>
  7. [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
  8. public struct SubGoods
  9. {
  10. /// <summary>
  11. /// 订阅状态:0:未订阅;1:订阅成功;2订阅失败
  12. /// </summary>
  13. [MarshalAs(UnmanagedType.U1)]
  14. public byte State;
  15. /// <summary>
  16. /// 交易所代码
  17. /// </summary>
  18. [MarshalAs(UnmanagedType.U1)]
  19. public byte ExchangeCode;
  20. /// <summary>
  21. /// 商品编码
  22. /// </summary>
  23. [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
  24. public string GoodsCode;
  25. }
  26. }