Public beta version.

This commit is contained in:
sdk-team
2020-06-18 10:39:31 +08:00
parent 57416bd581
commit e611ec2db4
67 changed files with 4255 additions and 69 deletions

View File

@@ -0,0 +1,51 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/ActiveMeetingCodeRequest.h>
using AlibabaCloud::Aliyuncvc::Model::ActiveMeetingCodeRequest;
ActiveMeetingCodeRequest::ActiveMeetingCodeRequest() :
RpcServiceRequest("aliyuncvc", "2019-09-19", "ActiveMeetingCode")
{
setMethod(HttpRequest::Method::Post);
}
ActiveMeetingCodeRequest::~ActiveMeetingCodeRequest()
{}
std::string ActiveMeetingCodeRequest::getMeetingUUID()const
{
return meetingUUID_;
}
void ActiveMeetingCodeRequest::setMeetingUUID(const std::string& meetingUUID)
{
meetingUUID_ = meetingUUID;
setParameter("MeetingUUID", meetingUUID);
}
std::string ActiveMeetingCodeRequest::getMeetingCode()const
{
return meetingCode_;
}
void ActiveMeetingCodeRequest::setMeetingCode(const std::string& meetingCode)
{
meetingCode_ = meetingCode;
setParameter("MeetingCode", meetingCode);
}

View File

@@ -0,0 +1,75 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/ActiveMeetingCodeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aliyuncvc;
using namespace AlibabaCloud::Aliyuncvc::Model;
ActiveMeetingCodeResult::ActiveMeetingCodeResult() :
ServiceResult()
{}
ActiveMeetingCodeResult::ActiveMeetingCodeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ActiveMeetingCodeResult::~ActiveMeetingCodeResult()
{}
void ActiveMeetingCodeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto meetingInfoNode = value["MeetingInfo"];
if(!meetingInfoNode["ValidDate"].isNull())
meetingInfo_.validDate = std::stol(meetingInfoNode["ValidDate"].asString());
if(!meetingInfoNode["MeetingCode"].isNull())
meetingInfo_.meetingCode = meetingInfoNode["MeetingCode"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
ActiveMeetingCodeResult::MeetingInfo ActiveMeetingCodeResult::getMeetingInfo()const
{
return meetingInfo_;
}
std::string ActiveMeetingCodeResult::getMessage()const
{
return message_;
}
int ActiveMeetingCodeResult::getErrorCode()const
{
return errorCode_;
}
bool ActiveMeetingCodeResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/CheckMeetingCodeRequest.h>
using AlibabaCloud::Aliyuncvc::Model::CheckMeetingCodeRequest;
CheckMeetingCodeRequest::CheckMeetingCodeRequest() :
RpcServiceRequest("aliyuncvc", "2019-09-19", "CheckMeetingCode")
{
setMethod(HttpRequest::Method::Post);
}
CheckMeetingCodeRequest::~CheckMeetingCodeRequest()
{}
std::string CheckMeetingCodeRequest::getMeetingCode()const
{
return meetingCode_;
}
void CheckMeetingCodeRequest::setMeetingCode(const std::string& meetingCode)
{
meetingCode_ = meetingCode;
setBodyParameter("MeetingCode", meetingCode);
}
std::string CheckMeetingCodeRequest::getUserId()const
{
return userId_;
}
void CheckMeetingCodeRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setBodyParameter("UserId", userId);
}

View File

