SaleAdapter.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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/4/6 18:17:11
  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.Sale;
  19. namespace Muchinfo.MTPClient.Adapter.Abstract
  20. {
  21. public abstract class SaleAdapter
  22. {
  23. /// <summary>
  24. /// 申购交易下单
  25. /// </summary>
  26. /// <param name="entrustOrder"></param>
  27. /// <returns></returns>
  28. public abstract byte[] ToSaleEntrustOrder(NewEntrustOrder entrustOrder);
  29. /// <summary>
  30. /// 申购委托回应转换
  31. /// </summary>
  32. /// <param name="responeData"></param>
  33. /// <returns></returns>
  34. public abstract ResponeEntity<OrderDetail> ToSaleOrder(object responeData);
  35. /// <summary>
  36. ///托管申请请求
  37. /// </summary>
  38. /// <param name="depositOrder">托管计划</param>
  39. /// <returns></returns>
  40. public abstract byte[] ToDepositReqBytes(DepositOrder depositOrder);
  41. /// <summary>
  42. /// 托管申请回应
  43. /// </summary>
  44. /// <param name="responeData"></param>
  45. /// <returns></returns>
  46. public abstract ResponeEntity<DepositOrder> ToLocalDepositEntity(object responeData);
  47. }
  48. }