DescribePlanogramPositionsResult.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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_CLOUDESL_MODEL_DESCRIBEPLANOGRAMPOSITIONSRESULT_H_
  17. #define ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMPOSITIONSRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/cloudesl/CloudeslExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Cloudesl
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_CLOUDESL_EXPORT DescribePlanogramPositionsResult : public ServiceResult
  30. {
  31. public:
  32. struct LayerInfo
  33. {
  34. struct ShelfPositionInfo
  35. {
  36. int facing;
  37. float offsetTo;
  38. std::string column;
  39. std::string itemTitle;
  40. std::string itemBarCode;
  41. float offsetFrom;
  42. float depth;
  43. };
  44. std::string layerOrigin;
  45. std::string railCode;
  46. int layer;
  47. std::vector<LayerInfo::ShelfPositionInfo> shelfPositionInfos;
  48. };
  49. DescribePlanogramPositionsResult();
  50. explicit DescribePlanogramPositionsResult(const std::string &payload);
  51. ~DescribePlanogramPositionsResult();
  52. std::string getMessage()const;
  53. std::string getStoreId()const;
  54. std::string getShelfType()const;
  55. std::string getShelf()const;
  56. std::string getDynamicCode()const;
  57. std::vector<LayerInfo> getLayerInfos()const;
  58. std::string getDynamicMessage()const;
  59. std::string getErrorCode()const;
  60. std::string getErrorMessage()const;
  61. std::string getCode()const;
  62. bool getSuccess()const;
  63. protected:
  64. void parse(const std::string &payload);
  65. private:
  66. std::string message_;
  67. std::string storeId_;
  68. std::string shelfType_;
  69. std::string shelf_;
  70. std::string dynamicCode_;
  71. std::vector<LayerInfo> layerInfos_;
  72. std::string dynamicMessage_;
  73. std::string errorCode_;
  74. std::string errorMessage_;
  75. std::string code_;
  76. bool success_;
  77. };
  78. }
  79. }
  80. }
  81. #endif // !ALIBABACLOUD_CLOUDESL_MODEL_DESCRIBEPLANOGRAMPOSITIONSRESULT_H_