MessageAdapter.cs 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. //----------------------------------------------------------------
  6. //Module Name: $safeprojectname$
  7. //Purpose:
  8. //CopyRight: Muchinfo
  9. //History:
  10. //----------------------------------------------------------------
  11. //DateTime 2016/1/27 20:20:00
  12. //Author
  13. //Description Create
  14. //----------------------------------------------------------------
  15. using Muchinfo.MTPClient.Data;
  16. using Muchinfo.MTPClient.Data.Model;
  17. using Muchinfo.MTPClient.Data.Model.Account;
  18. using Muchinfo.MTPClient.Data.Model.Listing;
  19. using Muchinfo.MTPClient.Data.Model.Message;
  20. using Muchinfo.MTPClient.Data.Quote;
  21. using tas;
  22. using Muchinfo.MTPClient.Data.Model.Delivery;
  23. namespace Muchinfo.MTPClient.Adapter.Abstract
  24. {
  25. public abstract class MessageAdapter
  26. {
  27. /// <summary>
  28. /// 登出转换
  29. /// </summary>
  30. /// <param name="data"></param>
  31. /// <returns></returns>
  32. public abstract ErrorEntity LogoutRspConvert(object data);
  33. /// <summary>
  34. /// 成交通知
  35. /// </summary>
  36. /// <param name="data"></param>
  37. /// <returns></returns>
  38. public abstract OrderCompleteArg ComplateNotice(object data);
  39. /// <summary>
  40. /// 头寸变化通知
  41. /// </summary>
  42. /// <param name="data"></param>
  43. /// <returns></returns>
  44. public abstract PosChangedNtfModel PosChangedReturnMessage(object data);
  45. /// <summary>
  46. /// 市场状态变更通知
  47. /// </summary>
  48. /// <param name="data"></param>
  49. /// <returns></returns>
  50. public abstract MarketStatusChangeNtfModel MarketStatusChangeNtf(object data);
  51. /// <summary>
  52. /// 资金变化
  53. /// </summary>
  54. /// <param name="data">数据内容</param>
  55. /// <returns></returns>
  56. public abstract string ConvertAmountNotice(object data);
  57. /// <summary>
  58. /// 投资者公告
  59. /// </summary>
  60. /// <param name="data"></param>
  61. /// <returns></returns>
  62. public abstract RiskControl RiskCtrlBltNotice(object data);
  63. public abstract NoticeMsg NotifyBulletin(object data);
  64. /// <summary>
  65. /// 会员风控信息
  66. /// </summary>
  67. /// <param name="data"></param>
  68. /// <returns></returns>
  69. public abstract RiskControl RiskCtrlMemberNotice(object data);
  70. /// <summary>
  71. /// 会员斩仓
  72. /// </summary>
  73. /// <param name="data"></param>
  74. /// <returns></returns>
  75. public abstract RiskControl RiskCtrlMemberBreak(object data);
  76. /// <summary>
  77. /// 预埋单转委托
  78. /// </summary>
  79. /// <param name="data"></param>
  80. /// <returns></returns>
  81. public abstract PrepostTransferOrder PrepostTransferOrderNtf(object data);
  82. /// <summary>
  83. /// 操作变更通知
  84. /// </summary>
  85. /// <param name="data"></param>
  86. /// <returns></returns>
  87. // public abstract string OperateChangeNotifyAd(object data);
  88. /// <summary>
  89. /// 账号变更
  90. /// </summary>
  91. /// <param name="data"></param>
  92. /// <returns></returns>
  93. public abstract string AccountChangeNotifyRspNotifyAd(object data);
  94. /// <summary>
  95. /// 开休市计划通知
  96. /// </summary>
  97. /// <param name="data"></param>
  98. /// <returns></returns>
  99. public abstract List<MarketTypeStatus> MarketStatusChangeNotifyAd(object data);
  100. /// <summary>
  101. /// 交收审核通知
  102. /// </summary>
  103. /// <param name="data"></param>
  104. /// <returns></returns>
  105. public abstract DeliveryAuditNtfModel DeliveryReturnMessage(object data);
  106. /// <summary>
  107. /// 提货审核通知
  108. /// </summary>
  109. /// <param name="data"></param>
  110. /// <returns></returns>
  111. public abstract OutStoreAuditNtfModel OutStoreAuditReturnMessage(object data);
  112. /// <summary>
  113. /// 交割商品到期提货通知
  114. /// </summary>
  115. /// <param name="data"></param>
  116. /// <returns></returns>
  117. public abstract GoodsCloseDateNtfModel GoodsCloseDateReturnMessage(object data);
  118. /// <summary>
  119. /// 通用通知
  120. /// </summary>
  121. /// <param name="data"></param>
  122. /// <returns></returns>
  123. public abstract CommonNotifyModel CommonNotifyReturnMessage(object data);
  124. /// <summary>
  125. /// 会员风控通知
  126. /// </summary>
  127. /// <param name="data"></param>
  128. /// <returns></returns>
  129. public abstract RiskControlMemberModel RiskControlMemberReturnMessage(object data);
  130. /// <summary>
  131. /// 投资者风控通知
  132. /// </summary>
  133. /// <param name="data"></param>
  134. /// <returns></returns>
  135. public abstract RiskControlInvestorModel RiskControlInvestorReturnMessage(object data);
  136. /// <summary>
  137. /// 转换挂牌通知
  138. /// </summary>
  139. /// <param name="responeData">响应数据</param>
  140. /// <returns></returns>
  141. public abstract ResponeEntity<ListingNoticeModel> ToListingNoticeModel(object responeData);
  142. /// <summary>
  143. /// 解释消息头
  144. /// </summary>
  145. /// <param name="responeData"></param>
  146. /// <returns></returns>
  147. public abstract uint ToMessageHeadFunCode(object responeData);
  148. /// <summary>
  149. /// 转换市场结算完成通知
  150. /// </summary>
  151. /// <param name="responeData"></param>
  152. /// <returns></returns>
  153. public abstract MarketStatusComplete ToMarketStatusRsp(object responeData);
  154. }
  155. }