@@ -0,0 +1,92 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/CheckMeetingCodeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aliyuncvc;
using namespace AlibabaCloud::Aliyuncvc::Model;
CheckMeetingCodeResult::CheckMeetingCodeResult() :
ServiceResult()
{}
CheckMeetingCodeResult::CheckMeetingCodeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckMeetingCodeResult::~CheckMeetingCodeResult()
{}
void CheckMeetingCodeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto meetingInfoNode = value["MeetingInfo"];
if(!meetingInfoNode["MeetingDomain"].isNull())
meetingInfo_.meetingDomain = meetingInfoNode["MeetingDomain"].asString();
if(!meetingInfoNode["MeetingToken"].isNull())
meetingInfo_.meetingToken = meetingInfoNode["MeetingToken"].asString();
if(!meetingInfoNode["MeetingCode"].isNull())
meetingInfo_.meetingCode = meetingInfoNode["MeetingCode"].asString();
if(!meetingInfoNode["MemberUUID"].isNull())
meetingInfo_.memberUUID = meetingInfoNode["MemberUUID"].asString();
if(!meetingInfoNode["ClientAppId"].isNull())
meetingInfo_.clientAppId = meetingInfoNode["ClientAppId"].asString();
if(!meetingInfoNode["MeetingUUID"].isNull())
meetingInfo_.meetingUUID = meetingInfoNode["MeetingUUID"].asString();
if(!meetingInfoNode["MeetingAppId"].isNull())
meetingInfo_.meetingAppId = meetingInfoNode["MeetingAppId"].asString();
auto slsInfoNode = meetingInfoNode["SlsInfo"];
if(!slsInfoNode["LogServiceEndpoint"].isNull())
meetingInfo_.slsInfo.logServiceEndpoint = slsInfoNode["LogServiceEndpoint"].asString();
if(!slsInfoNode["Logstore"].isNull())
meetingInfo_.slsInfo.logstore = slsInfoNode["Logstore"].asString();
if(!slsInfoNode["Project"].isNull())
meetingInfo_.slsInfo.project = slsInfoNode["Project"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
CheckMeetingCodeResult::MeetingInfo CheckMeetingCodeResult::getMeetingInfo()const
{
return meetingInfo_;
}
std::string CheckMeetingCodeResult::getMessage()const
{
return message_;
}
int CheckMeetingCodeResult::getErrorCode()const
{
return errorCode_;
}
bool CheckMeetingCodeResult::getSuccess()const
{
return success_;
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Aliyuncvc::Model::CreateMeetingRequest;
CreateMeetingRequest::CreateMeetingRequest() :
RpcServiceRequest("aliyuncvc", "2019-10-30", "CreateMeeting")
RpcServiceRequest("aliyuncvc", "2019-09-19", "CreateMeeting")
{
setMethod(HttpRequest::Method::Post);
}
@@ -49,47 +49,3 @@ void CreateMeetingRequest::setUserId(const std::string& userId)
setBodyParameter("UserId", userId);
}
bool CreateMeetingRequest::getOpenPasswordFlag()const
{
return openPasswordFlag_;
}
void CreateMeetingRequest::setOpenPasswordFlag(bool openPasswordFlag)
{
openPasswordFlag_ = openPasswordFlag;
setBodyParameter("OpenPasswordFlag", openPasswordFlag ? "true" : "false");
}
std::string CreateMeetingRequest::getPassword()const
{
return password_;
}
void CreateMeetingRequest::setPassword(const std::string& password)
{
password_ = password;
setBodyParameter("Password", password);
}
bool CreateMeetingRequest::getMasterEnableFlag()const
{
return masterEnableFlag_;
}
void CreateMeetingRequest::setMasterEnableFlag(bool masterEnableFlag)
{
masterEnableFlag_ = masterEnableFlag;
setBodyParameter("MasterEnableFlag", masterEnableFlag ? "true" : "false");
}
std::string CreateMeetingRequest::getMeetingMode()const
{
return meetingMode_;
}
void CreateMeetingRequest::setMeetingMode(const std::string& meetingMode)
{
meetingMode_ = meetingMode;
setBodyParameter("MeetingMode", meetingMode);
}

View File

@@ -0,0 +1,128 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/CreateUserEvaluationsRequest.h>
using AlibabaCloud::Aliyuncvc::Model::CreateUserEvaluationsRequest;
CreateUserEvaluationsRequest::CreateUserEvaluationsRequest() :
RpcServiceRequest("aliyuncvc", "2019-09-19", "CreateUserEvaluations")
{
setMethod(HttpRequest::Method::Post);
}
CreateUserEvaluationsRequest::~CreateUserEvaluationsRequest()
{}
std::string CreateUserEvaluationsRequest::getMemo()const
{
return memo_;
}
void CreateUserEvaluationsRequest::setMemo(const std::string& memo)
{
memo_ = memo;
setParameter("Memo", memo);
}
std::string CreateUserEvaluationsRequest::getDescription()const
{
return description_;
}
void CreateUserEvaluationsRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long CreateUserEvaluationsRequest::getCreateDate()const
{
return createDate_;
}
void CreateUserEvaluationsRequest::setCreateDate(long createDate)
{
createDate_ = createDate;
setParameter("CreateDate", std::to_string(createDate));
}
std::string CreateUserEvaluationsRequest::getMemberUUID()const
{
return memberUUID_;
}
void CreateUserEvaluationsRequest::setMemberUUID(const std::string& memberUUID)
{
memberUUID_ = memberUUID;
setParameter("MemberUUID", memberUUID);
}
std::string CreateUserEvaluationsRequest::getUserId()const
{
return userId_;
}
void CreateUserEvaluationsRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setParameter("UserId", userId);
}
std::string CreateUserEvaluationsRequest::getEvaluation()const
{
return evaluation_;
}
void CreateUserEvaluationsRequest::setEvaluation(const std::string& evaluation)
{
evaluation_ = evaluation;
setParameter("Evaluation", evaluation);
}
std::string CreateUserEvaluationsRequest::getScore()const
{
return score_;
}
void CreateUserEvaluationsRequest::setScore(const std::string& score)
{
score_ = score;
setParameter("Score", score);
}
std::string CreateUserEvaluationsRequest::getMeetingUUID()const
{
return meetingUUID_;
}
void CreateUserEvaluationsRequest::setMeetingUUID(const std::string& meetingUUID)
{
meetingUUID_ = meetingUUID;
setParameter("MeetingUUID", meetingUUID);
}
std::string CreateUserEvaluationsRequest::getAppId()const
{
return appId_;
}
void CreateUserEvaluationsRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setParameter("AppId", appId);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/CreateUserEvaluationsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aliyuncvc;
using namespace AlibabaCloud::Aliyuncvc::Model;
CreateUserEvaluationsResult::CreateUserEvaluationsResult() :
ServiceResult()
{}
CreateUserEvaluationsResult::CreateUserEvaluationsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateUserEvaluationsResult::~CreateUserEvaluationsResult()
{}
void CreateUserEvaluationsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string CreateUserEvaluationsResult::getMessage()const
{
return message_;
}
std::string CreateUserEvaluationsResult::getErrorCode()const
{
return errorCode_;
}
bool CreateUserEvaluationsResult::getSuccess()const
{
return success_;
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Aliyuncvc::Model::CreateUserRequest;
CreateUserRequest::CreateUserRequest() :
RpcServiceRequest("aliyuncvc", "2019-10-30", "CreateUser")
RpcServiceRequest("aliyuncvc", "2019-09-19", "CreateUser")
{
setMethod(HttpRequest::Method::Post);
}

View File

@@ -45,8 +45,6 @@ void CreateUserResult::parse(const std::string &payload)
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["UserId"].isNull())
userId_ = value["UserId"].asString();
}
@@ -55,11 +53,6 @@ std::string CreateUserResult::getMessage()const
return message_;
}
std::string CreateUserResult::getUserId()const
{
return userId_;
}
int CreateUserResult::getErrorCode()const
{
return errorCode_;

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Aliyuncvc::Model::DeleteUserRequest;
DeleteUserRequest::DeleteUserRequest() :
RpcServiceRequest("aliyuncvc", "2019-10-30", "DeleteUser")
RpcServiceRequest("aliyuncvc", "2019-09-19", "DeleteUser")
{
setMethod(HttpRequest::Method::Post);
}

View File

@@ -0,0 +1,73 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/ListCommoditiesRequest.h>
using AlibabaCloud::Aliyuncvc::Model::ListCommoditiesRequest;
ListCommoditiesRequest::ListCommoditiesRequest() :
RpcServiceRequest("aliyuncvc", "2019-09-19", "ListCommodities")
{
setMethod(HttpRequest::Method::Post);
}
ListCommoditiesRequest::~ListCommoditiesRequest()
{}
std::string ListCommoditiesRequest::getEndTime()const
{
return endTime_;
}
void ListCommoditiesRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string ListCommoditiesRequest::getStartTime()const
{
return startTime_;
}
void ListCommoditiesRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
int ListCommoditiesRequest::getPageNumber()const
{
return pageNumber_;
}
void ListCommoditiesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
int ListCommoditiesRequest::getPageSize()const
{
return pageSize_;
}
void ListCommoditiesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,89 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/ListCommoditiesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aliyuncvc;
using namespace AlibabaCloud::Aliyuncvc::Model;
ListCommoditiesResult::ListCommoditiesResult() :
ServiceResult()
{}
ListCommoditiesResult::ListCommoditiesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCommoditiesResult::~ListCommoditiesResult()
{}
void ListCommoditiesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["PageNumber"].isNull())
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
auto allCommoditiesNode = dataNode["Commodities"]["Commodity"];
for (auto dataNodeCommoditiesCommodity : allCommoditiesNode)
{
Data::Commodity commodityObject;
if(!dataNodeCommoditiesCommodity["EndTime"].isNull())
commodityObject.endTime = dataNodeCommoditiesCommodity["EndTime"].asString();
if(!dataNodeCommoditiesCommodity["Instancepropertyvalue"].isNull())
commodityObject.instancepropertyvalue = dataNodeCommoditiesCommodity["Instancepropertyvalue"].asString();
if(!dataNodeCommoditiesCommodity["StartTime"].isNull())
commodityObject.startTime = dataNodeCommoditiesCommodity["StartTime"].asString();
data_.commodities.push_back(commodityObject);
}
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string ListCommoditiesResult::getMessage()const
{
return message_;
}
ListCommoditiesResult::Data ListCommoditiesResult::getData()const
{
return data_;
}
int ListCommoditiesResult::getErrorCode()const
{
return errorCode_;
}
bool ListCommoditiesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/ListDevicesRequest.h>
using AlibabaCloud::Aliyuncvc::Model::ListDevicesRequest;
ListDevicesRequest::ListDevicesRequest() :
RpcServiceRequest("aliyuncvc", "2019-09-19", "ListDevices")
{
setMethod(HttpRequest::Method::Post);
}
ListDevicesRequest::~ListDevicesRequest()
{}
std::string ListDevicesRequest::getCastScreenCode()const
{
return castScreenCode_;
}
void ListDevicesRequest::setCastScreenCode(const std::string& castScreenCode)
{
castScreenCode_ = castScreenCode;
setParameter("CastScreenCode", castScreenCode);
}
int ListDevicesRequest::getPageNumber()const
{
return pageNumber_;
}
void ListDevicesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
int ListDevicesRequest::getPageSize()const
{
return pageSize_;
}
void ListDevicesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListDevicesRequest::getSN()const
{
return sN_;
}
void ListDevicesRequest::setSN(const std::string& sN)
{
sN_ = sN;
setParameter("SN", sN);
}

View File

@@ -0,0 +1,99 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/ListDevicesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aliyuncvc;
using namespace AlibabaCloud::Aliyuncvc::Model;
ListDevicesResult::ListDevicesResult() :
ServiceResult()
{}
ListDevicesResult::ListDevicesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDevicesResult::~ListDevicesResult()
{}
void ListDevicesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Total"].isNull())
data_.total = std::stoi(dataNode["Total"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["PageNumber"].isNull())
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
auto allDevicesNode = dataNode["Devices"]["data"];
for (auto dataNodeDevicesdata : allDevicesNode)
{
Data::Data dataObject;
if(!dataNodeDevicesdata["ActivationCode"].isNull())
dataObject.activationCode = dataNodeDevicesdata["ActivationCode"].asString();
if(!dataNodeDevicesdata["ConferenceCode"].isNull())
dataObject.conferenceCode = dataNodeDevicesdata["ConferenceCode"].asString();
if(!dataNodeDevicesdata["ConferenceName"].isNull())
dataObject.conferenceName = dataNodeDevicesdata["ConferenceName"].asString();
if(!dataNodeDevicesdata["CreateTime"].isNull())
dataObject.createTime = dataNodeDevicesdata["CreateTime"].asString();
if(!dataNodeDevicesdata["PictureUrl"].isNull())
dataObject.pictureUrl = dataNodeDevicesdata["PictureUrl"].asString();
if(!dataNodeDevicesdata["SN"].isNull())
dataObject.sN = dataNodeDevicesdata["SN"].asString();
if(!dataNodeDevicesdata["Status"].isNull())
dataObject.status = dataNodeDevicesdata["Status"].asString();
if(!dataNodeDevicesdata["CastScreenCode"].isNull())
dataObject.castScreenCode = dataNodeDevicesdata["CastScreenCode"].asString();
data_.devices.push_back(dataObject);
}
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string ListDevicesResult::getMessage()const
{
return message_;
}
ListDevicesResult::Data ListDevicesResult::getData()const
{
return data_;
}
int ListDevicesResult::getErrorCode()const
{
return errorCode_;
}
bool ListDevicesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,40 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/QueryIsvUserInfoRequest.h>
using AlibabaCloud::Aliyuncvc::Model::QueryIsvUserInfoRequest;
QueryIsvUserInfoRequest::QueryIsvUserInfoRequest() :
RpcServiceRequest("aliyuncvc", "2019-09-19", "QueryIsvUserInfo")
{
setMethod(HttpRequest::Method::Post);
}
QueryIsvUserInfoRequest::~QueryIsvUserInfoRequest()
{}
std::string QueryIsvUserInfoRequest::getUserId()const
{
return userId_;
}
void QueryIsvUserInfoRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setParameter("UserId", userId);
}

