UploadVoiceDataRequest.cc 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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/smartsales/model/UploadVoiceDataRequest.h>
  17. using AlibabaCloud::SmartSales::Model::UploadVoiceDataRequest;
  18. UploadVoiceDataRequest::UploadVoiceDataRequest()
  19. : RpcServiceRequest("smartsales", "2022-08-18", "UploadVoiceData") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. UploadVoiceDataRequest::~UploadVoiceDataRequest() {}
  23. std::string UploadVoiceDataRequest::getAgentKey() const {
  24. return agentKey_;
  25. }
  26. void UploadVoiceDataRequest::setAgentKey(const std::string &agentKey) {
  27. agentKey_ = agentKey;
  28. setParameter(std::string("AgentKey"), agentKey);
  29. }
  30. std::string UploadVoiceDataRequest::getAccessKeyId() const {
  31. return accessKeyId_;
  32. }
  33. void UploadVoiceDataRequest::setAccessKeyId(const std::string &accessKeyId) {
  34. accessKeyId_ = accessKeyId;
  35. setParameter(std::string("AccessKeyId"), accessKeyId);
  36. }
  37. std::vector<UploadVoiceDataRequest::VoiceDataList> UploadVoiceDataRequest::getVoiceDataList() const {
  38. return voiceDataList_;
  39. }
  40. void UploadVoiceDataRequest::setVoiceDataList(const std::vector<UploadVoiceDataRequest::VoiceDataList> &voiceDataList) {
  41. voiceDataList_ = voiceDataList;
  42. for(int dep1 = 0; dep1 != voiceDataList.size(); dep1++) {
  43. setParameter(std::string("VoiceDataList") + "." + std::to_string(dep1 + 1) + ".CustomParamJson", voiceDataList[dep1].customParamJson);
  44. setParameter(std::string("VoiceDataList") + "." + std::to_string(dep1 + 1) + ".ClueStatusRemark", voiceDataList[dep1].clueStatusRemark);
  45. setParameter(std::string("VoiceDataList") + "." + std::to_string(dep1 + 1) + ".BeginTime", std::to_string(voiceDataList[dep1].beginTime));
  46. setParameter(std::string("VoiceDataList") + "." + std::to_string(dep1 + 1) + ".CallChannel", std::to_string(voiceDataList[dep1].callChannel));
  47. setParameter(std::string("VoiceDataList") + "." + std::to_string(dep1 + 1) + ".BusinessResult", std::to_string(voiceDataList[dep1].businessResult));
  48. setParameter(std::string("VoiceDataList") + "." + std::to_string(dep1 + 1) + ".CustomCallId", voiceDataList[dep1].customCallId);
  49. setParameter(std::string("VoiceDataList") + "." + std::to_string(dep1 + 1) + ".SalesPersonId", std::to_string(voiceDataList[dep1].salesPersonId));
  50. setParameter(std::string("VoiceDataList") + "." + std::to_string(dep1 + 1) + ".TeamId", std::to_string(voiceDataList[dep1].teamId));
  51. setParameter(std::string("VoiceDataList") + "." + std::to_string(dep1 + 1) + ".CustomerId", voiceDataList[dep1].customerId);
  52. setParameter(std::string("VoiceDataList") + "." + std::to_string(dep1 + 1) + ".FileUrl", voiceDataList[dep1].fileUrl);
  53. setParameter(std::string("VoiceDataList") + "." + std::to_string(dep1 + 1) + ".ClientTrackNumber", std::to_string(voiceDataList[dep1].clientTrackNumber));
  54. setParameter(std::string("VoiceDataList") + "." + std::to_string(dep1 + 1) + ".CustomerName", voiceDataList[dep1].customerName);
  55. setParameter(std::string("VoiceDataList") + "." + std::to_string(dep1 + 1) + ".CallType", std::to_string(voiceDataList[dep1].callType));
  56. setParameter(std::string("VoiceDataList") + "." + std::to_string(dep1 + 1) + ".CalleeNumber", voiceDataList[dep1].calleeNumber);
  57. setParameter(std::string("VoiceDataList") + "." + std::to_string(dep1 + 1) + ".SalesPersonName", voiceDataList[dep1].salesPersonName);
  58. setParameter(std::string("VoiceDataList") + "." + std::to_string(dep1 + 1) + ".CallerNumber", voiceDataList[dep1].callerNumber);
  59. }
  60. }