ivr流程编辑器

IVRSocket.cs 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using HySoft.IVRFlowEditor.IVRControlUtility;
  6. using HySoft.IVRFlowEditor.Model;
  7. using HySoft.IVRFlowEditor.IVRControl;
  8. namespace HySoft.IVRFlowEditor.IVRControlUtility
  9. {
  10. /// <summary>
  11. /// CELL_SOCKET
  12. /// </summary>
  13. [IVRAttribute("CELL_SOCKET", IVRSerializerType.节点, 1)]
  14. public class IVRSocket : IVRControlBase
  15. {
  16. public IVRSocket(string name)
  17. {
  18. this.Name = name;
  19. CtlProperty = new CtlIVRSocket(this);
  20. IVRInputVar = new List<IVRInputVar>();
  21. OutputVar = new List<IVRDefaultVar>();
  22. }
  23. /// <summary>
  24. /// :操作类型标识。
  25. /// </summary>
  26. [IVRAttribute("OpType", IVRSerializerType.元素, 2)]
  27. public OpType OpType
  28. { get; set; }
  29. /// <summary>
  30. /// :远端地址。
  31. /// </summary>
  32. [IVRAttribute("FarIp", IVRSerializerType.元素, 3)]
  33. public string FarIp
  34. { get; set; }
  35. /// <summary>
  36. /// :远端端口。
  37. /// </summary>
  38. [IVRAttribute("FarPort", IVRSerializerType.元素, 4)]
  39. public int FarPort
  40. { get; set; }
  41. /// <summary>
  42. /// :接收超时,单位为秒。
  43. /// </summary>
  44. [IVRAttribute("RecvTimeOut", IVRSerializerType.元素, 5)]
  45. public int RecvTimeOut
  46. { get; set; }
  47. /// <summary>
  48. /// :执行成功跳转节点编号。
  49. /// </summary>
  50. [IVRAttribute("SuccessPos", IVRSerializerType.元素, 6)]
  51. public IVRControlBase SuccessPos
  52. { get; set; }
  53. /// <summary>
  54. /// :执行失败跳转节点编号。
  55. /// </summary>
  56. [IVRAttribute("FailPos", IVRSerializerType.元素, 7)]
  57. public IVRControlBase FailPos
  58. { get; set; }
  59. [IVRAttribute("IVRInputVar", IVRSerializerType.节点, 8)]
  60. public List<IVRInputVar> IVRInputVar
  61. { get; set; }
  62. [IVRAttribute("OutputVar", IVRSerializerType.节点, 9)]
  63. public List<IVRDefaultVar> OutputVar
  64. { get; set; }
  65. }
  66. /// <summary>
  67. /// 节点
  68. /// </summary>
  69. [IVRAttribute("IVRInputVar", IVRSerializerType.节点, 1)]
  70. public class IVRInputVar
  71. {
  72. public IVRInputVar()
  73. { Control = new CtlIVRInputVar(this); }
  74. [IVRAttribute("VarType", IVRSerializerType.元素, 2)]
  75. public NumberType VarType
  76. { get; set; }
  77. [IVRAttribute("VarVal", IVRSerializerType.元素, 1)]
  78. public string VarVal
  79. { get; set; }
  80. public CtlIVRInputVar Control
  81. { get; set; }
  82. }
  83. }