View File

@@ -0,0 +1,93 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/QueryIsvUserInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aliyuncvc;
using namespace AlibabaCloud::Aliyuncvc::Model;
QueryIsvUserInfoResult::QueryIsvUserInfoResult() :
ServiceResult()
{}
QueryIsvUserInfoResult::QueryIsvUserInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryIsvUserInfoResult::~QueryIsvUserInfoResult()
{}
void QueryIsvUserInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto userInfoNode = value["UserInfo"];
if(!userInfoNode["UserName"].isNull())
userInfo_.userName = userInfoNode["UserName"].asString();
if(!userInfoNode["CreateTime"].isNull())
userInfo_.createTime = std::stol(userInfoNode["CreateTime"].asString());
if(!userInfoNode["GroupId"].isNull())
userInfo_.groupId = userInfoNode["GroupId"].asString();
if(!userInfoNode["GroupName"].isNull())
userInfo_.groupName = userInfoNode["GroupName"].asString();
if(!userInfoNode["UserId"].isNull())
userInfo_.userId = userInfoNode["UserId"].asString();
if(!userInfoNode["UserTel"].isNull())
userInfo_.userTel = userInfoNode["UserTel"].asString();
if(!userInfoNode["UserEmail"].isNull())
userInfo_.userEmail = userInfoNode["UserEmail"].asString();
if(!userInfoNode["UserMobile"].isNull())
userInfo_.userMobile = userInfoNode["UserMobile"].asString();
if(!userInfoNode["UserAvatarUrl"].isNull())
userInfo_.userAvatarUrl = userInfoNode["UserAvatarUrl"].asString();
if(!userInfoNode["DepartId"].isNull())
userInfo_.departId = userInfoNode["DepartId"].asString();
if(!userInfoNode["DepartName"].isNull())
userInfo_.departName = userInfoNode["DepartName"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string QueryIsvUserInfoResult::getMessage()const
{
return message_;
}
QueryIsvUserInfoResult::UserInfo QueryIsvUserInfoResult::getUserInfo()const
{
return userInfo_;
}
int QueryIsvUserInfoResult::getErrorCode()const
{
return errorCode_;
}
bool QueryIsvUserInfoResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,40 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/QueryMeetingInfoRequest.h>
using AlibabaCloud::Aliyuncvc::Model::QueryMeetingInfoRequest;
QueryMeetingInfoRequest::QueryMeetingInfoRequest() :
RpcServiceRequest("aliyuncvc", "2019-09-19", "QueryMeetingInfo")
{
setMethod(HttpRequest::Method::Post);
}
QueryMeetingInfoRequest::~QueryMeetingInfoRequest()
{}
std::string QueryMeetingInfoRequest::getMeetingUUID()const
{
return meetingUUID_;
}
void QueryMeetingInfoRequest::setMeetingUUID(const std::string& meetingUUID)
{
meetingUUID_ = meetingUUID;
setBodyParameter("MeetingUUID", meetingUUID);
}

View File

@@ -0,0 +1,99 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/QueryMeetingInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aliyuncvc;
using namespace AlibabaCloud::Aliyuncvc::Model;
QueryMeetingInfoResult::QueryMeetingInfoResult() :
ServiceResult()
{}
QueryMeetingInfoResult::QueryMeetingInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMeetingInfoResult::~QueryMeetingInfoResult()
{}
void QueryMeetingInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto meetingInfoNode = value["MeetingInfo"];
if(!meetingInfoNode["MeetingName"].isNull())
meetingInfo_.meetingName = meetingInfoNode["MeetingName"].asString();
if(!meetingInfoNode["ValidDate"].isNull())
meetingInfo_.validDate = std::stol(meetingInfoNode["ValidDate"].asString());
if(!meetingInfoNode["MeetingCode"].isNull())
meetingInfo_.meetingCode = meetingInfoNode["MeetingCode"].asString();
if(!meetingInfoNode["CreateDate"].isNull())
meetingInfo_.createDate = std::stol(meetingInfoNode["CreateDate"].asString());
if(!meetingInfoNode["UserId"].isNull())
meetingInfo_.userId = meetingInfoNode["UserId"].asString();
if(!meetingInfoNode["MeetingUUID"].isNull())
meetingInfo_.meetingUUID = meetingInfoNode["MeetingUUID"].asString();
auto allMemberListNode = meetingInfoNode["MemberList"]["MemberListItem"];
for (auto meetingInfoNodeMemberListMemberListItem : allMemberListNode)
{
MeetingInfo::MemberListItem memberListItemObject;
if(!meetingInfoNodeMemberListMemberListItem["UserAvatarUrl"].isNull())
memberListItemObject.userAvatarUrl = meetingInfoNodeMemberListMemberListItem["UserAvatarUrl"].asString();
if(!meetingInfoNodeMemberListMemberListItem["MemberUUID"].isNull())
memberListItemObject.memberUUID = meetingInfoNodeMemberListMemberListItem["MemberUUID"].asString();
if(!meetingInfoNodeMemberListMemberListItem["UserName"].isNull())
memberListItemObject.userName = meetingInfoNodeMemberListMemberListItem["UserName"].asString();
if(!meetingInfoNodeMemberListMemberListItem["UserId"].isNull())
memberListItemObject.userId = meetingInfoNodeMemberListMemberListItem["UserId"].asString();
if(!meetingInfoNodeMemberListMemberListItem["Status"].isNull())
memberListItemObject.status = meetingInfoNodeMemberListMemberListItem["Status"].asString();
meetingInfo_.memberList.push_back(memberListItemObject);
}
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
QueryMeetingInfoResult::MeetingInfo QueryMeetingInfoResult::getMeetingInfo()const
{
return meetingInfo_;
}
std::string QueryMeetingInfoResult::getMessage()const
{
return message_;
}
int QueryMeetingInfoResult::getErrorCode()const
{
return errorCode_;
}
bool QueryMeetingInfoResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,40 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/QueryMemberRecordRequest.h>
using AlibabaCloud::Aliyuncvc::Model::QueryMemberRecordRequest;
QueryMemberRecordRequest::QueryMemberRecordRequest() :
RpcServiceRequest("aliyuncvc", "2019-09-19", "QueryMemberRecord")
{
setMethod(HttpRequest::Method::Post);
}
QueryMemberRecordRequest::~QueryMemberRecordRequest()
{}
std::string QueryMemberRecordRequest::getMeetingUUID()const
{
return meetingUUID_;
}
void QueryMemberRecordRequest::setMeetingUUID(const std::string& meetingUUID)
{
meetingUUID_ = meetingUUID;
setParameter("MeetingUUID", meetingUUID);
}

View File

@@ -0,0 +1,97 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/QueryMemberRecordResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aliyuncvc;
using namespace AlibabaCloud::Aliyuncvc::Model;
QueryMemberRecordResult::QueryMemberRecordResult() :
ServiceResult()
{}
QueryMemberRecordResult::QueryMemberRecordResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMemberRecordResult::~QueryMemberRecordResult()
{}
void QueryMemberRecordResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto meetingInfoNode = value["MeetingInfo"];
if(!meetingInfoNode["MeetingName"].isNull())
meetingInfo_.meetingName = meetingInfoNode["MeetingName"].asString();
if(!meetingInfoNode["MeetingCode"].isNull())
meetingInfo_.meetingCode = meetingInfoNode["MeetingCode"].asString();
if(!meetingInfoNode["Memo"].isNull())
meetingInfo_.memo = meetingInfoNode["Memo"].asString();
if(!meetingInfoNode["UserName"].isNull())
meetingInfo_.userName = meetingInfoNode["UserName"].asString();
if(!meetingInfoNode["CreateDate"].isNull())
meetingInfo_.createDate = std::stol(meetingInfoNode["CreateDate"].asString());
if(!meetingInfoNode["UserId"].isNull())
meetingInfo_.userId = meetingInfoNode["UserId"].asString();
if(!meetingInfoNode["MeetingUUID"].isNull())
meetingInfo_.meetingUUID = meetingInfoNode["MeetingUUID"].asString();
auto allMemberRecordsListNode = meetingInfoNode["MemberRecordsList"]["MemberRecord"];
for (auto meetingInfoNodeMemberRecordsListMemberRecord : allMemberRecordsListNode)
{
MeetingInfo::MemberRecord memberRecordObject;
if(!meetingInfoNodeMemberRecordsListMemberRecord["MemberUUID"].isNull())
memberRecordObject.memberUUID = meetingInfoNodeMemberRecordsListMemberRecord["MemberUUID"].asString();
if(!meetingInfoNodeMemberRecordsListMemberRecord["UserId"].isNull())
memberRecordObject.userId = meetingInfoNodeMemberRecordsListMemberRecord["UserId"].asString();
if(!meetingInfoNodeMemberRecordsListMemberRecord["Status"].isNull())
memberRecordObject.status = meetingInfoNodeMemberRecordsListMemberRecord["Status"].asString();
meetingInfo_.memberRecordsList.push_back(memberRecordObject);
}
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
QueryMemberRecordResult::MeetingInfo QueryMemberRecordResult::getMeetingInfo()const
{
return meetingInfo_;
}
std::string QueryMemberRecordResult::getMessage()const
{
return message_;
}
int QueryMemberRecordResult::getErrorCode()const
{
return errorCode_;
}
bool QueryMemberRecordResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/QueryStatisticsRequest.h>
using AlibabaCloud::Aliyuncvc::Model::QueryStatisticsRequest;
QueryStatisticsRequest::QueryStatisticsRequest() :
RpcServiceRequest("aliyuncvc", "2019-09-19", "QueryStatistics")
{
setMethod(HttpRequest::Method::Post);
}
QueryStatisticsRequest::~QueryStatisticsRequest()
{}
std::string QueryStatisticsRequest::getEndTime()const
{
return endTime_;
}
void QueryStatisticsRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string QueryStatisticsRequest::getStartTime()const
{
return startTime_;
}
void QueryStatisticsRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}

