GetJobByPhoneNumberResult.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. #ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETJOBBYPHONENUMBERRESULT_H_
  17. #define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETJOBBYPHONENUMBERRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/outboundbot/OutboundBotExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace OutboundBot
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetJobByPhoneNumberResult : public ServiceResult
  30. {
  31. public:
  32. struct Job
  33. {
  34. struct Contact
  35. {
  36. std::string role;
  37. std::string honorific;
  38. std::string referenceId;
  39. std::string state;
  40. std::string phoneNumber;
  41. std::string contactId;
  42. std::string contactName;
  43. std::string jobId;
  44. };
  45. struct KeyValuePair
  46. {
  47. std::string value;
  48. std::string key;
  49. };
  50. struct Task
  51. {
  52. struct Contact2
  53. {
  54. std::string role;
  55. std::string honorific;
  56. std::string referenceId;
  57. std::string state;
  58. std::string phoneNumber;
  59. std::string contactId;
  60. std::string contactName;
  61. std::string jobId;
  62. };
  63. struct ConversationDetail
  64. {
  65. struct SummaryItem
  66. {
  67. std::string category;
  68. std::string content;
  69. std::string summaryName;
  70. };
  71. std::string script;
  72. std::vector<ConversationDetail::SummaryItem> summary1;
  73. long timestamp;
  74. std::string speaker;
  75. };
  76. std::string status;
  77. std::string chatbotId;
  78. long planedTime;
  79. std::string calledNumber;
  80. std::string taskId;
  81. std::string scenarioId;
  82. long actualTime;
  83. std::string callId;
  84. std::vector<Task::ConversationDetail> conversation;
  85. int duration;
  86. std::string brief;
  87. std::string callingNumber;
  88. Contact2 contact2;
  89. std::string jobId;
  90. };
  91. struct SummaryItem3
  92. {
  93. std::string category;
  94. std::string content;
  95. std::string summaryName;
  96. };
  97. std::string status;
  98. std::vector<Job::Task> tasks;
  99. std::string scenarioId;
  100. int priority;
  101. std::string strategyId;
  102. std::vector<Job::KeyValuePair> extras;
  103. std::string groupId;
  104. std::vector<Job::Contact> contacts;
  105. std::string referenceId;
  106. int systemPriority;
  107. std::string failureReason;
  108. std::vector<Job::SummaryItem3> summary;
  109. std::string jobId;
  110. std::vector<std::string> callingNumbers;
  111. };
  112. GetJobByPhoneNumberResult();
  113. explicit GetJobByPhoneNumberResult(const std::string &payload);
  114. ~GetJobByPhoneNumberResult();
  115. std::string getMessage()const;
  116. std::vector<Job> getJobs()const;
  117. int getHttpStatusCode()const;
  118. std::string getCode()const;
  119. bool getSuccess()const;
  120. protected:
  121. void parse(const std::string &payload);
  122. private:
  123. std::string message_;
  124. std::vector<Job> jobs_;
  125. int httpStatusCode_;
  126. std::string code_;
  127. bool success_;
  128. };
  129. }
  130. }
  131. }
  132. #endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETJOBBYPHONENUMBERRESULT_H_