SearchAggregateObjectResult.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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_CDRS_MODEL_SEARCHAGGREGATEOBJECTRESULT_H_
  17. #define ALIBABACLOUD_CDRS_MODEL_SEARCHAGGREGATEOBJECTRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/cdrs/CDRSExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace CDRS
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_CDRS_EXPORT SearchAggregateObjectResult : public ServiceResult
  30. {
  31. public:
  32. struct Data
  33. {
  34. struct BodyListItem
  35. {
  36. std::string targetImageUrl;
  37. int rightBottomX;
  38. std::string deviceID;
  39. int rightBottomY;
  40. std::string sourceImageUrl;
  41. int leftTopY;
  42. int leftTopX;
  43. float deviceLongitude;
  44. std::string objectType;
  45. float score;
  46. std::string personId;
  47. float deviceLatitude;
  48. std::string shotTime;
  49. std::string deviceName;
  50. };
  51. struct FaceListItem
  52. {
  53. std::string targetImageUrl;
  54. int rightBottomX;
  55. std::string deviceID;
  56. int rightBottomY;
  57. std::string sourceImageUrl;
  58. int leftTopY;
  59. int leftTopX;
  60. float deviceLongitude;
  61. std::string objectType;
  62. float score;
  63. std::string personId;
  64. float deviceLatitude;
  65. std::string shotTime;
  66. std::string deviceName;
  67. };
  68. struct MotorListItem
  69. {
  70. std::string targetImageUrl;
  71. int rightBottomX;
  72. std::string deviceID;
  73. int rightBottomY;
  74. std::string sourceImageUrl;
  75. int leftTopY;
  76. int leftTopX;
  77. float deviceLongitude;
  78. std::string objectType;
  79. float score;
  80. std::string personId;
  81. float deviceLatitude;
  82. std::string shotTime;
  83. std::string deviceName;
  84. };
  85. struct NonMotorListItem
  86. {
  87. std::string targetImageUrl;
  88. int rightBottomX;
  89. std::string deviceID;
  90. int rightBottomY;
  91. std::string sourceImageUrl;
  92. int leftTopY;
  93. int leftTopX;
  94. float deviceLongitude;
  95. std::string objectType;
  96. float score;
  97. std::string personId;
  98. float deviceLatitude;
  99. std::string shotTime;
  100. std::string deviceName;
  101. };
  102. std::vector<NonMotorListItem> nonMotorList;
  103. std::vector<BodyListItem> bodyList;
  104. std::vector<FaceListItem> faceList;
  105. std::vector<MotorListItem> motorList;
  106. };
  107. SearchAggregateObjectResult();
  108. explicit SearchAggregateObjectResult(const std::string &payload);
  109. ~SearchAggregateObjectResult();
  110. std::string getMessage()const;
  111. long getPageSize()const;
  112. int getTotal()const;
  113. Data getData()const;
  114. std::string getCode()const;
  115. bool getSuccess()const;
  116. protected:
  117. void parse(const std::string &payload);
  118. private:
  119. std::string message_;
  120. long pageSize_;
  121. int total_;
  122. Data data_;
  123. std::string code_;
  124. bool success_;
  125. };
  126. }
  127. }
  128. }
  129. #endif // !ALIBABACLOUD_CDRS_MODEL_SEARCHAGGREGATEOBJECTRESULT_H_