View File

@@ -0,0 +1,92 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/QueryStatisticsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aliyuncvc;
using namespace AlibabaCloud::Aliyuncvc::Model;
QueryStatisticsResult::QueryStatisticsResult() :
ServiceResult()
{}
QueryStatisticsResult::QueryStatisticsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryStatisticsResult::~QueryStatisticsResult()
{}
void QueryStatisticsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allDayInfoNode = dataNode["DayInfo"]["DayInfoItem"];
for (auto dataNodeDayInfoDayInfoItem : allDayInfoNode)
{
Data::DayInfoItem dayInfoItemObject;
if(!dataNodeDayInfoDayInfoItem["MeetingNum"].isNull())
dayInfoItemObject.meetingNum = dataNodeDayInfoDayInfoItem["MeetingNum"].asString();
if(!dataNodeDayInfoDayInfoItem["MeetingLength"].isNull())
dayInfoItemObject.meetingLength = dataNodeDayInfoDayInfoItem["MeetingLength"].asString();
if(!dataNodeDayInfoDayInfoItem["MemberNum"].isNull())
dayInfoItemObject.memberNum = dataNodeDayInfoDayInfoItem["MemberNum"].asString();
if(!dataNodeDayInfoDayInfoItem["Day"].isNull())
dayInfoItemObject.day = dataNodeDayInfoDayInfoItem["Day"].asString();
data_.dayInfo.push_back(dayInfoItemObject);
}
auto totalNode = dataNode["Total"];
if(!totalNode["MeetingNum"].isNull())
data_.total.meetingNum = std::stoi(totalNode["MeetingNum"].asString());
if(!totalNode["MeetingLength"].isNull())
data_.total.meetingLength = std::stoi(totalNode["MeetingLength"].asString());
if(!totalNode["MemberNum"].isNull())
data_.total.memberNum = std::stoi(totalNode["MemberNum"].asString());
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string QueryStatisticsResult::getMessage()const
{
return message_;
}
QueryStatisticsResult::Data QueryStatisticsResult::getData()const
{
return data_;
}
int QueryStatisticsResult::getErrorCode()const
{
return errorCode_;
}
bool QueryStatisticsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,29 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/QueryUserBuyAttributeRequest.h>
using AlibabaCloud::Aliyuncvc::Model::QueryUserBuyAttributeRequest;
QueryUserBuyAttributeRequest::QueryUserBuyAttributeRequest() :
RpcServiceRequest("aliyuncvc", "2019-09-19", "QueryUserBuyAttribute")
{
setMethod(HttpRequest::Method::Post);
}
QueryUserBuyAttributeRequest::~QueryUserBuyAttributeRequest()
{}

