XSPACE SDK Auto Released By xiaoyan.yan,Version:1.34.9

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-03-12 12:28:26 +08:00
parent a6d33574bd
commit 85e2f3ebe4
15 changed files with 849 additions and 1 deletions

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_XSPACE_XSPACECLIENT_H_
#define ALIBABACLOUD_XSPACE_XSPACECLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RoaServiceClient.h>
#include "XspaceExport.h"
#include "model/QueryCustomerByIdRequest.h"
#include "model/QueryCustomerByIdResult.h"
#include "model/QueryCustomerByPhoneRequest.h"
#include "model/QueryCustomerByPhoneResult.h"
namespace AlibabaCloud
{
namespace Xspace
{
class ALIBABACLOUD_XSPACE_EXPORT XspaceClient : public RoaServiceClient
{
public:
typedef Outcome<Error, Model::QueryCustomerByIdResult> QueryCustomerByIdOutcome;
typedef std::future<QueryCustomerByIdOutcome> QueryCustomerByIdOutcomeCallable;
typedef std::function<void(const XspaceClient*, const Model::QueryCustomerByIdRequest&, const QueryCustomerByIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCustomerByIdAsyncHandler;
typedef Outcome<Error, Model::QueryCustomerByPhoneResult> QueryCustomerByPhoneOutcome;
typedef std::future<QueryCustomerByPhoneOutcome> QueryCustomerByPhoneOutcomeCallable;
typedef std::function<void(const XspaceClient*, const Model::QueryCustomerByPhoneRequest&, const QueryCustomerByPhoneOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCustomerByPhoneAsyncHandler;
XspaceClient(const Credentials &credentials, const ClientConfiguration &configuration);
XspaceClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
XspaceClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~XspaceClient();
QueryCustomerByIdOutcome queryCustomerById(const Model::QueryCustomerByIdRequest &request)const;
void queryCustomerByIdAsync(const Model::QueryCustomerByIdRequest& request, const QueryCustomerByIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryCustomerByIdOutcomeCallable queryCustomerByIdCallable(const Model::QueryCustomerByIdRequest& request) const;
QueryCustomerByPhoneOutcome queryCustomerByPhone(const Model::QueryCustomerByPhoneRequest &request)const;
void queryCustomerByPhoneAsync(const Model::QueryCustomerByPhoneRequest& request, const QueryCustomerByPhoneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryCustomerByPhoneOutcomeCallable queryCustomerByPhoneCallable(const Model::QueryCustomerByPhoneRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_XSPACE_XSPACECLIENT_H_

View File

@@ -0,0 +1,32 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_XSPACE_XSPACEEXPORT_H_
#define ALIBABACLOUD_XSPACE_XSPACEEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_XSPACE_LIBRARY)
# define ALIBABACLOUD_XSPACE_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_XSPACE_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_XSPACE_EXPORT
#endif
#endif // !ALIBABACLOUD_XSPACE_XSPACEEXPORT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_XSPACE_MODEL_QUERYCUSTOMERBYIDREQUEST_H_
#define ALIBABACLOUD_XSPACE_MODEL_QUERYCUSTOMERBYIDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/xspace/XspaceExport.h>
namespace AlibabaCloud
{
namespace Xspace
{
namespace Model
{
class ALIBABACLOUD_XSPACE_EXPORT QueryCustomerByIdRequest : public RoaServiceRequest
{
public:
QueryCustomerByIdRequest();
~QueryCustomerByIdRequest();
std::string getId()const;
void setId(const std::string& id);
private:
std::string id_;
};
}
}
}
#endif // !ALIBABACLOUD_XSPACE_MODEL_QUERYCUSTOMERBYIDREQUEST_H_

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_XSPACE_MODEL_QUERYCUSTOMERBYIDRESULT_H_
#define ALIBABACLOUD_XSPACE_MODEL_QUERYCUSTOMERBYIDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/xspace/XspaceExport.h>
namespace AlibabaCloud
{
namespace Xspace
{
namespace Model
{
class ALIBABACLOUD_XSPACE_EXPORT QueryCustomerByIdResult : public ServiceResult
{
public:
struct Data
{
struct CustomizeFields
{
std::string abcUrl;
std::vector<std::string> associatePersonList;
std::string cid;
};
std::string email;
std::string nick;
std::string phone;
CustomizeFields customizeFields;
std::string photo;
std::string id;
std::string realName;
std::string gender;
std::string detail;
std::vector<std::string> tags;
};
QueryCustomerByIdResult();
explicit QueryCustomerByIdResult(const std::string &payload);
~QueryCustomerByIdResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_XSPACE_MODEL_QUERYCUSTOMERBYIDRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_XSPACE_MODEL_QUERYCUSTOMERBYPHONEREQUEST_H_
#define ALIBABACLOUD_XSPACE_MODEL_QUERYCUSTOMERBYPHONEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/xspace/XspaceExport.h>
namespace AlibabaCloud
{
namespace Xspace
{
namespace Model
{
class ALIBABACLOUD_XSPACE_EXPORT QueryCustomerByPhoneRequest : public RoaServiceRequest
{
public:
QueryCustomerByPhoneRequest();
~QueryCustomerByPhoneRequest();
std::string getPhone()const;
void setPhone(const std::string& phone);
private:
std::string phone_;
};
}
}
}
#endif // !ALIBABACLOUD_XSPACE_MODEL_QUERYCUSTOMERBYPHONEREQUEST_H_

View File

@@ -0,0 +1,78 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_XSPACE_MODEL_QUERYCUSTOMERBYPHONERESULT_H_
#define ALIBABACLOUD_XSPACE_MODEL_QUERYCUSTOMERBYPHONERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/xspace/XspaceExport.h>
namespace AlibabaCloud
{
namespace Xspace
{
namespace Model
{
class ALIBABACLOUD_XSPACE_EXPORT QueryCustomerByPhoneResult : public ServiceResult
{
public:
struct DataItem
{
struct CustomizeFields
{
std::string mainAccountUid;
std::string abcUrl;
std::vector<std::string> associatePersonList;
std::string distributionLevel;
std::string cid;
};
std::string email;
std::string phone;
std::string nick;
CustomizeFields customizeFields;
std::string photo;
std::string id;
std::string gender;
std::string realName;
std::string detail;
std::vector<std::string> tags;
};
QueryCustomerByPhoneResult();
explicit QueryCustomerByPhoneResult(const std::string &payload);
~QueryCustomerByPhoneResult();
std::string getMessage()const;
std::vector<DataItem> getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::vector<DataItem> data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_XSPACE_MODEL_QUERYCUSTOMERBYPHONERESULT_H_