CioMarketPopClient.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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_CIOMARKETPOP_CIOMARKETPOPCLIENT_H_
  17. #define ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPCLIENT_H_
  18. #include <future>
  19. #include <alibabacloud/core/AsyncCallerContext.h>
  20. #include <alibabacloud/core/EndpointProvider.h>
  21. #include <alibabacloud/core/RpcServiceClient.h>
  22. #include "CioMarketPopExport.h"
  23. #include "model/GetEveryOneSellsFormListRequest.h"
  24. #include "model/GetEveryOneSellsFormListResult.h"
  25. namespace AlibabaCloud
  26. {
  27. namespace CioMarketPop
  28. {
  29. class ALIBABACLOUD_CIOMARKETPOP_EXPORT CioMarketPopClient : public RpcServiceClient
  30. {
  31. public:
  32. typedef Outcome<Error, Model::GetEveryOneSellsFormListResult> GetEveryOneSellsFormListOutcome;
  33. typedef std::future<GetEveryOneSellsFormListOutcome> GetEveryOneSellsFormListOutcomeCallable;
  34. typedef std::function<void(const CioMarketPopClient*, const Model::GetEveryOneSellsFormListRequest&, const GetEveryOneSellsFormListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEveryOneSellsFormListAsyncHandler;
  35. CioMarketPopClient(const Credentials &credentials, const ClientConfiguration &configuration);
  36. CioMarketPopClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
  37. CioMarketPopClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
  38. ~CioMarketPopClient();
  39. GetEveryOneSellsFormListOutcome getEveryOneSellsFormList(const Model::GetEveryOneSellsFormListRequest &request)const;
  40. void getEveryOneSellsFormListAsync(const Model::GetEveryOneSellsFormListRequest& request, const GetEveryOneSellsFormListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
  41. GetEveryOneSellsFormListOutcomeCallable getEveryOneSellsFormListCallable(const Model::GetEveryOneSellsFormListRequest& request) const;
  42. private:
  43. std::shared_ptr<EndpointProvider> endpointProvider_;
  44. };
  45. }
  46. }
  47. #endif // !ALIBABACLOUD_CIOMARKETPOP_CIOMARKETPOPCLIENT_H_