View File

@@ -0,0 +1,72 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/QueryUserBuyAttributeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aliyuncvc;
using namespace AlibabaCloud::Aliyuncvc::Model;
QueryUserBuyAttributeResult::QueryUserBuyAttributeResult() :
ServiceResult()
{}
QueryUserBuyAttributeResult::QueryUserBuyAttributeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryUserBuyAttributeResult::~QueryUserBuyAttributeResult()
{}
void QueryUserBuyAttributeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["UserBuyAttribute"].isNull())
userBuyAttribute_ = value["UserBuyAttribute"].asString() == "true";
}
std::string QueryUserBuyAttributeResult::getMessage()const
{
return message_;
}
bool QueryUserBuyAttributeResult::getUserBuyAttribute()const
{
return userBuyAttribute_;
}
int QueryUserBuyAttributeResult::getErrorCode()const
{
return errorCode_;
}
bool QueryUserBuyAttributeResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,29 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/QueryUserEvaluationRequest.h>
using AlibabaCloud::Aliyuncvc::Model::QueryUserEvaluationRequest;
QueryUserEvaluationRequest::QueryUserEvaluationRequest() :
RpcServiceRequest("aliyuncvc", "2019-09-19", "QueryUserEvaluation")
{
setMethod(HttpRequest::Method::Post);
}
QueryUserEvaluationRequest::~QueryUserEvaluationRequest()
{}

