SmartCallRequest.php 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. <?php
  2. // This file is auto-generated, don't edit it. Thanks.
  3. namespace AlibabaCloud\SDK\Dyvmsapi\V20170525\Models;
  4. use AlibabaCloud\Tea\Model;
  5. class SmartCallRequest extends Model
  6. {
  7. /**
  8. * @var int
  9. */
  10. public $ownerId;
  11. /**
  12. * @var string
  13. */
  14. public $resourceOwnerAccount;
  15. /**
  16. * @var int
  17. */
  18. public $resourceOwnerId;
  19. /**
  20. * @var string
  21. */
  22. public $calledShowNumber;
  23. /**
  24. * @var string
  25. */
  26. public $calledNumber;
  27. /**
  28. * @var string
  29. */
  30. public $voiceCode;
  31. /**
  32. * @var bool
  33. */
  34. public $recordFlag;
  35. /**
  36. * @var int
  37. */
  38. public $volume;
  39. /**
  40. * @var int
  41. */
  42. public $speed;
  43. /**
  44. * @var string
  45. */
  46. public $asrModelId;
  47. /**
  48. * @var int
  49. */
  50. public $pauseTime;
  51. /**
  52. * @var int
  53. */
  54. public $muteTime;
  55. /**
  56. * @var bool
  57. */
  58. public $actionCodeBreak;
  59. /**
  60. * @var string
  61. */
  62. public $outId;
  63. /**
  64. * @var string
  65. */
  66. public $dynamicId;
  67. /**
  68. * @var bool
  69. */
  70. public $earlyMediaAsr;
  71. /**
  72. * @var string
  73. */
  74. public $voiceCodeParam;
  75. /**
  76. * @var int
  77. */
  78. public $sessionTimeout;
  79. /**
  80. * @var int
  81. */
  82. public $actionCodeTimeBreak;
  83. /**
  84. * @var string
  85. */
  86. public $ttsStyle;
  87. /**
  88. * @var int
  89. */
  90. public $ttsVolume;
  91. /**
  92. * @var int
  93. */
  94. public $ttsSpeed;
  95. /**
  96. * @var bool
  97. */
  98. public $ttsConf;
  99. /**
  100. * @var string
  101. */
  102. public $asrBaseId;
  103. /**
  104. * @var int
  105. */
  106. public $streamAsr;
  107. protected $_name = [
  108. 'ownerId' => 'OwnerId',
  109. 'resourceOwnerAccount' => 'ResourceOwnerAccount',
  110. 'resourceOwnerId' => 'ResourceOwnerId',
  111. 'calledShowNumber' => 'CalledShowNumber',
  112. 'calledNumber' => 'CalledNumber',
  113. 'voiceCode' => 'VoiceCode',
  114. 'recordFlag' => 'RecordFlag',
  115. 'volume' => 'Volume',
  116. 'speed' => 'Speed',
  117. 'asrModelId' => 'AsrModelId',
  118. 'pauseTime' => 'PauseTime',
  119. 'muteTime' => 'MuteTime',
  120. 'actionCodeBreak' => 'ActionCodeBreak',
  121. 'outId' => 'OutId',
  122. 'dynamicId' => 'DynamicId',
  123. 'earlyMediaAsr' => 'EarlyMediaAsr',
  124. 'voiceCodeParam' => 'VoiceCodeParam',
  125. 'sessionTimeout' => 'SessionTimeout',
  126. 'actionCodeTimeBreak' => 'ActionCodeTimeBreak',
  127. 'ttsStyle' => 'TtsStyle',
  128. 'ttsVolume' => 'TtsVolume',
  129. 'ttsSpeed' => 'TtsSpeed',
  130. 'ttsConf' => 'TtsConf',
  131. 'asrBaseId' => 'AsrBaseId',
  132. 'streamAsr' => 'StreamAsr',
  133. ];
  134. public function validate()
  135. {
  136. }
  137. public function toMap()
  138. {
  139. $res = [];
  140. if (null !== $this->ownerId) {
  141. $res['OwnerId'] = $this->ownerId;
  142. }
  143. if (null !== $this->resourceOwnerAccount) {
  144. $res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
  145. }
  146. if (null !== $this->resourceOwnerId) {
  147. $res['ResourceOwnerId'] = $this->resourceOwnerId;
  148. }
  149. if (null !== $this->calledShowNumber) {
  150. $res['CalledShowNumber'] = $this->calledShowNumber;
  151. }
  152. if (null !== $this->calledNumber) {
  153. $res['CalledNumber'] = $this->calledNumber;
  154. }
  155. if (null !== $this->voiceCode) {
  156. $res['VoiceCode'] = $this->voiceCode;
  157. }
  158. if (null !== $this->recordFlag) {
  159. $res['RecordFlag'] = $this->recordFlag;
  160. }
  161. if (null !== $this->volume) {
  162. $res['Volume'] = $this->volume;
  163. }
  164. if (null !== $this->speed) {
  165. $res['Speed'] = $this->speed;
  166. }
  167. if (null !== $this->asrModelId) {
  168. $res['AsrModelId'] = $this->asrModelId;
  169. }
  170. if (null !== $this->pauseTime) {
  171. $res['PauseTime'] = $this->pauseTime;
  172. }
  173. if (null !== $this->muteTime) {
  174. $res['MuteTime'] = $this->muteTime;
  175. }
  176. if (null !== $this->actionCodeBreak) {
  177. $res['ActionCodeBreak'] = $this->actionCodeBreak;
  178. }
  179. if (null !== $this->outId) {
  180. $res['OutId'] = $this->outId;
  181. }
  182. if (null !== $this->dynamicId) {
  183. $res['DynamicId'] = $this->dynamicId;
  184. }
  185. if (null !== $this->earlyMediaAsr) {
  186. $res['EarlyMediaAsr'] = $this->earlyMediaAsr;
  187. }
  188. if (null !== $this->voiceCodeParam) {
  189. $res['VoiceCodeParam'] = $this->voiceCodeParam;
  190. }
  191. if (null !== $this->sessionTimeout) {
  192. $res['SessionTimeout'] = $this->sessionTimeout;
  193. }
  194. if (null !== $this->actionCodeTimeBreak) {
  195. $res['ActionCodeTimeBreak'] = $this->actionCodeTimeBreak;
  196. }
  197. if (null !== $this->ttsStyle) {
  198. $res['TtsStyle'] = $this->ttsStyle;
  199. }
  200. if (null !== $this->ttsVolume) {
  201. $res['TtsVolume'] = $this->ttsVolume;
  202. }
  203. if (null !== $this->ttsSpeed) {
  204. $res['TtsSpeed'] = $this->ttsSpeed;
  205. }
  206. if (null !== $this->ttsConf) {
  207. $res['TtsConf'] = $this->ttsConf;
  208. }
  209. if (null !== $this->asrBaseId) {
  210. $res['AsrBaseId'] = $this->asrBaseId;
  211. }
  212. if (null !== $this->streamAsr) {
  213. $res['StreamAsr'] = $this->streamAsr;
  214. }
  215. return $res;
  216. }
  217. /**
  218. * @param array $map
  219. *
  220. * @return SmartCallRequest
  221. */
  222. public static function fromMap($map = [])
  223. {
  224. $model = new self();
  225. if (isset($map['OwnerId'])) {
  226. $model->ownerId = $map['OwnerId'];
  227. }
  228. if (isset($map['ResourceOwnerAccount'])) {
  229. $model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
  230. }
  231. if (isset($map['ResourceOwnerId'])) {
  232. $model->resourceOwnerId = $map['ResourceOwnerId'];
  233. }
  234. if (isset($map['CalledShowNumber'])) {
  235. $model->calledShowNumber = $map['CalledShowNumber'];
  236. }
  237. if (isset($map['CalledNumber'])) {
  238. $model->calledNumber = $map['CalledNumber'];
  239. }
  240. if (isset($map['VoiceCode'])) {
  241. $model->voiceCode = $map['VoiceCode'];
  242. }
  243. if (isset($map['RecordFlag'])) {
  244. $model->recordFlag = $map['RecordFlag'];
  245. }
  246. if (isset($map['Volume'])) {
  247. $model->volume = $map['Volume'];
  248. }
  249. if (isset($map['Speed'])) {
  250. $model->speed = $map['Speed'];
  251. }
  252. if (isset($map['AsrModelId'])) {
  253. $model->asrModelId = $map['AsrModelId'];
  254. }
  255. if (isset($map['PauseTime'])) {
  256. $model->pauseTime = $map['PauseTime'];
  257. }
  258. if (isset($map['MuteTime'])) {
  259. $model->muteTime = $map['MuteTime'];
  260. }
  261. if (isset($map['ActionCodeBreak'])) {
  262. $model->actionCodeBreak = $map['ActionCodeBreak'];
  263. }
  264. if (isset($map['OutId'])) {
  265. $model->outId = $map['OutId'];
  266. }
  267. if (isset($map['DynamicId'])) {
  268. $model->dynamicId = $map['DynamicId'];
  269. }
  270. if (isset($map['EarlyMediaAsr'])) {
  271. $model->earlyMediaAsr = $map['EarlyMediaAsr'];
  272. }
  273. if (isset($map['VoiceCodeParam'])) {
  274. $model->voiceCodeParam = $map['VoiceCodeParam'];
  275. }
  276. if (isset($map['SessionTimeout'])) {
  277. $model->sessionTimeout = $map['SessionTimeout'];
  278. }
  279. if (isset($map['ActionCodeTimeBreak'])) {
  280. $model->actionCodeTimeBreak = $map['ActionCodeTimeBreak'];
  281. }
  282. if (isset($map['TtsStyle'])) {
  283. $model->ttsStyle = $map['TtsStyle'];
  284. }
  285. if (isset($map['TtsVolume'])) {
  286. $model->ttsVolume = $map['TtsVolume'];
  287. }
  288. if (isset($map['TtsSpeed'])) {
  289. $model->ttsSpeed = $map['TtsSpeed'];
  290. }
  291. if (isset($map['TtsConf'])) {
  292. $model->ttsConf = $map['TtsConf'];
  293. }
  294. if (isset($map['AsrBaseId'])) {
  295. $model->asrBaseId = $map['AsrBaseId'];
  296. }
  297. if (isset($map['StreamAsr'])) {
  298. $model->streamAsr = $map['StreamAsr'];
  299. }
  300. return $model;
  301. }
  302. }