SmartCallRequest.cc 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #include <alibabacloud/dyvmsapi/model/SmartCallRequest.h>
  17. using AlibabaCloud::Dyvmsapi::Model::SmartCallRequest;
  18. SmartCallRequest::SmartCallRequest() :
  19. RpcServiceRequest("dyvmsapi", "2017-05-25", "SmartCall")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. SmartCallRequest::~SmartCallRequest()
  24. {}
  25. long SmartCallRequest::getResourceOwnerId()const
  26. {
  27. return resourceOwnerId_;
  28. }
  29. void SmartCallRequest::setResourceOwnerId(long resourceOwnerId)
  30. {
  31. resourceOwnerId_ = resourceOwnerId;
  32. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  33. }
  34. std::string SmartCallRequest::getVoiceCodeParam()const
  35. {
  36. return voiceCodeParam_;
  37. }
  38. void SmartCallRequest::setVoiceCodeParam(const std::string& voiceCodeParam)
  39. {
  40. voiceCodeParam_ = voiceCodeParam;
  41. setParameter("VoiceCodeParam", voiceCodeParam);
  42. }
  43. bool SmartCallRequest::getEarlyMediaAsr()const
  44. {
  45. return earlyMediaAsr_;
  46. }
  47. void SmartCallRequest::setEarlyMediaAsr(bool earlyMediaAsr)
  48. {
  49. earlyMediaAsr_ = earlyMediaAsr;
  50. setParameter("EarlyMediaAsr", earlyMediaAsr ? "true" : "false");
  51. }
  52. int SmartCallRequest::getSpeed()const
  53. {
  54. return speed_;
  55. }
  56. void SmartCallRequest::setSpeed(int speed)
  57. {
  58. speed_ = speed;
  59. setParameter("Speed", std::to_string(speed));
  60. }
  61. std::string SmartCallRequest::getAccessKeyId()const
  62. {
  63. return accessKeyId_;
  64. }
  65. void SmartCallRequest::setAccessKeyId(const std::string& accessKeyId)
  66. {
  67. accessKeyId_ = accessKeyId;
  68. setParameter("AccessKeyId", accessKeyId);
  69. }
  70. std::string SmartCallRequest::getAsrBaseId()const
  71. {
  72. return asrBaseId_;
  73. }
  74. void SmartCallRequest::setAsrBaseId(const std::string& asrBaseId)
  75. {
  76. asrBaseId_ = asrBaseId;
  77. setParameter("AsrBaseId", asrBaseId);
  78. }
  79. int SmartCallRequest::getSessionTimeout()const
  80. {
  81. return sessionTimeout_;
  82. }
  83. void SmartCallRequest::setSessionTimeout(int sessionTimeout)
  84. {
  85. sessionTimeout_ = sessionTimeout;
  86. setParameter("SessionTimeout", std::to_string(sessionTimeout));
  87. }
  88. std::string SmartCallRequest::getDynamicId()const
  89. {
  90. return dynamicId_;
  91. }
  92. void SmartCallRequest::setDynamicId(const std::string& dynamicId)
  93. {
  94. dynamicId_ = dynamicId;
  95. setParameter("DynamicId", dynamicId);
  96. }
  97. std::string SmartCallRequest::getCalledNumber()const
  98. {
  99. return calledNumber_;
  100. }
  101. void SmartCallRequest::setCalledNumber(const std::string& calledNumber)
  102. {
  103. calledNumber_ = calledNumber;
  104. setParameter("CalledNumber", calledNumber);
  105. }
  106. int SmartCallRequest::getTtsSpeed()const
  107. {
  108. return ttsSpeed_;
  109. }
  110. void SmartCallRequest::setTtsSpeed(int ttsSpeed)
  111. {
  112. ttsSpeed_ = ttsSpeed;
  113. setParameter("TtsSpeed", std::to_string(ttsSpeed));
  114. }
  115. std::string SmartCallRequest::getVoiceCode()const
  116. {
  117. return voiceCode_;
  118. }
  119. void SmartCallRequest::setVoiceCode(const std::string& voiceCode)
  120. {
  121. voiceCode_ = voiceCode;
  122. setParameter("VoiceCode", voiceCode);
  123. }
  124. std::string SmartCallRequest::getCalledShowNumber()const
  125. {
  126. return calledShowNumber_;
  127. }
  128. void SmartCallRequest::setCalledShowNumber(const std::string& calledShowNumber)
  129. {
  130. calledShowNumber_ = calledShowNumber;
  131. setParameter("CalledShowNumber", calledShowNumber);
  132. }
  133. int SmartCallRequest::getActionCodeTimeBreak()const
  134. {
  135. return actionCodeTimeBreak_;
  136. }
  137. void SmartCallRequest::setActionCodeTimeBreak(int actionCodeTimeBreak)
  138. {
  139. actionCodeTimeBreak_ = actionCodeTimeBreak;
  140. setParameter("ActionCodeTimeBreak", std::to_string(actionCodeTimeBreak));
  141. }
  142. bool SmartCallRequest::getTtsConf()const
  143. {
  144. return ttsConf_;
  145. }
  146. void SmartCallRequest::setTtsConf(bool ttsConf)
  147. {
  148. ttsConf_ = ttsConf;
  149. setParameter("TtsConf", ttsConf ? "true" : "false");
  150. }
  151. bool SmartCallRequest::getActionCodeBreak()const
  152. {
  153. return actionCodeBreak_;
  154. }
  155. void SmartCallRequest::setActionCodeBreak(bool actionCodeBreak)
  156. {
  157. actionCodeBreak_ = actionCodeBreak;
  158. setParameter("ActionCodeBreak", actionCodeBreak ? "true" : "false");
  159. }
  160. std::string SmartCallRequest::getResourceOwnerAccount()const
  161. {
  162. return resourceOwnerAccount_;
  163. }
  164. void SmartCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  165. {
  166. resourceOwnerAccount_ = resourceOwnerAccount;
  167. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  168. }
  169. bool SmartCallRequest::getRecordFlag()const
  170. {
  171. return recordFlag_;
  172. }
  173. void SmartCallRequest::setRecordFlag(bool recordFlag)
  174. {
  175. recordFlag_ = recordFlag;
  176. setParameter("RecordFlag", recordFlag ? "true" : "false");
  177. }
  178. long SmartCallRequest::getOwnerId()const
  179. {
  180. return ownerId_;
  181. }
  182. void SmartCallRequest::setOwnerId(long ownerId)
  183. {
  184. ownerId_ = ownerId;
  185. setParameter("OwnerId", std::to_string(ownerId));
  186. }
  187. int SmartCallRequest::getTtsVolume()const
  188. {
  189. return ttsVolume_;
  190. }
  191. void SmartCallRequest::setTtsVolume(int ttsVolume)
  192. {
  193. ttsVolume_ = ttsVolume;
  194. setParameter("TtsVolume", std::to_string(ttsVolume));
  195. }
  196. int SmartCallRequest::getStreamAsr()const
  197. {
  198. return streamAsr_;
  199. }
  200. void SmartCallRequest::setStreamAsr(int streamAsr)
  201. {
  202. streamAsr_ = streamAsr;
  203. setParameter("StreamAsr", std::to_string(streamAsr));
  204. }
  205. int SmartCallRequest::getVolume()const
  206. {
  207. return volume_;
  208. }
  209. void SmartCallRequest::setVolume(int volume)
  210. {
  211. volume_ = volume;
  212. setParameter("Volume", std::to_string(volume));
  213. }
  214. int SmartCallRequest::getMuteTime()const
  215. {
  216. return muteTime_;
  217. }
  218. void SmartCallRequest::setMuteTime(int muteTime)
  219. {
  220. muteTime_ = muteTime;
  221. setParameter("MuteTime", std::to_string(muteTime));
  222. }
  223. std::string SmartCallRequest::getOutId()const
  224. {
  225. return outId_;
  226. }
  227. void SmartCallRequest::setOutId(const std::string& outId)
  228. {
  229. outId_ = outId;
  230. setParameter("OutId", outId);
  231. }
  232. std::string SmartCallRequest::getAsrModelId()const
  233. {
  234. return asrModelId_;
  235. }
  236. void SmartCallRequest::setAsrModelId(const std::string& asrModelId)
  237. {
  238. asrModelId_ = asrModelId;
  239. setParameter("AsrModelId", asrModelId);
  240. }
  241. int SmartCallRequest::getPauseTime()const
  242. {
  243. return pauseTime_;
  244. }
  245. void SmartCallRequest::setPauseTime(int pauseTime)
  246. {
  247. pauseTime_ = pauseTime;
  248. setParameter("PauseTime", std::to_string(pauseTime));
  249. }
  250. std::string SmartCallRequest::getTtsStyle()const
  251. {
  252. return ttsStyle_;
  253. }
  254. void SmartCallRequest::setTtsStyle(const std::string& ttsStyle)
  255. {
  256. ttsStyle_ = ttsStyle;
  257. setParameter("TtsStyle", ttsStyle);
  258. }