View File

@@ -0,0 +1,72 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/QueryUserEvaluationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aliyuncvc;
using namespace AlibabaCloud::Aliyuncvc::Model;
QueryUserEvaluationResult::QueryUserEvaluationResult() :
ServiceResult()
{}
QueryUserEvaluationResult::QueryUserEvaluationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryUserEvaluationResult::~QueryUserEvaluationResult()
{}
void QueryUserEvaluationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["UserEvaluation"].isNull())
userEvaluation_ = value["UserEvaluation"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string QueryUserEvaluationResult::getMessage()const
{
return message_;
}
int QueryUserEvaluationResult::getErrorCode()const
{
return errorCode_;
}
std::string QueryUserEvaluationResult::getUserEvaluation()const
{
return userEvaluation_;
}
bool QueryUserEvaluationResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,29 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/QueryUserInfoRequest.h>
using AlibabaCloud::Aliyuncvc::Model::QueryUserInfoRequest;
QueryUserInfoRequest::QueryUserInfoRequest() :
RpcServiceRequest("aliyuncvc", "2019-09-19", "QueryUserInfo")
{
setMethod(HttpRequest::Method::Post);
}
QueryUserInfoRequest::~QueryUserInfoRequest()
{}

View File

@@ -0,0 +1,77 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/QueryUserInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aliyuncvc;
using namespace AlibabaCloud::Aliyuncvc::Model;
QueryUserInfoResult::QueryUserInfoResult() :
ServiceResult()
{}
QueryUserInfoResult::QueryUserInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryUserInfoResult::~QueryUserInfoResult()
{}
void QueryUserInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto userInfoNode = value["UserInfo"];
if(!userInfoNode["CurNum"].isNull())
userInfo_.curNum = std::stoi(userInfoNode["CurNum"].asString());
if(!userInfoNode["MemberConcurrentMax"].isNull())
userInfo_.memberConcurrentMax = std::stoi(userInfoNode["MemberConcurrentMax"].asString());
if(!userInfoNode["MaxNum"].isNull())
userInfo_.maxNum = std::stoi(userInfoNode["MaxNum"].asString());
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string QueryUserInfoResult::getMessage()const
{
return message_;
}
QueryUserInfoResult::UserInfo QueryUserInfoResult::getUserInfo()const
{
return userInfo_;
}
int QueryUserInfoResult::getErrorCode()const
{
return errorCode_;
}
bool QueryUserInfoResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/QueryUserListRequest.h>
using AlibabaCloud::Aliyuncvc::Model::QueryUserListRequest;
QueryUserListRequest::QueryUserListRequest() :
RpcServiceRequest("aliyuncvc", "2019-09-19", "QueryUserList")
{
setMethod(HttpRequest::Method::Post);
}
QueryUserListRequest::~QueryUserListRequest()
{}
int QueryUserListRequest::getPageSize()const
{
return pageSize_;
}
void QueryUserListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int QueryUserListRequest::getPageNum()const
{
return pageNum_;
}
void QueryUserListRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}

