ivr流程编辑器

Enum.cs 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. namespace HySoft.IVRFlowEditor.Model
  7. {
  8. public enum NumberType
  9. {
  10. [Description("具体值")]
  11. 具体值 = 1,
  12. [Description("变量")]
  13. 变量 = 2
  14. }
  15. public enum IVRFlowType
  16. {
  17. [Description("普通流程")]
  18. normal = 1,
  19. [Description("子流程")]
  20. sub = 2,
  21. [Description("自动流程")]
  22. auto = 3,
  23. }
  24. public enum FinishKeyType
  25. {
  26. [Description("*")]
  27. 星号 = -2,
  28. [Description("#")]
  29. 井号 = -1,
  30. [Description("0")]
  31. 零 = 0,
  32. [Description("1")]
  33. 一 = 1,
  34. [Description("2")]
  35. 二 = 2,
  36. [Description("3")]
  37. 三 = 3,
  38. [Description("4")]
  39. 四 = 4,
  40. [Description("5")]
  41. 五 = 5,
  42. [Description("6")]
  43. 六 = 6,
  44. [Description("7")]
  45. 七 = 7,
  46. [Description("8")]
  47. 八 = 8,
  48. [Description("9")]
  49. 九 = 9,
  50. }
  51. /// <summary>
  52. /// 放音内容类型
  53. /// </summary>
  54. public enum ContentType
  55. {
  56. [Description("声音文件")]
  57. 声音文件 = 1,
  58. [Description("需TTS转换的字符串")]
  59. 需TTS转换的字符串 = 2,
  60. [Description("需TTS转换的文本文件")]
  61. 需TTS转换的文本文件 = 3
  62. }
  63. /// <summary>
  64. /// TTS数字播报方式
  65. /// </summary>
  66. public enum TTSNumModeType
  67. {
  68. [Description("自动识别")]
  69. 自动识别 = 0,
  70. [Description("按值播报")]
  71. 按值播报 = 1,
  72. [Description("按数字播报")]
  73. 按数字播报 = 2,
  74. [Description("自动识别如果不能识别将按数字播报")]
  75. 自动识别如果不能识别将按数字播报 = 3,
  76. }
  77. /// <summary>
  78. /// 放音类型
  79. /// </summary>
  80. public enum PlayType
  81. {
  82. [Description("放音收号")]
  83. 放音收号 = 1,
  84. [Description("仅放音")]
  85. 仅放音 = 2,
  86. [Description("仅收号")]
  87. 仅收号 = 3,
  88. }
  89. /// <summary>
  90. /// TTS引擎库
  91. /// </summary>
  92. public enum TTSEngineType
  93. {
  94. [Description("默认")]
  95. 默认 = 0,
  96. }
  97. /// <summary>
  98. /// :座席分配策略,
  99. /// </summary>
  100. public enum StrategyType
  101. {
  102. [Description("循环接听")]
  103. 循环接听 = 1,
  104. [Description("最大空闲接听")]
  105. 最大空闲接听 = 2,
  106. [Description("最少接听接听")]
  107. 最少接听接听 = 3
  108. }
  109. /// <summary>
  110. /// 比较方式
  111. /// </summary>
  112. public enum CompareType
  113. {
  114. [Description("等于")]
  115. 等于 = 1,
  116. [Description("大于")]
  117. 大于 = 2,
  118. [Description("大于等于")]
  119. 大于等于 = 3,
  120. [Description("小于")]
  121. 小于 = 4,
  122. [Description("小于等于")]
  123. 小于等于 = 5,
  124. [Description("介之间")]
  125. 介之间 = 6
  126. }
  127. /// <summary>
  128. /// 比较类型,1数值比较、3字符串比较。
  129. /// </summary>
  130. public enum VarType
  131. {
  132. [Description("数值比较")]
  133. 数值比较 = 1,
  134. [Description("字符串比较")]
  135. 字符串比较 = 3,
  136. }
  137. /// <summary>
  138. /// :运算类型,
  139. /// </summary>
  140. public enum CalcuType
  141. {
  142. [Description("加法")]
  143. 加法 = 1,
  144. [Description("减法")]
  145. 减法 = 2,
  146. [Description("乘法")]
  147. 乘法 = 3,
  148. [Description("除法")]
  149. 除法 = 4,
  150. }
  151. /// <summary>
  152. /// 结果类型,1整数、2浮点数。
  153. /// </summary>
  154. public enum ResultType
  155. {
  156. [Description("整数")]
  157. 整数 = 1,
  158. [Description("浮点数")]
  159. 浮点数 = 2,
  160. }
  161. /// <summary>
  162. /// :字符串操作方式,1去左右空格、2截取、3替换、4匹配、5合并。
  163. /// </summary>
  164. public enum OpType
  165. {
  166. [Description("去左右空格")]
  167. 去左右空格 = 1,
  168. [Description("截取")]
  169. 截取 = 2,
  170. [Description("替换")]
  171. 替换 = 3,
  172. [Description("匹配4")]
  173. 匹配 = 4,
  174. [Description("合并")]
  175. 合并 = 5,
  176. }
  177. public enum IVRSerializerType
  178. {
  179. 节点=1,
  180. 元素=2,
  181. }
  182. }