View File

@@ -0,0 +1,105 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/QueryUserListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aliyuncvc;
using namespace AlibabaCloud::Aliyuncvc::Model;
QueryUserListResult::QueryUserListResult() :
ServiceResult()
{}
QueryUserListResult::QueryUserListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryUserListResult::~QueryUserListResult()
{}
void QueryUserListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["PageNumber"].isNull())
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
auto allUserInfosNode = dataNode["UserInfos"]["UserInfo"];
for (auto dataNodeUserInfosUserInfo : allUserInfosNode)
{
Data::UserInfo userInfoObject;
if(!dataNodeUserInfosUserInfo["CreateTime"].isNull())
userInfoObject.createTime = std::stol(dataNodeUserInfosUserInfo["CreateTime"].asString());
if(!dataNodeUserInfosUserInfo["GroupName"].isNull())
userInfoObject.groupName = dataNodeUserInfosUserInfo["GroupName"].asString();
if(!dataNodeUserInfosUserInfo["UserName"].isNull())
userInfoObject.userName = dataNodeUserInfosUserInfo["UserName"].asString();
if(!dataNodeUserInfosUserInfo["GroupId"].isNull())
userInfoObject.groupId = dataNodeUserInfosUserInfo["GroupId"].asString();
if(!dataNodeUserInfosUserInfo["GroupName"].isNull())
userInfoObject.groupName1 = dataNodeUserInfosUserInfo["GroupName"].asString();
if(!dataNodeUserInfosUserInfo["DepartName"].isNull())
userInfoObject.departName = dataNodeUserInfosUserInfo["DepartName"].asString();
if(!dataNodeUserInfosUserInfo["DepartId"].isNull())
userInfoObject.departId = dataNodeUserInfosUserInfo["DepartId"].asString();
if(!dataNodeUserInfosUserInfo["UserEmail"].isNull())
userInfoObject.userEmail = dataNodeUserInfosUserInfo["UserEmail"].asString();
if(!dataNodeUserInfosUserInfo["UserTel"].isNull())
userInfoObject.userTel = dataNodeUserInfosUserInfo["UserTel"].asString();
if(!dataNodeUserInfosUserInfo["UserMobile"].isNull())
userInfoObject.userMobile = dataNodeUserInfosUserInfo["UserMobile"].asString();
if(!dataNodeUserInfosUserInfo["UserAvatarUrl"].isNull())
userInfoObject.userAvatarUrl = dataNodeUserInfosUserInfo["UserAvatarUrl"].asString();
data_.userInfos.push_back(userInfoObject);
}
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string QueryUserListResult::getMessage()const
{
return message_;
}
QueryUserListResult::Data QueryUserListResult::getData()const
{
return data_;
}
int QueryUserListResult::getErrorCode()const
{
return errorCode_;
}
bool QueryUserListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,40 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/RemoveMeetingRequest.h>
using AlibabaCloud::Aliyuncvc::Model::RemoveMeetingRequest;
RemoveMeetingRequest::RemoveMeetingRequest() :
RpcServiceRequest("aliyuncvc", "2019-09-19", "RemoveMeeting")
{
setMethod(HttpRequest::Method::Post);
}
RemoveMeetingRequest::~RemoveMeetingRequest()
{}
std::string RemoveMeetingRequest::getMeetingUUID()const
{
return meetingUUID_;
}
void RemoveMeetingRequest::setMeetingUUID(const std::string& meetingUUID)
{
meetingUUID_ = meetingUUID;
setBodyParameter("MeetingUUID", meetingUUID);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/aliyuncvc/model/RemoveMeetingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aliyuncvc;
using namespace AlibabaCloud::Aliyuncvc::Model;
RemoveMeetingResult::RemoveMeetingResult() :
ServiceResult()
{}
RemoveMeetingResult::RemoveMeetingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RemoveMeetingResult::~RemoveMeetingResult()
{}
void RemoveMeetingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string RemoveMeetingResult::getMessage()const
{
return message_;
}
int RemoveMeetingResult::getErrorCode()const
{
return errorCode_;
}
bool RemoveMeetingResult::getSuccess()const
{
return success_;
}