Generated 2019-03-01 for LinkWAN.

This commit is contained in:
sdk-team
2021-09-13 09:28:42 +00:00
parent d7e05e378e
commit 98b1ef2aea
390 changed files with 32178 additions and 1 deletions

3509
linkwan/src/LinkWANClient.cc Normal file

File diff suppressed because it is too large Load Diff

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.
*/
#include <alibabacloud/linkwan/model/AcceptJoinPermissionAuthOrderRequest.h>
using AlibabaCloud::LinkWAN::Model::AcceptJoinPermissionAuthOrderRequest;
AcceptJoinPermissionAuthOrderRequest::AcceptJoinPermissionAuthOrderRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "AcceptJoinPermissionAuthOrder")
{
setMethod(HttpRequest::Method::Post);
}
AcceptJoinPermissionAuthOrderRequest::~AcceptJoinPermissionAuthOrderRequest()
{}
std::string AcceptJoinPermissionAuthOrderRequest::getOrderId()const
{
return orderId_;
}
void AcceptJoinPermissionAuthOrderRequest::setOrderId(const std::string& orderId)
{
orderId_ = orderId;
setParameter("OrderId", orderId);
}
std::string AcceptJoinPermissionAuthOrderRequest::getApiProduct()const
{
return apiProduct_;
}
void AcceptJoinPermissionAuthOrderRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string AcceptJoinPermissionAuthOrderRequest::getApiRevision()const
{
return apiRevision_;
}
void AcceptJoinPermissionAuthOrderRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

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/linkwan/model/AcceptJoinPermissionAuthOrderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
AcceptJoinPermissionAuthOrderResult::AcceptJoinPermissionAuthOrderResult() :
ServiceResult()
{}
AcceptJoinPermissionAuthOrderResult::AcceptJoinPermissionAuthOrderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AcceptJoinPermissionAuthOrderResult::~AcceptJoinPermissionAuthOrderResult()
{}
void AcceptJoinPermissionAuthOrderResult::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";
}
bool AcceptJoinPermissionAuthOrderResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,84 @@
/*
* 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/linkwan/model/AddNodeToGroupRequest.h>
using AlibabaCloud::LinkWAN::Model::AddNodeToGroupRequest;
AddNodeToGroupRequest::AddNodeToGroupRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "AddNodeToGroup")
{
setMethod(HttpRequest::Method::Post);
}
AddNodeToGroupRequest::~AddNodeToGroupRequest()
{}
std::string AddNodeToGroupRequest::getPinCode()const
{
return pinCode_;
}
void AddNodeToGroupRequest::setPinCode(const std::string& pinCode)
{
pinCode_ = pinCode;
setParameter("PinCode", pinCode);
}
std::string AddNodeToGroupRequest::getDevEui()const
{
return devEui_;
}
void AddNodeToGroupRequest::setDevEui(const std::string& devEui)
{
devEui_ = devEui;
setParameter("DevEui", devEui);
}
std::string AddNodeToGroupRequest::getNodeGroupId()const
{
return nodeGroupId_;
}
void AddNodeToGroupRequest::setNodeGroupId(const std::string& nodeGroupId)
{
nodeGroupId_ = nodeGroupId;
setParameter("NodeGroupId", nodeGroupId);
}
std::string AddNodeToGroupRequest::getApiProduct()const
{
return apiProduct_;
}
void AddNodeToGroupRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string AddNodeToGroupRequest::getApiRevision()const
{
return apiRevision_;
}
void AddNodeToGroupRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

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/linkwan/model/AddNodeToGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
AddNodeToGroupResult::AddNodeToGroupResult() :
ServiceResult()
{}
AddNodeToGroupResult::AddNodeToGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddNodeToGroupResult::~AddNodeToGroupResult()
{}
void AddNodeToGroupResult::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";
}
bool AddNodeToGroupResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,106 @@
/*
* 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/linkwan/model/ApplyRoamingJoinPermissionRequest.h>
using AlibabaCloud::LinkWAN::Model::ApplyRoamingJoinPermissionRequest;
ApplyRoamingJoinPermissionRequest::ApplyRoamingJoinPermissionRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "ApplyRoamingJoinPermission")
{
setMethod(HttpRequest::Method::Post);
}
ApplyRoamingJoinPermissionRequest::~ApplyRoamingJoinPermissionRequest()
{}
long ApplyRoamingJoinPermissionRequest::getRxDelay()const
{
return rxDelay_;
}
void ApplyRoamingJoinPermissionRequest::setRxDelay(long rxDelay)
{
rxDelay_ = rxDelay;
setParameter("RxDelay", std::to_string(rxDelay));
}
std::string ApplyRoamingJoinPermissionRequest::getClassMode()const
{
return classMode_;
}
void ApplyRoamingJoinPermissionRequest::setClassMode(const std::string& classMode)
{
classMode_ = classMode;
setParameter("ClassMode", classMode);
}
long ApplyRoamingJoinPermissionRequest::getFreqBandPlanGroupId()const
{
return freqBandPlanGroupId_;
}
void ApplyRoamingJoinPermissionRequest::setFreqBandPlanGroupId(long freqBandPlanGroupId)
{
freqBandPlanGroupId_ = freqBandPlanGroupId;
setParameter("FreqBandPlanGroupId", std::to_string(freqBandPlanGroupId));
}
std::string ApplyRoamingJoinPermissionRequest::getApiProduct()const
{
return apiProduct_;
}
void ApplyRoamingJoinPermissionRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string ApplyRoamingJoinPermissionRequest::getApiRevision()const
{
return apiRevision_;
}
void ApplyRoamingJoinPermissionRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}
std::string ApplyRoamingJoinPermissionRequest::getJoinPermissionName()const
{
return joinPermissionName_;
}
void ApplyRoamingJoinPermissionRequest::setJoinPermissionName(const std::string& joinPermissionName)
{
joinPermissionName_ = joinPermissionName;
setParameter("JoinPermissionName", joinPermissionName);
}
long ApplyRoamingJoinPermissionRequest::getDataRate()const
{
return dataRate_;
}
void ApplyRoamingJoinPermissionRequest::setDataRate(long dataRate)
{
dataRate_ = dataRate;
setParameter("DataRate", std::to_string(dataRate));
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/ApplyRoamingJoinPermissionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
ApplyRoamingJoinPermissionResult::ApplyRoamingJoinPermissionResult() :
ServiceResult()
{}
ApplyRoamingJoinPermissionResult::ApplyRoamingJoinPermissionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ApplyRoamingJoinPermissionResult::~ApplyRoamingJoinPermissionResult()
{}
void ApplyRoamingJoinPermissionResult::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["Data"].isNull())
data_ = value["Data"].asString();
}
std::string ApplyRoamingJoinPermissionResult::getData()const
{
return data_;
}
bool ApplyRoamingJoinPermissionResult::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/linkwan/model/BindJoinPermissionToNodeGroupRequest.h>
using AlibabaCloud::LinkWAN::Model::BindJoinPermissionToNodeGroupRequest;
BindJoinPermissionToNodeGroupRequest::BindJoinPermissionToNodeGroupRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "BindJoinPermissionToNodeGroup")
{
setMethod(HttpRequest::Method::Post);
}
BindJoinPermissionToNodeGroupRequest::~BindJoinPermissionToNodeGroupRequest()
{}
std::string BindJoinPermissionToNodeGroupRequest::getJoinPermissionId()const
{
return joinPermissionId_;
}
void BindJoinPermissionToNodeGroupRequest::setJoinPermissionId(const std::string& joinPermissionId)
{
joinPermissionId_ = joinPermissionId;
setParameter("JoinPermissionId", joinPermissionId);
}
std::string BindJoinPermissionToNodeGroupRequest::getNodeGroupId()const
{
return nodeGroupId_;
}
void BindJoinPermissionToNodeGroupRequest::setNodeGroupId(const std::string& nodeGroupId)
{
nodeGroupId_ = nodeGroupId;
setParameter("NodeGroupId", nodeGroupId);
}
std::string BindJoinPermissionToNodeGroupRequest::getApiProduct()const
{
return apiProduct_;
}
void BindJoinPermissionToNodeGroupRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string BindJoinPermissionToNodeGroupRequest::getApiRevision()const
{
return apiRevision_;
}
void BindJoinPermissionToNodeGroupRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

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/linkwan/model/BindJoinPermissionToNodeGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
BindJoinPermissionToNodeGroupResult::BindJoinPermissionToNodeGroupResult() :
ServiceResult()
{}
BindJoinPermissionToNodeGroupResult::BindJoinPermissionToNodeGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BindJoinPermissionToNodeGroupResult::~BindJoinPermissionToNodeGroupResult()
{}
void BindJoinPermissionToNodeGroupResult::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";
}
bool BindJoinPermissionToNodeGroupResult::getSuccess()const
{
return success_;
}

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.
*/
#include <alibabacloud/linkwan/model/CancelJoinPermissionAuthOrderRequest.h>
using AlibabaCloud::LinkWAN::Model::CancelJoinPermissionAuthOrderRequest;
CancelJoinPermissionAuthOrderRequest::CancelJoinPermissionAuthOrderRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "CancelJoinPermissionAuthOrder")
{
setMethod(HttpRequest::Method::Post);
}
CancelJoinPermissionAuthOrderRequest::~CancelJoinPermissionAuthOrderRequest()
{}
std::string CancelJoinPermissionAuthOrderRequest::getOrderId()const
{
return orderId_;
}
void CancelJoinPermissionAuthOrderRequest::setOrderId(const std::string& orderId)
{
orderId_ = orderId;
setParameter("OrderId", orderId);
}
std::string CancelJoinPermissionAuthOrderRequest::getApiProduct()const
{
return apiProduct_;
}
void CancelJoinPermissionAuthOrderRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CancelJoinPermissionAuthOrderRequest::getApiRevision()const
{
return apiRevision_;
}
void CancelJoinPermissionAuthOrderRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

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/linkwan/model/CancelJoinPermissionAuthOrderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
CancelJoinPermissionAuthOrderResult::CancelJoinPermissionAuthOrderResult() :
ServiceResult()
{}
CancelJoinPermissionAuthOrderResult::CancelJoinPermissionAuthOrderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelJoinPermissionAuthOrderResult::~CancelJoinPermissionAuthOrderResult()
{}
void CancelJoinPermissionAuthOrderResult::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";
}
bool CancelJoinPermissionAuthOrderResult::getSuccess()const
{
return success_;
}

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.
*/
#include <alibabacloud/linkwan/model/CheckCloudProductOpenStatusRequest.h>
using AlibabaCloud::LinkWAN::Model::CheckCloudProductOpenStatusRequest;
CheckCloudProductOpenStatusRequest::CheckCloudProductOpenStatusRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "CheckCloudProductOpenStatus")
{
setMethod(HttpRequest::Method::Post);
}
CheckCloudProductOpenStatusRequest::~CheckCloudProductOpenStatusRequest()
{}
std::string CheckCloudProductOpenStatusRequest::getServiceCode()const
{
return serviceCode_;
}
void CheckCloudProductOpenStatusRequest::setServiceCode(const std::string& serviceCode)
{
serviceCode_ = serviceCode;
setParameter("ServiceCode", serviceCode);
}
std::string CheckCloudProductOpenStatusRequest::getApiProduct()const
{
return apiProduct_;
}
void CheckCloudProductOpenStatusRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CheckCloudProductOpenStatusRequest::getApiRevision()const
{
return apiRevision_;
}
void CheckCloudProductOpenStatusRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/CheckCloudProductOpenStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
CheckCloudProductOpenStatusResult::CheckCloudProductOpenStatusResult() :
ServiceResult()
{}
CheckCloudProductOpenStatusResult::CheckCloudProductOpenStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckCloudProductOpenStatusResult::~CheckCloudProductOpenStatusResult()
{}
void CheckCloudProductOpenStatusResult::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["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
bool CheckCloudProductOpenStatusResult::getData()const
{
return data_;
}
bool CheckCloudProductOpenStatusResult::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/linkwan/model/CheckUserChargeStatusRequest.h>
using AlibabaCloud::LinkWAN::Model::CheckUserChargeStatusRequest;
CheckUserChargeStatusRequest::CheckUserChargeStatusRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "CheckUserChargeStatus")
{
setMethod(HttpRequest::Method::Post);
}
CheckUserChargeStatusRequest::~CheckUserChargeStatusRequest()
{}
std::string CheckUserChargeStatusRequest::getApiProduct()const
{
return apiProduct_;
}
void CheckUserChargeStatusRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CheckUserChargeStatusRequest::getApiRevision()const
{
return apiRevision_;
}
void CheckUserChargeStatusRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/CheckUserChargeStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
CheckUserChargeStatusResult::CheckUserChargeStatusResult() :
ServiceResult()
{}
CheckUserChargeStatusResult::CheckUserChargeStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckUserChargeStatusResult::~CheckUserChargeStatusResult()
{}
void CheckUserChargeStatusResult::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["Data"].isNull())
data_ = value["Data"].asString();
}
std::string CheckUserChargeStatusResult::getData()const
{
return data_;
}
bool CheckUserChargeStatusResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,64 @@
/*
* 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/linkwan/model/CountGatewayTupleOrdersRequest.h>
using AlibabaCloud::LinkWAN::Model::CountGatewayTupleOrdersRequest;
CountGatewayTupleOrdersRequest::CountGatewayTupleOrdersRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "CountGatewayTupleOrders")
{
setMethod(HttpRequest::Method::Post);
}
CountGatewayTupleOrdersRequest::~CountGatewayTupleOrdersRequest()
{}
std::vector<std::string> CountGatewayTupleOrdersRequest::getStates()const
{
return states_;
}
void CountGatewayTupleOrdersRequest::setStates(const std::vector<std::string>& states)
{
states_ = states;
for(int dep1 = 0; dep1!= states.size(); dep1++) {
setParameter("States."+ std::to_string(dep1), states.at(dep1));
}
}
std::string CountGatewayTupleOrdersRequest::getApiProduct()const
{
return apiProduct_;
}
void CountGatewayTupleOrdersRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CountGatewayTupleOrdersRequest::getApiRevision()const
{
return apiRevision_;
}
void CountGatewayTupleOrdersRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/CountGatewayTupleOrdersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
CountGatewayTupleOrdersResult::CountGatewayTupleOrdersResult() :
ServiceResult()
{}
CountGatewayTupleOrdersResult::CountGatewayTupleOrdersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CountGatewayTupleOrdersResult::~CountGatewayTupleOrdersResult()
{}
void CountGatewayTupleOrdersResult::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["Data"].isNull())
data_ = std::stol(value["Data"].asString());
}
long CountGatewayTupleOrdersResult::getData()const
{
return data_;
}
bool CountGatewayTupleOrdersResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,150 @@
/*
* 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/linkwan/model/CountGatewaysRequest.h>
using AlibabaCloud::LinkWAN::Model::CountGatewaysRequest;
CountGatewaysRequest::CountGatewaysRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "CountGateways")
{
setMethod(HttpRequest::Method::Post);
}
CountGatewaysRequest::~CountGatewaysRequest()
{}
std::string CountGatewaysRequest::getRealTenantId()const
{
return realTenantId_;
}
void CountGatewaysRequest::setRealTenantId(const std::string& realTenantId)
{
realTenantId_ = realTenantId;
setParameter("RealTenantId", realTenantId);
}
std::string CountGatewaysRequest::getRealTripartiteKey()const
{
return realTripartiteKey_;
}
void CountGatewaysRequest::setRealTripartiteKey(const std::string& realTripartiteKey)
{
realTripartiteKey_ = realTripartiteKey;
setParameter("RealTripartiteKey", realTripartiteKey);
}
std::string CountGatewaysRequest::getFuzzyGwEui()const
{
return fuzzyGwEui_;
}
void CountGatewaysRequest::setFuzzyGwEui(const std::string& fuzzyGwEui)
{
fuzzyGwEui_ = fuzzyGwEui;
setParameter("FuzzyGwEui", fuzzyGwEui);
}
std::string CountGatewaysRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void CountGatewaysRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string CountGatewaysRequest::getFuzzyCity()const
{
return fuzzyCity_;
}
void CountGatewaysRequest::setFuzzyCity(const std::string& fuzzyCity)
{
fuzzyCity_ = fuzzyCity;
setParameter("FuzzyCity", fuzzyCity);
}
std::string CountGatewaysRequest::getOnlineState()const
{
return onlineState_;
}
void CountGatewaysRequest::setOnlineState(const std::string& onlineState)
{
onlineState_ = onlineState;
setParameter("OnlineState", onlineState);
}
bool CountGatewaysRequest::getIsEnabled()const
{
return isEnabled_;
}
void CountGatewaysRequest::setIsEnabled(bool isEnabled)
{
isEnabled_ = isEnabled;
setParameter("IsEnabled", isEnabled ? "true" : "false");
}
std::string CountGatewaysRequest::getFuzzyName()const
{
return fuzzyName_;
}
void CountGatewaysRequest::setFuzzyName(const std::string& fuzzyName)
{
fuzzyName_ = fuzzyName;
setParameter("FuzzyName", fuzzyName);
}
long CountGatewaysRequest::getFreqBandPlanGroupId()const
{
return freqBandPlanGroupId_;
}
void CountGatewaysRequest::setFreqBandPlanGroupId(long freqBandPlanGroupId)
{
freqBandPlanGroupId_ = freqBandPlanGroupId;
setParameter("FreqBandPlanGroupId", std::to_string(freqBandPlanGroupId));
}
std::string CountGatewaysRequest::getApiProduct()const
{
return apiProduct_;
}
void CountGatewaysRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CountGatewaysRequest::getApiRevision()const
{
return apiRevision_;
}
void CountGatewaysRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/CountGatewaysResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
CountGatewaysResult::CountGatewaysResult() :
ServiceResult()
{}
CountGatewaysResult::CountGatewaysResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CountGatewaysResult::~CountGatewaysResult()
{}
void CountGatewaysResult::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["Data"].isNull())
data_ = std::stol(value["Data"].asString());
}
long CountGatewaysResult::getData()const
{
return data_;
}
bool CountGatewaysResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,95 @@
/*
* 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/linkwan/model/CountNodeGroupsRequest.h>
using AlibabaCloud::LinkWAN::Model::CountNodeGroupsRequest;
CountNodeGroupsRequest::CountNodeGroupsRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "CountNodeGroups")
{
setMethod(HttpRequest::Method::Post);
}
CountNodeGroupsRequest::~CountNodeGroupsRequest()
{}
std::string CountNodeGroupsRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void CountNodeGroupsRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string CountNodeGroupsRequest::getFuzzyJoinEui()const
{
return fuzzyJoinEui_;
}
void CountNodeGroupsRequest::setFuzzyJoinEui(const std::string& fuzzyJoinEui)
{
fuzzyJoinEui_ = fuzzyJoinEui;
setParameter("FuzzyJoinEui", fuzzyJoinEui);
}
std::string CountNodeGroupsRequest::getFuzzyDevEui()const
{
return fuzzyDevEui_;
}
void CountNodeGroupsRequest::setFuzzyDevEui(const std::string& fuzzyDevEui)
{
fuzzyDevEui_ = fuzzyDevEui;
setParameter("FuzzyDevEui", fuzzyDevEui);
}
std::string CountNodeGroupsRequest::getFuzzyName()const
{
return fuzzyName_;
}
void CountNodeGroupsRequest::setFuzzyName(const std::string& fuzzyName)
{
fuzzyName_ = fuzzyName;
setParameter("FuzzyName", fuzzyName);
}
std::string CountNodeGroupsRequest::getApiProduct()const
{
return apiProduct_;
}
void CountNodeGroupsRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CountNodeGroupsRequest::getApiRevision()const
{
return apiRevision_;
}
void CountNodeGroupsRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/CountNodeGroupsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
CountNodeGroupsResult::CountNodeGroupsResult() :
ServiceResult()
{}
CountNodeGroupsResult::CountNodeGroupsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CountNodeGroupsResult::~CountNodeGroupsResult()
{}
void CountNodeGroupsResult::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["Data"].isNull())
data_ = std::stol(value["Data"].asString());
}
long CountNodeGroupsResult::getData()const
{
return data_;
}
bool CountNodeGroupsResult::getSuccess()const
{
return success_;
}

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/linkwan/model/CountNodeTupleOrdersRequest.h>
using AlibabaCloud::LinkWAN::Model::CountNodeTupleOrdersRequest;
CountNodeTupleOrdersRequest::CountNodeTupleOrdersRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "CountNodeTupleOrders")
{
setMethod(HttpRequest::Method::Post);
}
CountNodeTupleOrdersRequest::~CountNodeTupleOrdersRequest()
{}
bool CountNodeTupleOrdersRequest::getIsKpm()const
{
return isKpm_;
}
void CountNodeTupleOrdersRequest::setIsKpm(bool isKpm)
{
isKpm_ = isKpm;
setParameter("IsKpm", isKpm ? "true" : "false");
}
std::vector<std::string> CountNodeTupleOrdersRequest::getStates()const
{
return states_;
}
void CountNodeTupleOrdersRequest::setStates(const std::vector<std::string>& states)
{
states_ = states;
for(int dep1 = 0; dep1!= states.size(); dep1++) {
setParameter("States."+ std::to_string(dep1), states.at(dep1));
}
}
std::string CountNodeTupleOrdersRequest::getApiProduct()const
{
return apiProduct_;
}
void CountNodeTupleOrdersRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CountNodeTupleOrdersRequest::getApiRevision()const
{
return apiRevision_;
}
void CountNodeTupleOrdersRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/CountNodeTupleOrdersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
CountNodeTupleOrdersResult::CountNodeTupleOrdersResult() :
ServiceResult()
{}
CountNodeTupleOrdersResult::CountNodeTupleOrdersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CountNodeTupleOrdersResult::~CountNodeTupleOrdersResult()
{}
void CountNodeTupleOrdersResult::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["Data"].isNull())
data_ = std::stol(value["Data"].asString());
}
long CountNodeTupleOrdersResult::getData()const
{
return data_;
}
bool CountNodeTupleOrdersResult::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/linkwan/model/CountNodesByNodeGroupIdRequest.h>
using AlibabaCloud::LinkWAN::Model::CountNodesByNodeGroupIdRequest;
CountNodesByNodeGroupIdRequest::CountNodesByNodeGroupIdRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "CountNodesByNodeGroupId")
{
setMethod(HttpRequest::Method::Post);
}
CountNodesByNodeGroupIdRequest::~CountNodesByNodeGroupIdRequest()
{}
std::string CountNodesByNodeGroupIdRequest::getFuzzyDevEui()const
{
return fuzzyDevEui_;
}
void CountNodesByNodeGroupIdRequest::setFuzzyDevEui(const std::string& fuzzyDevEui)
{
fuzzyDevEui_ = fuzzyDevEui;
setParameter("FuzzyDevEui", fuzzyDevEui);
}
std::string CountNodesByNodeGroupIdRequest::getNodeGroupId()const
{
return nodeGroupId_;
}
void CountNodesByNodeGroupIdRequest::setNodeGroupId(const std::string& nodeGroupId)
{
nodeGroupId_ = nodeGroupId;
setParameter("NodeGroupId", nodeGroupId);
}
std::string CountNodesByNodeGroupIdRequest::getApiProduct()const
{
return apiProduct_;
}
void CountNodesByNodeGroupIdRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CountNodesByNodeGroupIdRequest::getApiRevision()const
{
return apiRevision_;
}
void CountNodesByNodeGroupIdRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/CountNodesByNodeGroupIdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
CountNodesByNodeGroupIdResult::CountNodesByNodeGroupIdResult() :
ServiceResult()
{}
CountNodesByNodeGroupIdResult::CountNodesByNodeGroupIdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CountNodesByNodeGroupIdResult::~CountNodesByNodeGroupIdResult()
{}
void CountNodesByNodeGroupIdResult::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["Data"].isNull())
data_ = std::stol(value["Data"].asString());
}
long CountNodesByNodeGroupIdResult::getData()const
{
return data_;
}
bool CountNodesByNodeGroupIdResult::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/linkwan/model/CountNodesByOwnedJoinPermissionIdRequest.h>
using AlibabaCloud::LinkWAN::Model::CountNodesByOwnedJoinPermissionIdRequest;
CountNodesByOwnedJoinPermissionIdRequest::CountNodesByOwnedJoinPermissionIdRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "CountNodesByOwnedJoinPermissionId")
{
setMethod(HttpRequest::Method::Post);
}
CountNodesByOwnedJoinPermissionIdRequest::~CountNodesByOwnedJoinPermissionIdRequest()
{}
std::string CountNodesByOwnedJoinPermissionIdRequest::getJoinPermissionId()const
{
return joinPermissionId_;
}
void CountNodesByOwnedJoinPermissionIdRequest::setJoinPermissionId(const std::string& joinPermissionId)
{
joinPermissionId_ = joinPermissionId;
setParameter("JoinPermissionId", joinPermissionId);
}
std::string CountNodesByOwnedJoinPermissionIdRequest::getFuzzyDevEui()const
{
return fuzzyDevEui_;
}
void CountNodesByOwnedJoinPermissionIdRequest::setFuzzyDevEui(const std::string& fuzzyDevEui)
{
fuzzyDevEui_ = fuzzyDevEui;
setParameter("FuzzyDevEui", fuzzyDevEui);
}
std::string CountNodesByOwnedJoinPermissionIdRequest::getApiProduct()const
{
return apiProduct_;
}
void CountNodesByOwnedJoinPermissionIdRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CountNodesByOwnedJoinPermissionIdRequest::getApiRevision()const
{
return apiRevision_;
}
void CountNodesByOwnedJoinPermissionIdRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/CountNodesByOwnedJoinPermissionIdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
CountNodesByOwnedJoinPermissionIdResult::CountNodesByOwnedJoinPermissionIdResult() :
ServiceResult()
{}
CountNodesByOwnedJoinPermissionIdResult::CountNodesByOwnedJoinPermissionIdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CountNodesByOwnedJoinPermissionIdResult::~CountNodesByOwnedJoinPermissionIdResult()
{}
void CountNodesByOwnedJoinPermissionIdResult::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["Data"].isNull())
data_ = std::stol(value["Data"].asString());
}
long CountNodesByOwnedJoinPermissionIdResult::getData()const
{
return data_;
}
bool CountNodesByOwnedJoinPermissionIdResult::getSuccess()const
{
return success_;
}

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/linkwan/model/CountNotificationsRequest.h>
using AlibabaCloud::LinkWAN::Model::CountNotificationsRequest;
CountNotificationsRequest::CountNotificationsRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "CountNotifications")
{
setMethod(HttpRequest::Method::Post);
}
CountNotificationsRequest::~CountNotificationsRequest()
{}
long CountNotificationsRequest::getEndMillis()const
{
return endMillis_;
}
void CountNotificationsRequest::setEndMillis(long endMillis)
{
endMillis_ = endMillis;
setParameter("EndMillis", std::to_string(endMillis));
}
std::string CountNotificationsRequest::getHandleState()const
{
return handleState_;
}
void CountNotificationsRequest::setHandleState(const std::string& handleState)
{
handleState_ = handleState;
setParameter("HandleState", handleState);
}
std::string CountNotificationsRequest::getApiProduct()const
{
return apiProduct_;
}
void CountNotificationsRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CountNotificationsRequest::getApiRevision()const
{
return apiRevision_;
}
void CountNotificationsRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}
std::vector<std::string> CountNotificationsRequest::getCategory()const
{
return category_;
}
void CountNotificationsRequest::setCategory(const std::vector<std::string>& category)
{
category_ = category;
for(int dep1 = 0; dep1!= category.size(); dep1++) {
setParameter("Category."+ std::to_string(dep1), category.at(dep1));
}
}
long CountNotificationsRequest::getBeginMillis()const
{
return beginMillis_;
}
void CountNotificationsRequest::setBeginMillis(long beginMillis)
{
beginMillis_ = beginMillis;
setParameter("BeginMillis", std::to_string(beginMillis));
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/CountNotificationsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
CountNotificationsResult::CountNotificationsResult() :
ServiceResult()
{}
CountNotificationsResult::CountNotificationsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CountNotificationsResult::~CountNotificationsResult()
{}
void CountNotificationsResult::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["Data"].isNull())
data_ = std::stol(value["Data"].asString());
}
long CountNotificationsResult::getData()const
{
return data_;
}
bool CountNotificationsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,95 @@
/*
* 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/linkwan/model/CountOwnedJoinPermissionsRequest.h>
using AlibabaCloud::LinkWAN::Model::CountOwnedJoinPermissionsRequest;
CountOwnedJoinPermissionsRequest::CountOwnedJoinPermissionsRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "CountOwnedJoinPermissions")
{
setMethod(HttpRequest::Method::Post);
}
CountOwnedJoinPermissionsRequest::~CountOwnedJoinPermissionsRequest()
{}
bool CountOwnedJoinPermissionsRequest::getEnabled()const
{
return enabled_;
}
void CountOwnedJoinPermissionsRequest::setEnabled(bool enabled)
{
enabled_ = enabled;
setParameter("Enabled", enabled ? "true" : "false");
}
std::string CountOwnedJoinPermissionsRequest::getFuzzyJoinEui()const
{
return fuzzyJoinEui_;
}
void CountOwnedJoinPermissionsRequest::setFuzzyJoinEui(const std::string& fuzzyJoinEui)
{
fuzzyJoinEui_ = fuzzyJoinEui;
setParameter("FuzzyJoinEui", fuzzyJoinEui);
}
std::string CountOwnedJoinPermissionsRequest::getFuzzyJoinPermissionName()const
{
return fuzzyJoinPermissionName_;
}
void CountOwnedJoinPermissionsRequest::setFuzzyJoinPermissionName(const std::string& fuzzyJoinPermissionName)
{
fuzzyJoinPermissionName_ = fuzzyJoinPermissionName;
setParameter("FuzzyJoinPermissionName", fuzzyJoinPermissionName);
}
std::string CountOwnedJoinPermissionsRequest::getFuzzyRenterAliyunId()const
{
return fuzzyRenterAliyunId_;
}
void CountOwnedJoinPermissionsRequest::setFuzzyRenterAliyunId(const std::string& fuzzyRenterAliyunId)
{
fuzzyRenterAliyunId_ = fuzzyRenterAliyunId;
setParameter("FuzzyRenterAliyunId", fuzzyRenterAliyunId);
}
std::string CountOwnedJoinPermissionsRequest::getApiProduct()const
{
return apiProduct_;
}
void CountOwnedJoinPermissionsRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CountOwnedJoinPermissionsRequest::getApiRevision()const
{
return apiRevision_;
}
void CountOwnedJoinPermissionsRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/CountOwnedJoinPermissionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
CountOwnedJoinPermissionsResult::CountOwnedJoinPermissionsResult() :
ServiceResult()
{}
CountOwnedJoinPermissionsResult::CountOwnedJoinPermissionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CountOwnedJoinPermissionsResult::~CountOwnedJoinPermissionsResult()
{}
void CountOwnedJoinPermissionsResult::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["Data"].isNull())
data_ = std::stol(value["Data"].asString());
}
long CountOwnedJoinPermissionsResult::getData()const
{
return data_;
}
bool CountOwnedJoinPermissionsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,117 @@
/*
* 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/linkwan/model/CountRentedJoinPermissionsRequest.h>
using AlibabaCloud::LinkWAN::Model::CountRentedJoinPermissionsRequest;
CountRentedJoinPermissionsRequest::CountRentedJoinPermissionsRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "CountRentedJoinPermissions")
{
setMethod(HttpRequest::Method::Post);
}
CountRentedJoinPermissionsRequest::~CountRentedJoinPermissionsRequest()
{}
std::string CountRentedJoinPermissionsRequest::getType()const
{
return type_;
}
void CountRentedJoinPermissionsRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
bool CountRentedJoinPermissionsRequest::getEnabled()const
{
return enabled_;
}
void CountRentedJoinPermissionsRequest::setEnabled(bool enabled)
{
enabled_ = enabled;
setParameter("Enabled", enabled ? "true" : "false");
}
std::string CountRentedJoinPermissionsRequest::getFuzzyJoinEui()const
{
return fuzzyJoinEui_;
}
void CountRentedJoinPermissionsRequest::setFuzzyJoinEui(const std::string& fuzzyJoinEui)
{
fuzzyJoinEui_ = fuzzyJoinEui;
setParameter("FuzzyJoinEui", fuzzyJoinEui);
}
std::string CountRentedJoinPermissionsRequest::getFuzzyJoinPermissionName()const
{
return fuzzyJoinPermissionName_;
}
void CountRentedJoinPermissionsRequest::setFuzzyJoinPermissionName(const std::string& fuzzyJoinPermissionName)
{
fuzzyJoinPermissionName_ = fuzzyJoinPermissionName;
setParameter("FuzzyJoinPermissionName", fuzzyJoinPermissionName);
}
bool CountRentedJoinPermissionsRequest::getBoundNodeGroup()const
{
return boundNodeGroup_;
}
void CountRentedJoinPermissionsRequest::setBoundNodeGroup(bool boundNodeGroup)
{
boundNodeGroup_ = boundNodeGroup;
setParameter("BoundNodeGroup", boundNodeGroup ? "true" : "false");
}
std::string CountRentedJoinPermissionsRequest::getApiProduct()const
{
return apiProduct_;
}
void CountRentedJoinPermissionsRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CountRentedJoinPermissionsRequest::getApiRevision()const
{
return apiRevision_;
}
void CountRentedJoinPermissionsRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}
std::string CountRentedJoinPermissionsRequest::getFuzzyOwnerAliyunId()const
{
return fuzzyOwnerAliyunId_;
}
void CountRentedJoinPermissionsRequest::setFuzzyOwnerAliyunId(const std::string& fuzzyOwnerAliyunId)
{
fuzzyOwnerAliyunId_ = fuzzyOwnerAliyunId;
setParameter("FuzzyOwnerAliyunId", fuzzyOwnerAliyunId);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/CountRentedJoinPermissionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
CountRentedJoinPermissionsResult::CountRentedJoinPermissionsResult() :
ServiceResult()
{}
CountRentedJoinPermissionsResult::CountRentedJoinPermissionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CountRentedJoinPermissionsResult::~CountRentedJoinPermissionsResult()
{}
void CountRentedJoinPermissionsResult::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["Data"].isNull())
data_ = std::stol(value["Data"].asString());
}
long CountRentedJoinPermissionsResult::getData()const
{
return data_;
}
bool CountRentedJoinPermissionsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,95 @@
/*
* 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/linkwan/model/CreateCustomLocalJoinPermissionRequest.h>
using AlibabaCloud::LinkWAN::Model::CreateCustomLocalJoinPermissionRequest;
CreateCustomLocalJoinPermissionRequest::CreateCustomLocalJoinPermissionRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "CreateCustomLocalJoinPermission")
{
setMethod(HttpRequest::Method::Post);
}
CreateCustomLocalJoinPermissionRequest::~CreateCustomLocalJoinPermissionRequest()
{}
std::string CreateCustomLocalJoinPermissionRequest::getClassMode()const
{
return classMode_;
}
void CreateCustomLocalJoinPermissionRequest::setClassMode(const std::string& classMode)
{
classMode_ = classMode;
setParameter("ClassMode", classMode);
}
long CreateCustomLocalJoinPermissionRequest::getFreqBandPlanGroupId()const
{
return freqBandPlanGroupId_;
}
void CreateCustomLocalJoinPermissionRequest::setFreqBandPlanGroupId(long freqBandPlanGroupId)
{
freqBandPlanGroupId_ = freqBandPlanGroupId;
setParameter("FreqBandPlanGroupId", std::to_string(freqBandPlanGroupId));
}
std::string CreateCustomLocalJoinPermissionRequest::getJoinEui()const
{
return joinEui_;
}
void CreateCustomLocalJoinPermissionRequest::setJoinEui(const std::string& joinEui)
{
joinEui_ = joinEui;
setParameter("JoinEui", joinEui);
}
std::string CreateCustomLocalJoinPermissionRequest::getApiProduct()const
{
return apiProduct_;
}
void CreateCustomLocalJoinPermissionRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CreateCustomLocalJoinPermissionRequest::getApiRevision()const
{
return apiRevision_;
}
void CreateCustomLocalJoinPermissionRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}
std::string CreateCustomLocalJoinPermissionRequest::getJoinPermissionName()const
{
return joinPermissionName_;
}
void CreateCustomLocalJoinPermissionRequest::setJoinPermissionName(const std::string& joinPermissionName)
{
joinPermissionName_ = joinPermissionName;
setParameter("JoinPermissionName", joinPermissionName);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/CreateCustomLocalJoinPermissionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
CreateCustomLocalJoinPermissionResult::CreateCustomLocalJoinPermissionResult() :
ServiceResult()
{}
CreateCustomLocalJoinPermissionResult::CreateCustomLocalJoinPermissionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateCustomLocalJoinPermissionResult::~CreateCustomLocalJoinPermissionResult()
{}
void CreateCustomLocalJoinPermissionResult::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["Data"].isNull())
data_ = value["Data"].asString();
}
std::string CreateCustomLocalJoinPermissionResult::getData()const
{
return data_;
}
bool CreateCustomLocalJoinPermissionResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,205 @@
/*
* 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/linkwan/model/CreateGatewayRequest.h>
using AlibabaCloud::LinkWAN::Model::CreateGatewayRequest;
CreateGatewayRequest::CreateGatewayRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "CreateGateway")
{
setMethod(HttpRequest::Method::Post);
}
CreateGatewayRequest::~CreateGatewayRequest()
{}
std::string CreateGatewayRequest::getCity()const
{
return city_;
}
void CreateGatewayRequest::setCity(const std::string& city)
{
city_ = city;
setParameter("City", city);
}
float CreateGatewayRequest::getLatitude()const
{
return latitude_;
}
void CreateGatewayRequest::setLatitude(float latitude)
{
latitude_ = latitude;
setParameter("Latitude", std::to_string(latitude));
}
std::string CreateGatewayRequest::getDescription()const
{
return description_;
}
void CreateGatewayRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long CreateGatewayRequest::getAddressCode()const
{
return addressCode_;
}
void CreateGatewayRequest::setAddressCode(long addressCode)
{
addressCode_ = addressCode;
setParameter("AddressCode", std::to_string(addressCode));
}
std::string CreateGatewayRequest::getGisCoordinateSystem()const
{
return gisCoordinateSystem_;
}
void CreateGatewayRequest::setGisCoordinateSystem(const std::string& gisCoordinateSystem)
{
gisCoordinateSystem_ = gisCoordinateSystem;
setParameter("GisCoordinateSystem", gisCoordinateSystem);
}
std::string CreateGatewayRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void CreateGatewayRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
float CreateGatewayRequest::getLongitude()const
{
return longitude_;
}
void CreateGatewayRequest::setLongitude(float longitude)
{
longitude_ = longitude;
setParameter("Longitude", std::to_string(longitude));
}
std::string CreateGatewayRequest::getPinCode()const
{
return pinCode_;
}
void CreateGatewayRequest::setPinCode(const std::string& pinCode)
{
pinCode_ = pinCode;
setParameter("PinCode", pinCode);
}
std::string CreateGatewayRequest::getAddress()const
{
return address_;
}
void CreateGatewayRequest::setAddress(const std::string& address)
{
address_ = address;
setParameter("Address", address);
}
std::string CreateGatewayRequest::getGwEui()const
{
return gwEui_;
}
void CreateGatewayRequest::setGwEui(const std::string& gwEui)
{
gwEui_ = gwEui;
setParameter("GwEui", gwEui);
}
long CreateGatewayRequest::getFreqBandPlanGroupId()const
{
return freqBandPlanGroupId_;
}
void CreateGatewayRequest::setFreqBandPlanGroupId(long freqBandPlanGroupId)
{
freqBandPlanGroupId_ = freqBandPlanGroupId;
setParameter("FreqBandPlanGroupId", std::to_string(freqBandPlanGroupId));
}
std::string CreateGatewayRequest::getDistrict()const
{
return district_;
}
void CreateGatewayRequest::setDistrict(const std::string& district)
{
district_ = district;
setParameter("District", district);
}
std::string CreateGatewayRequest::getApiProduct()const
{
return apiProduct_;
}
void CreateGatewayRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CreateGatewayRequest::getName()const
{
return name_;
}
void CreateGatewayRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateGatewayRequest::getApiRevision()const
{
return apiRevision_;
}
void CreateGatewayRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}
std::string CreateGatewayRequest::getCommunicationMode()const
{
return communicationMode_;
}
void CreateGatewayRequest::setCommunicationMode(const std::string& communicationMode)
{
communicationMode_ = communicationMode;
setParameter("CommunicationMode", communicationMode);
}

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/linkwan/model/CreateGatewayResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
CreateGatewayResult::CreateGatewayResult() :
ServiceResult()
{}
CreateGatewayResult::CreateGatewayResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateGatewayResult::~CreateGatewayResult()
{}
void CreateGatewayResult::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";
}
bool CreateGatewayResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,139 @@
/*
* 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/linkwan/model/CreateLocalJoinPermissionRequest.h>
using AlibabaCloud::LinkWAN::Model::CreateLocalJoinPermissionRequest;
CreateLocalJoinPermissionRequest::CreateLocalJoinPermissionRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "CreateLocalJoinPermission")
{
setMethod(HttpRequest::Method::Post);
}
CreateLocalJoinPermissionRequest::~CreateLocalJoinPermissionRequest()
{}
long CreateLocalJoinPermissionRequest::getRxDelay()const
{
return rxDelay_;
}
void CreateLocalJoinPermissionRequest::setRxDelay(long rxDelay)
{
rxDelay_ = rxDelay;
setParameter("RxDelay", std::to_string(rxDelay));
}
std::string CreateLocalJoinPermissionRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void CreateLocalJoinPermissionRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
bool CreateLocalJoinPermissionRequest::getUseDefaultJoinEui()const
{
return useDefaultJoinEui_;
}
void CreateLocalJoinPermissionRequest::setUseDefaultJoinEui(bool useDefaultJoinEui)
{
useDefaultJoinEui_ = useDefaultJoinEui;
setParameter("UseDefaultJoinEui", useDefaultJoinEui ? "true" : "false");
}
std::string CreateLocalJoinPermissionRequest::getClassMode()const
{
return classMode_;
}
void CreateLocalJoinPermissionRequest::setClassMode(const std::string& classMode)
{
classMode_ = classMode;
setParameter("ClassMode", classMode);
}
long CreateLocalJoinPermissionRequest::getFreqBandPlanGroupId()const
{
return freqBandPlanGroupId_;
}
void CreateLocalJoinPermissionRequest::setFreqBandPlanGroupId(long freqBandPlanGroupId)
{
freqBandPlanGroupId_ = freqBandPlanGroupId;
setParameter("FreqBandPlanGroupId", std::to_string(freqBandPlanGroupId));
}
std::string CreateLocalJoinPermissionRequest::getJoinEui()const
{
return joinEui_;
}
void CreateLocalJoinPermissionRequest::setJoinEui(const std::string& joinEui)
{
joinEui_ = joinEui;
setParameter("JoinEui", joinEui);
}
std::string CreateLocalJoinPermissionRequest::getApiProduct()const
{
return apiProduct_;
}
void CreateLocalJoinPermissionRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CreateLocalJoinPermissionRequest::getApiRevision()const
{
return apiRevision_;
}
void CreateLocalJoinPermissionRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}
std::string CreateLocalJoinPermissionRequest::getJoinPermissionName()const
{
return joinPermissionName_;
}
void CreateLocalJoinPermissionRequest::setJoinPermissionName(const std::string& joinPermissionName)
{
joinPermissionName_ = joinPermissionName;
setParameter("JoinPermissionName", joinPermissionName);
}
long CreateLocalJoinPermissionRequest::getDataRate()const
{
return dataRate_;
}
void CreateLocalJoinPermissionRequest::setDataRate(long dataRate)
{
dataRate_ = dataRate;
setParameter("DataRate", std::to_string(dataRate));
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/CreateLocalJoinPermissionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
CreateLocalJoinPermissionResult::CreateLocalJoinPermissionResult() :
ServiceResult()
{}
CreateLocalJoinPermissionResult::CreateLocalJoinPermissionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLocalJoinPermissionResult::~CreateLocalJoinPermissionResult()
{}
void CreateLocalJoinPermissionResult::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["Data"].isNull())
data_ = value["Data"].asString();
}
std::string CreateLocalJoinPermissionResult::getData()const
{
return data_;
}
bool CreateLocalJoinPermissionResult::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/linkwan/model/CreateNodeGroupRequest.h>
using AlibabaCloud::LinkWAN::Model::CreateNodeGroupRequest;
CreateNodeGroupRequest::CreateNodeGroupRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "CreateNodeGroup")
{
setMethod(HttpRequest::Method::Post);
}
CreateNodeGroupRequest::~CreateNodeGroupRequest()
{}
std::string CreateNodeGroupRequest::getNodeGroupName()const
{
return nodeGroupName_;
}
void CreateNodeGroupRequest::setNodeGroupName(const std::string& nodeGroupName)
{
nodeGroupName_ = nodeGroupName;
setParameter("NodeGroupName", nodeGroupName);
}
std::string CreateNodeGroupRequest::getJoinPermissionId()const
{
return joinPermissionId_;
}
void CreateNodeGroupRequest::setJoinPermissionId(const std::string& joinPermissionId)
{
joinPermissionId_ = joinPermissionId;
setParameter("JoinPermissionId", joinPermissionId);
}
std::string CreateNodeGroupRequest::getApiProduct()const
{
return apiProduct_;
}
void CreateNodeGroupRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string CreateNodeGroupRequest::getApiRevision()const
{
return apiRevision_;
}
void CreateNodeGroupRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/CreateNodeGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
CreateNodeGroupResult::CreateNodeGroupResult() :
ServiceResult()
{}
CreateNodeGroupResult::CreateNodeGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateNodeGroupResult::~CreateNodeGroupResult()
{}
void CreateNodeGroupResult::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["Data"].isNull())
data_ = value["Data"].asString();
}
std::string CreateNodeGroupResult::getData()const
{
return data_;
}
bool CreateNodeGroupResult::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/linkwan/model/DeleteGatewayRequest.h>
using AlibabaCloud::LinkWAN::Model::DeleteGatewayRequest;
DeleteGatewayRequest::DeleteGatewayRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "DeleteGateway")
{
setMethod(HttpRequest::Method::Post);
}
DeleteGatewayRequest::~DeleteGatewayRequest()
{}
std::string DeleteGatewayRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void DeleteGatewayRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string DeleteGatewayRequest::getGwEui()const
{
return gwEui_;
}
void DeleteGatewayRequest::setGwEui(const std::string& gwEui)
{
gwEui_ = gwEui;
setParameter("GwEui", gwEui);
}
std::string DeleteGatewayRequest::getApiProduct()const
{
return apiProduct_;
}
void DeleteGatewayRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string DeleteGatewayRequest::getApiRevision()const
{
return apiRevision_;
}
void DeleteGatewayRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

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/linkwan/model/DeleteGatewayResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
DeleteGatewayResult::DeleteGatewayResult() :
ServiceResult()
{}
DeleteGatewayResult::DeleteGatewayResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteGatewayResult::~DeleteGatewayResult()
{}
void DeleteGatewayResult::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";
}
bool DeleteGatewayResult::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/linkwan/model/DeleteLocalJoinPermissionRequest.h>
using AlibabaCloud::LinkWAN::Model::DeleteLocalJoinPermissionRequest;
DeleteLocalJoinPermissionRequest::DeleteLocalJoinPermissionRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "DeleteLocalJoinPermission")
{
setMethod(HttpRequest::Method::Post);
}
DeleteLocalJoinPermissionRequest::~DeleteLocalJoinPermissionRequest()
{}
std::string DeleteLocalJoinPermissionRequest::getJoinPermissionId()const
{
return joinPermissionId_;
}
void DeleteLocalJoinPermissionRequest::setJoinPermissionId(const std::string& joinPermissionId)
{
joinPermissionId_ = joinPermissionId;
setParameter("JoinPermissionId", joinPermissionId);
}
std::string DeleteLocalJoinPermissionRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void DeleteLocalJoinPermissionRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string DeleteLocalJoinPermissionRequest::getApiProduct()const
{
return apiProduct_;
}
void DeleteLocalJoinPermissionRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string DeleteLocalJoinPermissionRequest::getApiRevision()const
{
return apiRevision_;
}
void DeleteLocalJoinPermissionRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

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/linkwan/model/DeleteLocalJoinPermissionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
DeleteLocalJoinPermissionResult::DeleteLocalJoinPermissionResult() :
ServiceResult()
{}
DeleteLocalJoinPermissionResult::DeleteLocalJoinPermissionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteLocalJoinPermissionResult::~DeleteLocalJoinPermissionResult()
{}
void DeleteLocalJoinPermissionResult::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";
}
bool DeleteLocalJoinPermissionResult::getSuccess()const
{
return success_;
}

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.
*/
#include <alibabacloud/linkwan/model/DeleteNodeGroupRequest.h>
using AlibabaCloud::LinkWAN::Model::DeleteNodeGroupRequest;
DeleteNodeGroupRequest::DeleteNodeGroupRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "DeleteNodeGroup")
{
setMethod(HttpRequest::Method::Post);
}
DeleteNodeGroupRequest::~DeleteNodeGroupRequest()
{}
std::string DeleteNodeGroupRequest::getNodeGroupId()const
{
return nodeGroupId_;
}
void DeleteNodeGroupRequest::setNodeGroupId(const std::string& nodeGroupId)
{
nodeGroupId_ = nodeGroupId;
setParameter("NodeGroupId", nodeGroupId);
}
std::string DeleteNodeGroupRequest::getApiProduct()const
{
return apiProduct_;
}
void DeleteNodeGroupRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string DeleteNodeGroupRequest::getApiRevision()const
{
return apiRevision_;
}
void DeleteNodeGroupRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

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/linkwan/model/DeleteNodeGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
DeleteNodeGroupResult::DeleteNodeGroupResult() :
ServiceResult()
{}
DeleteNodeGroupResult::DeleteNodeGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteNodeGroupResult::~DeleteNodeGroupResult()
{}
void DeleteNodeGroupResult::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";
}
bool DeleteNodeGroupResult::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/linkwan/model/DescribeRegionsRequest.h>
using AlibabaCloud::LinkWAN::Model::DescribeRegionsRequest;
DescribeRegionsRequest::DescribeRegionsRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "DescribeRegions")
{
setMethod(HttpRequest::Method::Post);
}
DescribeRegionsRequest::~DescribeRegionsRequest()
{}
std::string DescribeRegionsRequest::getApiProduct()const
{
return apiProduct_;
}
void DescribeRegionsRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string DescribeRegionsRequest::getApiRevision()const
{
return apiRevision_;
}
void DescribeRegionsRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,66 @@
/*
* 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/linkwan/model/DescribeRegionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
DescribeRegionsResult::DescribeRegionsResult() :
ServiceResult()
{}
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRegionsResult::~DescribeRegionsResult()
{}
void DescribeRegionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["Region"];
for (auto valueDataRegion : allDataNode)
{
Region dataObject;
if(!valueDataRegion["RegionId"].isNull())
dataObject.regionId = valueDataRegion["RegionId"].asString();
if(!valueDataRegion["LocalName"].isNull())
dataObject.localName = valueDataRegion["LocalName"].asString();
data_.push_back(dataObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<DescribeRegionsResult::Region> DescribeRegionsResult::getData()const
{
return data_;
}
bool DescribeRegionsResult::getSuccess()const
{
return success_;
}

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.
*/
#include <alibabacloud/linkwan/model/GetFreqBandPlanGroupRequest.h>
using AlibabaCloud::LinkWAN::Model::GetFreqBandPlanGroupRequest;
GetFreqBandPlanGroupRequest::GetFreqBandPlanGroupRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetFreqBandPlanGroup")
{
setMethod(HttpRequest::Method::Post);
}
GetFreqBandPlanGroupRequest::~GetFreqBandPlanGroupRequest()
{}
long GetFreqBandPlanGroupRequest::getGroupId()const
{
return groupId_;
}
void GetFreqBandPlanGroupRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setParameter("GroupId", std::to_string(groupId));
}
std::string GetFreqBandPlanGroupRequest::getApiProduct()const
{
return apiProduct_;
}
void GetFreqBandPlanGroupRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetFreqBandPlanGroupRequest::getApiRevision()const
{
return apiRevision_;
}
void GetFreqBandPlanGroupRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,67 @@
/*
* 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/linkwan/model/GetFreqBandPlanGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetFreqBandPlanGroupResult::GetFreqBandPlanGroupResult() :
ServiceResult()
{}
GetFreqBandPlanGroupResult::GetFreqBandPlanGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetFreqBandPlanGroupResult::~GetFreqBandPlanGroupResult()
{}
void GetFreqBandPlanGroupResult::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["GroupId"].isNull())
data_.groupId = std::stol(dataNode["GroupId"].asString());
if(!dataNode["FrequencyRegionId"].isNull())
data_.frequencyRegionId = dataNode["FrequencyRegionId"].asString();
if(!dataNode["FrequencyType"].isNull())
data_.frequencyType = dataNode["FrequencyType"].asString();
if(!dataNode["BeginFrequency"].isNull())
data_.beginFrequency = std::stol(dataNode["BeginFrequency"].asString());
if(!dataNode["EndFrequency"].isNull())
data_.endFrequency = std::stol(dataNode["EndFrequency"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetFreqBandPlanGroupResult::Data GetFreqBandPlanGroupResult::getData()const
{
return data_;
}
bool GetFreqBandPlanGroupResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,95 @@
/*
* 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/linkwan/model/GetGatewayPacketStatRequest.h>
using AlibabaCloud::LinkWAN::Model::GetGatewayPacketStatRequest;
GetGatewayPacketStatRequest::GetGatewayPacketStatRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetGatewayPacketStat")
{
setMethod(HttpRequest::Method::Post);
}
GetGatewayPacketStatRequest::~GetGatewayPacketStatRequest()
{}
long GetGatewayPacketStatRequest::getEndMillis()const
{
return endMillis_;
}
void GetGatewayPacketStatRequest::setEndMillis(long endMillis)
{
endMillis_ = endMillis;
setParameter("EndMillis", std::to_string(endMillis));
}
std::string GetGatewayPacketStatRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void GetGatewayPacketStatRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string GetGatewayPacketStatRequest::getGwEui()const
{
return gwEui_;
}
void GetGatewayPacketStatRequest::setGwEui(const std::string& gwEui)
{
gwEui_ = gwEui;
setParameter("GwEui", gwEui);
}
std::string GetGatewayPacketStatRequest::getApiProduct()const
{
return apiProduct_;
}
void GetGatewayPacketStatRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetGatewayPacketStatRequest::getApiRevision()const
{
return apiRevision_;
}
void GetGatewayPacketStatRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}
long GetGatewayPacketStatRequest::getBeginMillis()const
{
return beginMillis_;
}
void GetGatewayPacketStatRequest::setBeginMillis(long beginMillis)
{
beginMillis_ = beginMillis;
setParameter("BeginMillis", std::to_string(beginMillis));
}

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/linkwan/model/GetGatewayPacketStatResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetGatewayPacketStatResult::GetGatewayPacketStatResult() :
ServiceResult()
{}
GetGatewayPacketStatResult::GetGatewayPacketStatResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetGatewayPacketStatResult::~GetGatewayPacketStatResult()
{}
void GetGatewayPacketStatResult::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["UplinkValid"].isNull())
data_.uplinkValid = std::stoi(dataNode["UplinkValid"].asString());
if(!dataNode["UplinkInvalid"].isNull())
data_.uplinkInvalid = std::stoi(dataNode["UplinkInvalid"].asString());
if(!dataNode["DownlinkValid"].isNull())
data_.downlinkValid = std::stoi(dataNode["DownlinkValid"].asString());
if(!dataNode["DownlinkInvalid"].isNull())
data_.downlinkInvalid = std::stoi(dataNode["DownlinkInvalid"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetGatewayPacketStatResult::Data GetGatewayPacketStatResult::getData()const
{
return data_;
}
bool GetGatewayPacketStatResult::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/linkwan/model/GetGatewayRequest.h>
using AlibabaCloud::LinkWAN::Model::GetGatewayRequest;
GetGatewayRequest::GetGatewayRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetGateway")
{
setMethod(HttpRequest::Method::Post);
}
GetGatewayRequest::~GetGatewayRequest()
{}
std::string GetGatewayRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void GetGatewayRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string GetGatewayRequest::getGwEui()const
{
return gwEui_;
}
void GetGatewayRequest::setGwEui(const std::string& gwEui)
{
gwEui_ = gwEui;
setParameter("GwEui", gwEui);
}
std::string GetGatewayRequest::getApiProduct()const
{
return apiProduct_;
}
void GetGatewayRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetGatewayRequest::getApiRevision()const
{
return apiRevision_;
}
void GetGatewayRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

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/linkwan/model/GetGatewayResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetGatewayResult::GetGatewayResult() :
ServiceResult()
{}
GetGatewayResult::GetGatewayResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetGatewayResult::~GetGatewayResult()
{}
void GetGatewayResult::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["GwEui"].isNull())
data_.gwEui = dataNode["GwEui"].asString();
if(!dataNode["OnlineState"].isNull())
data_.onlineState = dataNode["OnlineState"].asString();
if(!dataNode["Name"].isNull())
data_.name = dataNode["Name"].asString();
if(!dataNode["Description"].isNull())
data_.description = dataNode["Description"].asString();
if(!dataNode["City"].isNull())
data_.city = dataNode["City"].asString();
if(!dataNode["District"].isNull())
data_.district = dataNode["District"].asString();
if(!dataNode["Address"].isNull())
data_.address = dataNode["Address"].asString();
if(!dataNode["AddressCode"].isNull())
data_.addressCode = std::stol(dataNode["AddressCode"].asString());
if(!dataNode["GisCoordinateSystem"].isNull())
data_.gisCoordinateSystem = dataNode["GisCoordinateSystem"].asString();
if(!dataNode["Longitude"].isNull())
data_.longitude = std::stof(dataNode["Longitude"].asString());
if(!dataNode["Latitude"].isNull())
data_.latitude = std::stof(dataNode["Latitude"].asString());
if(!dataNode["FreqBandPlanGroupId"].isNull())
data_.freqBandPlanGroupId = std::stol(dataNode["FreqBandPlanGroupId"].asString());
if(!dataNode["CommunicationMode"].isNull())
data_.communicationMode = dataNode["CommunicationMode"].asString();
if(!dataNode["TimeCorrectable"].isNull())
data_.timeCorrectable = dataNode["TimeCorrectable"].asString() == "true";
if(!dataNode["ClassBSupported"].isNull())
data_.classBSupported = dataNode["ClassBSupported"].asString() == "true";
if(!dataNode["ClassBWorking"].isNull())
data_.classBWorking = dataNode["ClassBWorking"].asString() == "true";
if(!dataNode["Enabled"].isNull())
data_.enabled = dataNode["Enabled"].asString() == "true";
if(!dataNode["OnlineStateChangedMillis"].isNull())
data_.onlineStateChangedMillis = std::stol(dataNode["OnlineStateChangedMillis"].asString());
if(!dataNode["EmbeddedNsId"].isNull())
data_.embeddedNsId = dataNode["EmbeddedNsId"].asString();
if(!dataNode["ChargeStatus"].isNull())
data_.chargeStatus = dataNode["ChargeStatus"].asString();
if(!dataNode["AuthTypes"].isNull())
data_.authTypes = dataNode["AuthTypes"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetGatewayResult::Data GetGatewayResult::getData()const
{
return data_;
}
bool GetGatewayResult::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/linkwan/model/GetGatewayStatusStatRequest.h>
using AlibabaCloud::LinkWAN::Model::GetGatewayStatusStatRequest;
GetGatewayStatusStatRequest::GetGatewayStatusStatRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetGatewayStatusStat")
{
setMethod(HttpRequest::Method::Post);
}
GetGatewayStatusStatRequest::~GetGatewayStatusStatRequest()
{}
std::string GetGatewayStatusStatRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void GetGatewayStatusStatRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string GetGatewayStatusStatRequest::getGwEui()const
{
return gwEui_;
}
void GetGatewayStatusStatRequest::setGwEui(const std::string& gwEui)
{
gwEui_ = gwEui;
setParameter("GwEui", gwEui);
}
std::string GetGatewayStatusStatRequest::getApiProduct()const
{
return apiProduct_;
}
void GetGatewayStatusStatRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetGatewayStatusStatRequest::getApiRevision()const
{
return apiRevision_;
}
void GetGatewayStatusStatRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

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/linkwan/model/GetGatewayStatusStatResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetGatewayStatusStatResult::GetGatewayStatusStatResult() :
ServiceResult()
{}
GetGatewayStatusStatResult::GetGatewayStatusStatResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetGatewayStatusStatResult::~GetGatewayStatusStatResult()
{}
void GetGatewayStatusStatResult::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["GwEui"].isNull())
data_.gwEui = dataNode["GwEui"].asString();
if(!dataNode["CpuRadio"].isNull())
data_.cpuRadio = std::stof(dataNode["CpuRadio"].asString());
if(!dataNode["MemoryRadio"].isNull())
data_.memoryRadio = std::stof(dataNode["MemoryRadio"].asString());
if(!dataNode["RxCount"].isNull())
data_.rxCount = std::stol(dataNode["RxCount"].asString());
if(!dataNode["TxCount"].isNull())
data_.txCount = std::stol(dataNode["TxCount"].asString());
if(!dataNode["OnlineState"].isNull())
data_.onlineState = dataNode["OnlineState"].asString();
if(!dataNode["OnlineHour"].isNull())
data_.onlineHour = std::stol(dataNode["OnlineHour"].asString());
if(!dataNode["Enabled"].isNull())
data_.enabled = dataNode["Enabled"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetGatewayStatusStatResult::Data GetGatewayStatusStatResult::getData()const
{
return data_;
}
bool GetGatewayStatusStatResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,139 @@
/*
* 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/linkwan/model/GetGatewayTransferPacketsDownloadUrlRequest.h>
using AlibabaCloud::LinkWAN::Model::GetGatewayTransferPacketsDownloadUrlRequest;
GetGatewayTransferPacketsDownloadUrlRequest::GetGatewayTransferPacketsDownloadUrlRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetGatewayTransferPacketsDownloadUrl")
{
setMethod(HttpRequest::Method::Post);
}
GetGatewayTransferPacketsDownloadUrlRequest::~GetGatewayTransferPacketsDownloadUrlRequest()
{}
long GetGatewayTransferPacketsDownloadUrlRequest::getEndMillis()const
{
return endMillis_;
}
void GetGatewayTransferPacketsDownloadUrlRequest::setEndMillis(long endMillis)
{
endMillis_ = endMillis;
setParameter("EndMillis", std::to_string(endMillis));
}
std::string GetGatewayTransferPacketsDownloadUrlRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void GetGatewayTransferPacketsDownloadUrlRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string GetGatewayTransferPacketsDownloadUrlRequest::getGwEui()const
{
return gwEui_;
}
void GetGatewayTransferPacketsDownloadUrlRequest::setGwEui(const std::string& gwEui)
{
gwEui_ = gwEui;
setParameter("GwEui", gwEui);
}
bool GetGatewayTransferPacketsDownloadUrlRequest::getAscending()const
{
return ascending_;
}
void GetGatewayTransferPacketsDownloadUrlRequest::setAscending(bool ascending)
{
ascending_ = ascending;
setParameter("Ascending", ascending ? "true" : "false");
}
std::string GetGatewayTransferPacketsDownloadUrlRequest::getDevEui()const
{
return devEui_;
}
void GetGatewayTransferPacketsDownloadUrlRequest::setDevEui(const std::string& devEui)
{
devEui_ = devEui;
setParameter("DevEui", devEui);
}
std::string GetGatewayTransferPacketsDownloadUrlRequest::getApiProduct()const
{
return apiProduct_;
}
void GetGatewayTransferPacketsDownloadUrlRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetGatewayTransferPacketsDownloadUrlRequest::getApiRevision()const
{
return apiRevision_;
}
void GetGatewayTransferPacketsDownloadUrlRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}
std::string GetGatewayTransferPacketsDownloadUrlRequest::getCategory()const
{
return category_;
}
void GetGatewayTransferPacketsDownloadUrlRequest::setCategory(const std::string& category)
{
category_ = category;
setParameter("Category", category);
}
long GetGatewayTransferPacketsDownloadUrlRequest::getBeginMillis()const
{
return beginMillis_;
}
void GetGatewayTransferPacketsDownloadUrlRequest::setBeginMillis(long beginMillis)
{
beginMillis_ = beginMillis;
setParameter("BeginMillis", std::to_string(beginMillis));
}
std::string GetGatewayTransferPacketsDownloadUrlRequest::getSortingField()const
{
return sortingField_;
}
void GetGatewayTransferPacketsDownloadUrlRequest::setSortingField(const std::string& sortingField)
{
sortingField_ = sortingField;
setParameter("SortingField", sortingField);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/GetGatewayTransferPacketsDownloadUrlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetGatewayTransferPacketsDownloadUrlResult::GetGatewayTransferPacketsDownloadUrlResult() :
ServiceResult()
{}
GetGatewayTransferPacketsDownloadUrlResult::GetGatewayTransferPacketsDownloadUrlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetGatewayTransferPacketsDownloadUrlResult::~GetGatewayTransferPacketsDownloadUrlResult()
{}
void GetGatewayTransferPacketsDownloadUrlResult::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["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetGatewayTransferPacketsDownloadUrlResult::getData()const
{
return data_;
}
bool GetGatewayTransferPacketsDownloadUrlResult::getSuccess()const
{
return success_;
}

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.
*/
#include <alibabacloud/linkwan/model/GetGatewayTupleOrderRequest.h>
using AlibabaCloud::LinkWAN::Model::GetGatewayTupleOrderRequest;
GetGatewayTupleOrderRequest::GetGatewayTupleOrderRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetGatewayTupleOrder")
{
setMethod(HttpRequest::Method::Post);
}
GetGatewayTupleOrderRequest::~GetGatewayTupleOrderRequest()
{}
std::string GetGatewayTupleOrderRequest::getOrderId()const
{
return orderId_;
}
void GetGatewayTupleOrderRequest::setOrderId(const std::string& orderId)
{
orderId_ = orderId;
setParameter("OrderId", orderId);
}
std::string GetGatewayTupleOrderRequest::getApiProduct()const
{
return apiProduct_;
}
void GetGatewayTupleOrderRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetGatewayTupleOrderRequest::getApiRevision()const
{
return apiRevision_;
}
void GetGatewayTupleOrderRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,67 @@
/*
* 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/linkwan/model/GetGatewayTupleOrderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetGatewayTupleOrderResult::GetGatewayTupleOrderResult() :
ServiceResult()
{}
GetGatewayTupleOrderResult::GetGatewayTupleOrderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetGatewayTupleOrderResult::~GetGatewayTupleOrderResult()
{}
void GetGatewayTupleOrderResult::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["OrderId"].isNull())
data_.orderId = dataNode["OrderId"].asString();
if(!dataNode["OrderState"].isNull())
data_.orderState = dataNode["OrderState"].asString();
if(!dataNode["RequiredCount"].isNull())
data_.requiredCount = std::stol(dataNode["RequiredCount"].asString());
if(!dataNode["CreatedMillis"].isNull())
data_.createdMillis = std::stol(dataNode["CreatedMillis"].asString());
if(!dataNode["AcceptedMillis"].isNull())
data_.acceptedMillis = std::stol(dataNode["AcceptedMillis"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetGatewayTupleOrderResult::Data GetGatewayTupleOrderResult::getData()const
{
return data_;
}
bool GetGatewayTupleOrderResult::getSuccess()const
{
return success_;
}

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.
*/
#include <alibabacloud/linkwan/model/GetGatewayTuplesDownloadUrlRequest.h>
using AlibabaCloud::LinkWAN::Model::GetGatewayTuplesDownloadUrlRequest;
GetGatewayTuplesDownloadUrlRequest::GetGatewayTuplesDownloadUrlRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetGatewayTuplesDownloadUrl")
{
setMethod(HttpRequest::Method::Post);
}
GetGatewayTuplesDownloadUrlRequest::~GetGatewayTuplesDownloadUrlRequest()
{}
std::string GetGatewayTuplesDownloadUrlRequest::getOrderId()const
{
return orderId_;
}
void GetGatewayTuplesDownloadUrlRequest::setOrderId(const std::string& orderId)
{
orderId_ = orderId;
setParameter("OrderId", orderId);
}
std::string GetGatewayTuplesDownloadUrlRequest::getApiProduct()const
{
return apiProduct_;
}
void GetGatewayTuplesDownloadUrlRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetGatewayTuplesDownloadUrlRequest::getApiRevision()const
{
return apiRevision_;
}
void GetGatewayTuplesDownloadUrlRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/GetGatewayTuplesDownloadUrlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetGatewayTuplesDownloadUrlResult::GetGatewayTuplesDownloadUrlResult() :
ServiceResult()
{}
GetGatewayTuplesDownloadUrlResult::GetGatewayTuplesDownloadUrlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetGatewayTuplesDownloadUrlResult::~GetGatewayTuplesDownloadUrlResult()
{}
void GetGatewayTuplesDownloadUrlResult::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["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetGatewayTuplesDownloadUrlResult::getData()const
{
return data_;
}
bool GetGatewayTuplesDownloadUrlResult::getSuccess()const
{
return success_;
}

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.
*/
#include <alibabacloud/linkwan/model/GetJoinPermissionAuthOrderRequest.h>
using AlibabaCloud::LinkWAN::Model::GetJoinPermissionAuthOrderRequest;
GetJoinPermissionAuthOrderRequest::GetJoinPermissionAuthOrderRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetJoinPermissionAuthOrder")
{
setMethod(HttpRequest::Method::Post);
}
GetJoinPermissionAuthOrderRequest::~GetJoinPermissionAuthOrderRequest()
{}
std::string GetJoinPermissionAuthOrderRequest::getOrderId()const
{
return orderId_;
}
void GetJoinPermissionAuthOrderRequest::setOrderId(const std::string& orderId)
{
orderId_ = orderId;
setParameter("OrderId", orderId);
}
std::string GetJoinPermissionAuthOrderRequest::getApiProduct()const
{
return apiProduct_;
}
void GetJoinPermissionAuthOrderRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetJoinPermissionAuthOrderRequest::getApiRevision()const
{
return apiRevision_;
}
void GetJoinPermissionAuthOrderRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

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/linkwan/model/GetJoinPermissionAuthOrderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetJoinPermissionAuthOrderResult::GetJoinPermissionAuthOrderResult() :
ServiceResult()
{}
GetJoinPermissionAuthOrderResult::GetJoinPermissionAuthOrderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetJoinPermissionAuthOrderResult::~GetJoinPermissionAuthOrderResult()
{}
void GetJoinPermissionAuthOrderResult::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["OrderId"].isNull())
data_.orderId = dataNode["OrderId"].asString();
if(!dataNode["JoinPermissionId"].isNull())
data_.joinPermissionId = dataNode["JoinPermissionId"].asString();
if(!dataNode["OwnerAliyunId"].isNull())
data_.ownerAliyunId = dataNode["OwnerAliyunId"].asString();
if(!dataNode["RenterAliyunId"].isNull())
data_.renterAliyunId = dataNode["RenterAliyunId"].asString();
if(!dataNode["OrderState"].isNull())
data_.orderState = dataNode["OrderState"].asString();
if(!dataNode["ApplyingMillis"].isNull())
data_.applyingMillis = std::stol(dataNode["ApplyingMillis"].asString());
if(!dataNode["AcceptedMillis"].isNull())
data_.acceptedMillis = std::stol(dataNode["AcceptedMillis"].asString());
if(!dataNode["RejectedMillis"].isNull())
data_.rejectedMillis = std::stol(dataNode["RejectedMillis"].asString());
if(!dataNode["CanceledMillis"].isNull())
data_.canceledMillis = std::stol(dataNode["CanceledMillis"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetJoinPermissionAuthOrderResult::Data GetJoinPermissionAuthOrderResult::getData()const
{
return data_;
}
bool GetJoinPermissionAuthOrderResult::getSuccess()const
{
return success_;
}

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.
*/
#include <alibabacloud/linkwan/model/GetLocalConfigSyncTaskRequest.h>
using AlibabaCloud::LinkWAN::Model::GetLocalConfigSyncTaskRequest;
GetLocalConfigSyncTaskRequest::GetLocalConfigSyncTaskRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetLocalConfigSyncTask")
{
setMethod(HttpRequest::Method::Post);
}
GetLocalConfigSyncTaskRequest::~GetLocalConfigSyncTaskRequest()
{}
std::string GetLocalConfigSyncTaskRequest::getApiProduct()const
{
return apiProduct_;
}
void GetLocalConfigSyncTaskRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetLocalConfigSyncTaskRequest::getApiRevision()const
{
return apiRevision_;
}
void GetLocalConfigSyncTaskRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}
long GetLocalConfigSyncTaskRequest::getTaskId()const
{
return taskId_;
}
void GetLocalConfigSyncTaskRequest::setTaskId(long taskId)
{
taskId_ = taskId;
setParameter("TaskId", std::to_string(taskId));
}

View File

@@ -0,0 +1,95 @@
/*
* 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/linkwan/model/GetLocalConfigSyncTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetLocalConfigSyncTaskResult::GetLocalConfigSyncTaskResult() :
ServiceResult()
{}
GetLocalConfigSyncTaskResult::GetLocalConfigSyncTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetLocalConfigSyncTaskResult::~GetLocalConfigSyncTaskResult()
{}
void GetLocalConfigSyncTaskResult::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["Id"].isNull())
data_.id = std::stol(dataNode["Id"].asString());
if(!dataNode["CreateMillis"].isNull())
data_.createMillis = std::stol(dataNode["CreateMillis"].asString());
if(!dataNode["ModifiedMillis"].isNull())
data_.modifiedMillis = std::stol(dataNode["ModifiedMillis"].asString());
if(!dataNode["DevType"].isNull())
data_.devType = dataNode["DevType"].asString();
if(!dataNode["TaskTYpe"].isNull())
data_.taskTYpe = dataNode["TaskTYpe"].asString();
if(!dataNode["Eui"].isNull())
data_.eui = dataNode["Eui"].asString();
if(!dataNode["State"].isNull())
data_.state = dataNode["State"].asString();
if(!dataNode["D2dAddr"].isNull())
data_.d2dAddr = dataNode["D2dAddr"].asString();
if(!dataNode["D2dKey"].isNull())
data_.d2dKey = dataNode["D2dKey"].asString();
if(!dataNode["Freq"].isNull())
data_.freq = std::stoi(dataNode["Freq"].asString());
if(!dataNode["Datr"].isNull())
data_.datr = std::stoi(dataNode["Datr"].asString());
if(!dataNode["ProcessingMillis"].isNull())
data_.processingMillis = std::stol(dataNode["ProcessingMillis"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
GetLocalConfigSyncTaskResult::Data GetLocalConfigSyncTaskResult::getData()const
{
return data_;
}
std::string GetLocalConfigSyncTaskResult::getErrorMessage()const
{
return errorMessage_;
}
std::string GetLocalConfigSyncTaskResult::getCode()const
{
return code_;
}
bool GetLocalConfigSyncTaskResult::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/linkwan/model/GetNodeGroupRequest.h>
using AlibabaCloud::LinkWAN::Model::GetNodeGroupRequest;
GetNodeGroupRequest::GetNodeGroupRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetNodeGroup")
{
setMethod(HttpRequest::Method::Post);
}
GetNodeGroupRequest::~GetNodeGroupRequest()
{}
std::string GetNodeGroupRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void GetNodeGroupRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string GetNodeGroupRequest::getNodeGroupId()const
{
return nodeGroupId_;
}
void GetNodeGroupRequest::setNodeGroupId(const std::string& nodeGroupId)
{
nodeGroupId_ = nodeGroupId;
setParameter("NodeGroupId", nodeGroupId);
}
std::string GetNodeGroupRequest::getApiProduct()const
{
return apiProduct_;
}
void GetNodeGroupRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetNodeGroupRequest::getApiRevision()const
{
return apiRevision_;
}
void GetNodeGroupRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,134 @@
/*
* 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/linkwan/model/GetNodeGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetNodeGroupResult::GetNodeGroupResult() :
ServiceResult()
{}
GetNodeGroupResult::GetNodeGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetNodeGroupResult::~GetNodeGroupResult()
{}
void GetNodeGroupResult::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["NodeGroupId"].isNull())
data_.nodeGroupId = dataNode["NodeGroupId"].asString();
if(!dataNode["NodeGroupName"].isNull())
data_.nodeGroupName = dataNode["NodeGroupName"].asString();
if(!dataNode["NodesCnt"].isNull())
data_.nodesCnt = std::stol(dataNode["NodesCnt"].asString());
if(!dataNode["DataDispatchEnabled"].isNull())
data_.dataDispatchEnabled = dataNode["DataDispatchEnabled"].asString() == "true";
if(!dataNode["JoinPermissionId"].isNull())
data_.joinPermissionId = dataNode["JoinPermissionId"].asString();
if(!dataNode["JoinPermissionOwnerAliyunId"].isNull())
data_.joinPermissionOwnerAliyunId = dataNode["JoinPermissionOwnerAliyunId"].asString();
if(!dataNode["JoinEui"].isNull())
data_.joinEui = dataNode["JoinEui"].asString();
if(!dataNode["FreqBandPlanGroupId"].isNull())
data_.freqBandPlanGroupId = std::stol(dataNode["FreqBandPlanGroupId"].asString());
if(!dataNode["ClassMode"].isNull())
data_.classMode = dataNode["ClassMode"].asString();
if(!dataNode["JoinPermissionType"].isNull())
data_.joinPermissionType = dataNode["JoinPermissionType"].asString();
if(!dataNode["JoinPermissionEnabled"].isNull())
data_.joinPermissionEnabled = dataNode["JoinPermissionEnabled"].asString() == "true";
if(!dataNode["RxDailySum"].isNull())
data_.rxDailySum = dataNode["RxDailySum"].asString();
if(!dataNode["RxMonthSum"].isNull())
data_.rxMonthSum = std::stol(dataNode["RxMonthSum"].asString());
if(!dataNode["TxDailySum"].isNull())
data_.txDailySum = std::stol(dataNode["TxDailySum"].asString());
if(!dataNode["TxMonthSum"].isNull())
data_.txMonthSum = std::stol(dataNode["TxMonthSum"].asString());
if(!dataNode["CreateMillis"].isNull())
data_.createMillis = std::stol(dataNode["CreateMillis"].asString());
if(!dataNode["JoinPermissionName"].isNull())
data_.joinPermissionName = dataNode["JoinPermissionName"].asString();
if(!dataNode["MulticastGroupId"].isNull())
data_.multicastGroupId = dataNode["MulticastGroupId"].asString();
if(!dataNode["MulticastEnabled"].isNull())
data_.multicastEnabled = dataNode["MulticastEnabled"].asString() == "true";
if(!dataNode["MulticastNodeCapacity"].isNull())
data_.multicastNodeCapacity = std::stoi(dataNode["MulticastNodeCapacity"].asString());
if(!dataNode["MulticastNodeCount"].isNull())
data_.multicastNodeCount = std::stoi(dataNode["MulticastNodeCount"].asString());
auto allLocksNode = dataNode["Locks"]["LocksItem"];
for (auto dataNodeLocksLocksItem : allLocksNode)
{
Data::LocksItem locksItemObject;
if(!dataNodeLocksLocksItem["LockId"].isNull())
locksItemObject.lockId = dataNodeLocksLocksItem["LockId"].asString();
if(!dataNodeLocksLocksItem["LockType"].isNull())
locksItemObject.lockType = dataNodeLocksLocksItem["LockType"].asString();
if(!dataNodeLocksLocksItem["Enabled"].isNull())
locksItemObject.enabled = dataNodeLocksLocksItem["Enabled"].asString() == "true";
if(!dataNodeLocksLocksItem["CreateMillis"].isNull())
locksItemObject.createMillis = std::stol(dataNodeLocksLocksItem["CreateMillis"].asString());
data_.locks.push_back(locksItemObject);
}
auto dataDispatchConfigNode = dataNode["DataDispatchConfig"];
if(!dataDispatchConfigNode["Destination"].isNull())
data_.dataDispatchConfig.destination = dataDispatchConfigNode["Destination"].asString();
auto iotProductNode = dataDispatchConfigNode["IotProduct"];
if(!iotProductNode["ProductName"].isNull())
data_.dataDispatchConfig.iotProduct.productName = iotProductNode["ProductName"].asString();
if(!iotProductNode["ProductKey"].isNull())
data_.dataDispatchConfig.iotProduct.productKey = iotProductNode["ProductKey"].asString();
if(!iotProductNode["ProductType"].isNull())
data_.dataDispatchConfig.iotProduct.productType = iotProductNode["ProductType"].asString();
if(!iotProductNode["DebugSwitch"].isNull())
data_.dataDispatchConfig.iotProduct.debugSwitch = iotProductNode["DebugSwitch"].asString() == "true";
auto onsTopicsNode = dataDispatchConfigNode["OnsTopics"];
if(!onsTopicsNode["DownlinkRegionName"].isNull())
data_.dataDispatchConfig.onsTopics.downlinkRegionName = onsTopicsNode["DownlinkRegionName"].asString();
if(!onsTopicsNode["DownlinkTopic"].isNull())
data_.dataDispatchConfig.onsTopics.downlinkTopic = onsTopicsNode["DownlinkTopic"].asString();
if(!onsTopicsNode["UplinkRegionName"].isNull())
data_.dataDispatchConfig.onsTopics.uplinkRegionName = onsTopicsNode["UplinkRegionName"].asString();
if(!onsTopicsNode["UplinkTopic"].isNull())
data_.dataDispatchConfig.onsTopics.uplinkTopic = onsTopicsNode["UplinkTopic"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetNodeGroupResult::Data GetNodeGroupResult::getData()const
{
return data_;
}
bool GetNodeGroupResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,139 @@
/*
* 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/linkwan/model/GetNodeGroupTransferPacketsDownloadUrlRequest.h>
using AlibabaCloud::LinkWAN::Model::GetNodeGroupTransferPacketsDownloadUrlRequest;
GetNodeGroupTransferPacketsDownloadUrlRequest::GetNodeGroupTransferPacketsDownloadUrlRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetNodeGroupTransferPacketsDownloadUrl")
{
setMethod(HttpRequest::Method::Post);
}
GetNodeGroupTransferPacketsDownloadUrlRequest::~GetNodeGroupTransferPacketsDownloadUrlRequest()
{}
long GetNodeGroupTransferPacketsDownloadUrlRequest::getEndMillis()const
{
return endMillis_;
}
void GetNodeGroupTransferPacketsDownloadUrlRequest::setEndMillis(long endMillis)
{
endMillis_ = endMillis;
setParameter("EndMillis", std::to_string(endMillis));
}
std::string GetNodeGroupTransferPacketsDownloadUrlRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void GetNodeGroupTransferPacketsDownloadUrlRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
bool GetNodeGroupTransferPacketsDownloadUrlRequest::getAscending()const
{
return ascending_;
}
void GetNodeGroupTransferPacketsDownloadUrlRequest::setAscending(bool ascending)
{
ascending_ = ascending;
setParameter("Ascending", ascending ? "true" : "false");
}
std::string GetNodeGroupTransferPacketsDownloadUrlRequest::getDevEui()const
{
return devEui_;
}
void GetNodeGroupTransferPacketsDownloadUrlRequest::setDevEui(const std::string& devEui)
{
devEui_ = devEui;
setParameter("DevEui", devEui);
}
std::string GetNodeGroupTransferPacketsDownloadUrlRequest::getNodeGroupId()const
{
return nodeGroupId_;
}
void GetNodeGroupTransferPacketsDownloadUrlRequest::setNodeGroupId(const std::string& nodeGroupId)
{
nodeGroupId_ = nodeGroupId;
setParameter("NodeGroupId", nodeGroupId);
}
std::string GetNodeGroupTransferPacketsDownloadUrlRequest::getApiProduct()const
{
return apiProduct_;
}
void GetNodeGroupTransferPacketsDownloadUrlRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetNodeGroupTransferPacketsDownloadUrlRequest::getApiRevision()const
{
return apiRevision_;
}
void GetNodeGroupTransferPacketsDownloadUrlRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}
std::string GetNodeGroupTransferPacketsDownloadUrlRequest::getCategory()const
{
return category_;
}
void GetNodeGroupTransferPacketsDownloadUrlRequest::setCategory(const std::string& category)
{
category_ = category;
setParameter("Category", category);
}
long GetNodeGroupTransferPacketsDownloadUrlRequest::getBeginMillis()const
{
return beginMillis_;
}
void GetNodeGroupTransferPacketsDownloadUrlRequest::setBeginMillis(long beginMillis)
{
beginMillis_ = beginMillis;
setParameter("BeginMillis", std::to_string(beginMillis));
}
std::string GetNodeGroupTransferPacketsDownloadUrlRequest::getSortingField()const
{
return sortingField_;
}
void GetNodeGroupTransferPacketsDownloadUrlRequest::setSortingField(const std::string& sortingField)
{
sortingField_ = sortingField;
setParameter("SortingField", sortingField);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/GetNodeGroupTransferPacketsDownloadUrlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetNodeGroupTransferPacketsDownloadUrlResult::GetNodeGroupTransferPacketsDownloadUrlResult() :
ServiceResult()
{}
GetNodeGroupTransferPacketsDownloadUrlResult::GetNodeGroupTransferPacketsDownloadUrlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetNodeGroupTransferPacketsDownloadUrlResult::~GetNodeGroupTransferPacketsDownloadUrlResult()
{}
void GetNodeGroupTransferPacketsDownloadUrlResult::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["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetNodeGroupTransferPacketsDownloadUrlResult::getData()const
{
return data_;
}
bool GetNodeGroupTransferPacketsDownloadUrlResult::getSuccess()const
{
return success_;
}

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.
*/
#include <alibabacloud/linkwan/model/GetNodeLocalConfigRequest.h>
using AlibabaCloud::LinkWAN::Model::GetNodeLocalConfigRequest;
GetNodeLocalConfigRequest::GetNodeLocalConfigRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetNodeLocalConfig")
{
setMethod(HttpRequest::Method::Post);
}
GetNodeLocalConfigRequest::~GetNodeLocalConfigRequest()
{}
std::string GetNodeLocalConfigRequest::getDevEui()const
{
return devEui_;
}
void GetNodeLocalConfigRequest::setDevEui(const std::string& devEui)
{
devEui_ = devEui;
setParameter("DevEui", devEui);
}
std::string GetNodeLocalConfigRequest::getApiProduct()const
{
return apiProduct_;
}
void GetNodeLocalConfigRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetNodeLocalConfigRequest::getApiRevision()const
{
return apiRevision_;
}
void GetNodeLocalConfigRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

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/linkwan/model/GetNodeLocalConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetNodeLocalConfigResult::GetNodeLocalConfigResult() :
ServiceResult()
{}
GetNodeLocalConfigResult::GetNodeLocalConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetNodeLocalConfigResult::~GetNodeLocalConfigResult()
{}
void GetNodeLocalConfigResult::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["DevType"].isNull())
data_.devType = dataNode["DevType"].asString();
if(!dataNode["Eui"].isNull())
data_.eui = dataNode["Eui"].asString();
if(!dataNode["D2dAddr"].isNull())
data_.d2dAddr = dataNode["D2dAddr"].asString();
if(!dataNode["D2dKey"].isNull())
data_.d2dKey = dataNode["D2dKey"].asString();
if(!dataNode["Freq"].isNull())
data_.freq = std::stoi(dataNode["Freq"].asString());
if(!dataNode["Datr"].isNull())
data_.datr = std::stoi(dataNode["Datr"].asString());
if(!dataNode["TaskId"].isNull())
data_.taskId = std::stol(dataNode["TaskId"].asString());
if(!dataNode["CreateMillis"].isNull())
data_.createMillis = std::stol(dataNode["CreateMillis"].asString());
if(!dataNode["ModifiedMillis"].isNull())
data_.modifiedMillis = std::stol(dataNode["ModifiedMillis"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
GetNodeLocalConfigResult::Data GetNodeLocalConfigResult::getData()const
{
return data_;
}
std::string GetNodeLocalConfigResult::getErrorMessage()const
{
return errorMessage_;
}
std::string GetNodeLocalConfigResult::getCode()const
{
return code_;
}
bool GetNodeLocalConfigResult::getSuccess()const
{
return success_;
}

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.
*/
#include <alibabacloud/linkwan/model/GetNodeRequest.h>
using AlibabaCloud::LinkWAN::Model::GetNodeRequest;
GetNodeRequest::GetNodeRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetNode")
{
setMethod(HttpRequest::Method::Post);
}
GetNodeRequest::~GetNodeRequest()
{}
std::string GetNodeRequest::getDevEui()const
{
return devEui_;
}
void GetNodeRequest::setDevEui(const std::string& devEui)
{
devEui_ = devEui;
setParameter("DevEui", devEui);
}
std::string GetNodeRequest::getApiProduct()const
{
return apiProduct_;
}
void GetNodeRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetNodeRequest::getApiRevision()const
{
return apiRevision_;
}
void GetNodeRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/linkwan/model/GetNodeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetNodeResult::GetNodeResult() :
ServiceResult()
{}
GetNodeResult::GetNodeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetNodeResult::~GetNodeResult()
{}
void GetNodeResult::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["DevEui"].isNull())
data_.devEui = dataNode["DevEui"].asString();
if(!dataNode["DevAddr"].isNull())
data_.devAddr = dataNode["DevAddr"].asString();
if(!dataNode["ClassMode"].isNull())
data_.classMode = dataNode["ClassMode"].asString();
if(!dataNode["LastJoinMillis"].isNull())
data_.lastJoinMillis = std::stol(dataNode["LastJoinMillis"].asString());
if(!dataNode["BoundMillis"].isNull())
data_.boundMillis = std::stol(dataNode["BoundMillis"].asString());
if(!dataNode["AuthTypes"].isNull())
data_.authTypes = dataNode["AuthTypes"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetNodeResult::Data GetNodeResult::getData()const
{
return data_;
}
bool GetNodeResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,95 @@
/*
* 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/linkwan/model/GetNodeTransferPacketRequest.h>
using AlibabaCloud::LinkWAN::Model::GetNodeTransferPacketRequest;
GetNodeTransferPacketRequest::GetNodeTransferPacketRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetNodeTransferPacket")
{
setMethod(HttpRequest::Method::Post);
}
GetNodeTransferPacketRequest::~GetNodeTransferPacketRequest()
{}
std::string GetNodeTransferPacketRequest::getBase64EncodedMacPayload()const
{
return base64EncodedMacPayload_;
}
void GetNodeTransferPacketRequest::setBase64EncodedMacPayload(const std::string& base64EncodedMacPayload)
{
base64EncodedMacPayload_ = base64EncodedMacPayload;
setParameter("Base64EncodedMacPayload", base64EncodedMacPayload);
}
std::string GetNodeTransferPacketRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void GetNodeTransferPacketRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
long GetNodeTransferPacketRequest::getLogMillis()const
{
return logMillis_;
}
void GetNodeTransferPacketRequest::setLogMillis(long logMillis)
{
logMillis_ = logMillis;
setParameter("LogMillis", std::to_string(logMillis));
}
std::string GetNodeTransferPacketRequest::getDevEui()const
{
return devEui_;
}
void GetNodeTransferPacketRequest::setDevEui(const std::string& devEui)
{
devEui_ = devEui;
setParameter("DevEui", devEui);
}
std::string GetNodeTransferPacketRequest::getApiProduct()const
{
return apiProduct_;
}
void GetNodeTransferPacketRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetNodeTransferPacketRequest::getApiRevision()const
{
return apiRevision_;
}
void GetNodeTransferPacketRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,96 @@
/*
* 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/linkwan/model/GetNodeTransferPacketResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetNodeTransferPacketResult::GetNodeTransferPacketResult() :
ServiceResult()
{}
GetNodeTransferPacketResult::GetNodeTransferPacketResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetNodeTransferPacketResult::~GetNodeTransferPacketResult()
{}
void GetNodeTransferPacketResult::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["LogMillis"].isNull())
data_.logMillis = std::stol(dataNode["LogMillis"].asString());
if(!dataNode["GwEui"].isNull())
data_.gwEui = dataNode["GwEui"].asString();
if(!dataNode["DevEui"].isNull())
data_.devEui = dataNode["DevEui"].asString();
if(!dataNode["DevAddr"].isNull())
data_.devAddr = dataNode["DevAddr"].asString();
if(!dataNode["Freq"].isNull())
data_.freq = std::stof(dataNode["Freq"].asString());
if(!dataNode["Datr"].isNull())
data_.datr = dataNode["Datr"].asString();
if(!dataNode["ClassMode"].isNull())
data_.classMode = dataNode["ClassMode"].asString();
if(!dataNode["Rssi"].isNull())
data_.rssi = std::stoi(dataNode["Rssi"].asString());
if(!dataNode["Lsnr"].isNull())
data_.lsnr = std::stof(dataNode["Lsnr"].asString());
if(!dataNode["FPort"].isNull())
data_.fPort = std::stoi(dataNode["FPort"].asString());
if(!dataNode["FreqBandPlanGroupId"].isNull())
data_.freqBandPlanGroupId = std::stol(dataNode["FreqBandPlanGroupId"].asString());
if(!dataNode["HasMacCommand"].isNull())
data_.hasMacCommand = dataNode["HasMacCommand"].asString() == "true";
if(!dataNode["HasData"].isNull())
data_.hasData = dataNode["HasData"].asString() == "true";
if(!dataNode["Base64EncodedMacPayload"].isNull())
data_.base64EncodedMacPayload = dataNode["Base64EncodedMacPayload"].asString();
if(!dataNode["MacPayloadSize"].isNull())
data_.macPayloadSize = std::stoi(dataNode["MacPayloadSize"].asString());
if(!dataNode["ProcessEvent"].isNull())
data_.processEvent = dataNode["ProcessEvent"].asString();
if(!dataNode["MessageType"].isNull())
data_.messageType = dataNode["MessageType"].asString();
if(!dataNode["GwOwnerAliyunId"].isNull())
data_.gwOwnerAliyunId = dataNode["GwOwnerAliyunId"].asString();
auto allMacCommandCIDs = dataNode["MacCommandCIDs"]["CID"];
for (auto value : allMacCommandCIDs)
data_.macCommandCIDs.push_back(value.asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetNodeTransferPacketResult::Data GetNodeTransferPacketResult::getData()const
{
return data_;
}
bool GetNodeTransferPacketResult::getSuccess()const
{
return success_;
}

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/linkwan/model/GetNodeTransferPacketsDownloadUrlRequest.h>
using AlibabaCloud::LinkWAN::Model::GetNodeTransferPacketsDownloadUrlRequest;
GetNodeTransferPacketsDownloadUrlRequest::GetNodeTransferPacketsDownloadUrlRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetNodeTransferPacketsDownloadUrl")
{
setMethod(HttpRequest::Method::Post);
}
GetNodeTransferPacketsDownloadUrlRequest::~GetNodeTransferPacketsDownloadUrlRequest()
{}
long GetNodeTransferPacketsDownloadUrlRequest::getEndMillis()const
{
return endMillis_;
}
void GetNodeTransferPacketsDownloadUrlRequest::setEndMillis(long endMillis)
{
endMillis_ = endMillis;
setParameter("EndMillis", std::to_string(endMillis));
}
std::string GetNodeTransferPacketsDownloadUrlRequest::getGwEui()const
{
return gwEui_;
}
void GetNodeTransferPacketsDownloadUrlRequest::setGwEui(const std::string& gwEui)
{
gwEui_ = gwEui;
setParameter("GwEui", gwEui);
}
bool GetNodeTransferPacketsDownloadUrlRequest::getAscending()const
{
return ascending_;
}
void GetNodeTransferPacketsDownloadUrlRequest::setAscending(bool ascending)
{
ascending_ = ascending;
setParameter("Ascending", ascending ? "true" : "false");
}
std::string GetNodeTransferPacketsDownloadUrlRequest::getDevEui()const
{
return devEui_;
}
void GetNodeTransferPacketsDownloadUrlRequest::setDevEui(const std::string& devEui)
{
devEui_ = devEui;
setParameter("DevEui", devEui);
}
std::string GetNodeTransferPacketsDownloadUrlRequest::getApiProduct()const
{
return apiProduct_;
}
void GetNodeTransferPacketsDownloadUrlRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetNodeTransferPacketsDownloadUrlRequest::getApiRevision()const
{
return apiRevision_;
}
void GetNodeTransferPacketsDownloadUrlRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}
std::string GetNodeTransferPacketsDownloadUrlRequest::getCategory()const
{
return category_;
}
void GetNodeTransferPacketsDownloadUrlRequest::setCategory(const std::string& category)
{
category_ = category;
setParameter("Category", category);
}
long GetNodeTransferPacketsDownloadUrlRequest::getBeginMillis()const
{
return beginMillis_;
}
void GetNodeTransferPacketsDownloadUrlRequest::setBeginMillis(long beginMillis)
{
beginMillis_ = beginMillis;
setParameter("BeginMillis", std::to_string(beginMillis));
}
std::string GetNodeTransferPacketsDownloadUrlRequest::getSortingField()const
{
return sortingField_;
}
void GetNodeTransferPacketsDownloadUrlRequest::setSortingField(const std::string& sortingField)
{
sortingField_ = sortingField;
setParameter("SortingField", sortingField);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/GetNodeTransferPacketsDownloadUrlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetNodeTransferPacketsDownloadUrlResult::GetNodeTransferPacketsDownloadUrlResult() :
ServiceResult()
{}
GetNodeTransferPacketsDownloadUrlResult::GetNodeTransferPacketsDownloadUrlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetNodeTransferPacketsDownloadUrlResult::~GetNodeTransferPacketsDownloadUrlResult()
{}
void GetNodeTransferPacketsDownloadUrlResult::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["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetNodeTransferPacketsDownloadUrlResult::getData()const
{
return data_;
}
bool GetNodeTransferPacketsDownloadUrlResult::getSuccess()const
{
return success_;
}

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.
*/
#include <alibabacloud/linkwan/model/GetNodeTupleOrderRequest.h>
using AlibabaCloud::LinkWAN::Model::GetNodeTupleOrderRequest;
GetNodeTupleOrderRequest::GetNodeTupleOrderRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetNodeTupleOrder")
{
setMethod(HttpRequest::Method::Post);
}
GetNodeTupleOrderRequest::~GetNodeTupleOrderRequest()
{}
std::string GetNodeTupleOrderRequest::getOrderId()const
{
return orderId_;
}
void GetNodeTupleOrderRequest::setOrderId(const std::string& orderId)
{
orderId_ = orderId;
setParameter("OrderId", orderId);
}
std::string GetNodeTupleOrderRequest::getApiProduct()const
{
return apiProduct_;
}
void GetNodeTupleOrderRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetNodeTupleOrderRequest::getApiRevision()const
{
return apiRevision_;
}
void GetNodeTupleOrderRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/linkwan/model/GetNodeTupleOrderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetNodeTupleOrderResult::GetNodeTupleOrderResult() :
ServiceResult()
{}
GetNodeTupleOrderResult::GetNodeTupleOrderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetNodeTupleOrderResult::~GetNodeTupleOrderResult()
{}
void GetNodeTupleOrderResult::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["OrderId"].isNull())
data_.orderId = dataNode["OrderId"].asString();
if(!dataNode["IsKpm"].isNull())
data_.isKpm = dataNode["IsKpm"].asString() == "true";
if(!dataNode["OrderState"].isNull())
data_.orderState = dataNode["OrderState"].asString();
if(!dataNode["RequiredCount"].isNull())
data_.requiredCount = std::stol(dataNode["RequiredCount"].asString());
if(!dataNode["CreatedMillis"].isNull())
data_.createdMillis = std::stol(dataNode["CreatedMillis"].asString());
if(!dataNode["AcceptedMillis"].isNull())
data_.acceptedMillis = std::stol(dataNode["AcceptedMillis"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetNodeTupleOrderResult::Data GetNodeTupleOrderResult::getData()const
{
return data_;
}
bool GetNodeTupleOrderResult::getSuccess()const
{
return success_;
}

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.
*/
#include <alibabacloud/linkwan/model/GetNodeTuplesDownloadUrlRequest.h>
using AlibabaCloud::LinkWAN::Model::GetNodeTuplesDownloadUrlRequest;
GetNodeTuplesDownloadUrlRequest::GetNodeTuplesDownloadUrlRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetNodeTuplesDownloadUrl")
{
setMethod(HttpRequest::Method::Post);
}
GetNodeTuplesDownloadUrlRequest::~GetNodeTuplesDownloadUrlRequest()
{}
std::string GetNodeTuplesDownloadUrlRequest::getOrderId()const
{
return orderId_;
}
void GetNodeTuplesDownloadUrlRequest::setOrderId(const std::string& orderId)
{
orderId_ = orderId;
setParameter("OrderId", orderId);
}
std::string GetNodeTuplesDownloadUrlRequest::getApiProduct()const
{
return apiProduct_;
}
void GetNodeTuplesDownloadUrlRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetNodeTuplesDownloadUrlRequest::getApiRevision()const
{
return apiRevision_;
}
void GetNodeTuplesDownloadUrlRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/linkwan/model/GetNodeTuplesDownloadUrlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetNodeTuplesDownloadUrlResult::GetNodeTuplesDownloadUrlResult() :
ServiceResult()
{}
GetNodeTuplesDownloadUrlResult::GetNodeTuplesDownloadUrlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetNodeTuplesDownloadUrlResult::~GetNodeTuplesDownloadUrlResult()
{}
void GetNodeTuplesDownloadUrlResult::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["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetNodeTuplesDownloadUrlResult::getData()const
{
return data_;
}
bool GetNodeTuplesDownloadUrlResult::getSuccess()const
{
return success_;
}

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.
*/
#include <alibabacloud/linkwan/model/GetNotificationRequest.h>
using AlibabaCloud::LinkWAN::Model::GetNotificationRequest;
GetNotificationRequest::GetNotificationRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetNotification")
{
setMethod(HttpRequest::Method::Post);
}
GetNotificationRequest::~GetNotificationRequest()
{}
std::string GetNotificationRequest::getApiProduct()const
{
return apiProduct_;
}
void GetNotificationRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetNotificationRequest::getApiRevision()const
{
return apiRevision_;
}
void GetNotificationRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}
std::string GetNotificationRequest::getNotificationId()const
{
return notificationId_;
}
void GetNotificationRequest::setNotificationId(const std::string& notificationId)
{
notificationId_ = notificationId;
setParameter("NotificationId", notificationId);
}

View File

@@ -0,0 +1,95 @@
/*
* 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/linkwan/model/GetNotificationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetNotificationResult::GetNotificationResult() :
ServiceResult()
{}
GetNotificationResult::GetNotificationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetNotificationResult::~GetNotificationResult()
{}
void GetNotificationResult::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["NotificationId"].isNull())
data_.notificationId = dataNode["NotificationId"].asString();
if(!dataNode["Category"].isNull())
data_.category = dataNode["Category"].asString();
if(!dataNode["HandleState"].isNull())
data_.handleState = dataNode["HandleState"].asString();
if(!dataNode["NoticeMillis"].isNull())
data_.noticeMillis = std::stol(dataNode["NoticeMillis"].asString());
if(!dataNode["HandledMillis"].isNull())
data_.handledMillis = std::stol(dataNode["HandledMillis"].asString());
auto gatewayOfflineInfoNode = dataNode["GatewayOfflineInfo"];
if(!gatewayOfflineInfoNode["GwEui"].isNull())
data_.gatewayOfflineInfo.gwEui = gatewayOfflineInfoNode["GwEui"].asString();
if(!gatewayOfflineInfoNode["OfflineMillis"].isNull())
data_.gatewayOfflineInfo.offlineMillis = std::stol(gatewayOfflineInfoNode["OfflineMillis"].asString());
auto joinPermissionAuthInfoNode = dataNode["JoinPermissionAuthInfo"];
if(!joinPermissionAuthInfoNode["OrderId"].isNull())
data_.joinPermissionAuthInfo.orderId = joinPermissionAuthInfoNode["OrderId"].asString();
if(!joinPermissionAuthInfoNode["JoinPermissionId"].isNull())
data_.joinPermissionAuthInfo.joinPermissionId = joinPermissionAuthInfoNode["JoinPermissionId"].asString();
if(!joinPermissionAuthInfoNode["OwnerAliyunId"].isNull())
data_.joinPermissionAuthInfo.ownerAliyunId = joinPermissionAuthInfoNode["OwnerAliyunId"].asString();
if(!joinPermissionAuthInfoNode["RenterAliyunId"].isNull())
data_.joinPermissionAuthInfo.renterAliyunId = joinPermissionAuthInfoNode["RenterAliyunId"].asString();
if(!joinPermissionAuthInfoNode["OrderState"].isNull())
data_.joinPermissionAuthInfo.orderState = joinPermissionAuthInfoNode["OrderState"].asString();
if(!joinPermissionAuthInfoNode["ApplyingMillis"].isNull())
data_.joinPermissionAuthInfo.applyingMillis = std::stol(joinPermissionAuthInfoNode["ApplyingMillis"].asString());
if(!joinPermissionAuthInfoNode["AcceptedMillis"].isNull())
data_.joinPermissionAuthInfo.acceptedMillis = std::stol(joinPermissionAuthInfoNode["AcceptedMillis"].asString());
if(!joinPermissionAuthInfoNode["CanceledMillis"].isNull())
data_.joinPermissionAuthInfo.canceledMillis = std::stol(joinPermissionAuthInfoNode["CanceledMillis"].asString());
if(!joinPermissionAuthInfoNode["RejectedMillis"].isNull())
data_.joinPermissionAuthInfo.rejectedMillis = std::stol(joinPermissionAuthInfoNode["RejectedMillis"].asString());
if(!joinPermissionAuthInfoNode["JoinEui"].isNull())
data_.joinPermissionAuthInfo.joinEui = joinPermissionAuthInfoNode["JoinEui"].asString();
if(!joinPermissionAuthInfoNode["JoinPermissionName"].isNull())
data_.joinPermissionAuthInfo.joinPermissionName = joinPermissionAuthInfoNode["JoinPermissionName"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetNotificationResult::Data GetNotificationResult::getData()const
{
return data_;
}
bool GetNotificationResult::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/linkwan/model/GetOwnedJoinPermissionRequest.h>
using AlibabaCloud::LinkWAN::Model::GetOwnedJoinPermissionRequest;
GetOwnedJoinPermissionRequest::GetOwnedJoinPermissionRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetOwnedJoinPermission")
{
setMethod(HttpRequest::Method::Post);
}
GetOwnedJoinPermissionRequest::~GetOwnedJoinPermissionRequest()
{}
std::string GetOwnedJoinPermissionRequest::getJoinPermissionId()const
{
return joinPermissionId_;
}
void GetOwnedJoinPermissionRequest::setJoinPermissionId(const std::string& joinPermissionId)
{
joinPermissionId_ = joinPermissionId;
setParameter("JoinPermissionId", joinPermissionId);
}
std::string GetOwnedJoinPermissionRequest::getIotInstanceId()const
{
return iotInstanceId_;
}
void GetOwnedJoinPermissionRequest::setIotInstanceId(const std::string& iotInstanceId)
{
iotInstanceId_ = iotInstanceId;
setParameter("IotInstanceId", iotInstanceId);
}
std::string GetOwnedJoinPermissionRequest::getApiProduct()const
{
return apiProduct_;
}
void GetOwnedJoinPermissionRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetOwnedJoinPermissionRequest::getApiRevision()const
{
return apiRevision_;
}
void GetOwnedJoinPermissionRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

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/linkwan/model/GetOwnedJoinPermissionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetOwnedJoinPermissionResult::GetOwnedJoinPermissionResult() :
ServiceResult()
{}
GetOwnedJoinPermissionResult::GetOwnedJoinPermissionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetOwnedJoinPermissionResult::~GetOwnedJoinPermissionResult()
{}
void GetOwnedJoinPermissionResult::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["JoinPermissionId"].isNull())
data_.joinPermissionId = dataNode["JoinPermissionId"].asString();
if(!dataNode["RenterAliyunId"].isNull())
data_.renterAliyunId = dataNode["RenterAliyunId"].asString();
if(!dataNode["JoinEui"].isNull())
data_.joinEui = dataNode["JoinEui"].asString();
if(!dataNode["FreqBandPlanGroupId"].isNull())
data_.freqBandPlanGroupId = std::stol(dataNode["FreqBandPlanGroupId"].asString());
if(!dataNode["ClassMode"].isNull())
data_.classMode = dataNode["ClassMode"].asString();
if(!dataNode["Enabled"].isNull())
data_.enabled = dataNode["Enabled"].asString() == "true";
if(!dataNode["NodesCnt"].isNull())
data_.nodesCnt = std::stol(dataNode["NodesCnt"].asString());
if(!dataNode["DataDispatchDestination"].isNull())
data_.dataDispatchDestination = dataNode["DataDispatchDestination"].asString();
if(!dataNode["RxDailySum"].isNull())
data_.rxDailySum = std::stol(dataNode["RxDailySum"].asString());
if(!dataNode["RxMonthSum"].isNull())
data_.rxMonthSum = std::stol(dataNode["RxMonthSum"].asString());
if(!dataNode["TxDailySum"].isNull())
data_.txDailySum = std::stol(dataNode["TxDailySum"].asString());
if(!dataNode["TxMonthSum"].isNull())
data_.txMonthSum = std::stol(dataNode["TxMonthSum"].asString());
if(!dataNode["CreateMillis"].isNull())
data_.createMillis = std::stol(dataNode["CreateMillis"].asString());
if(!dataNode["JoinPermissionName"].isNull())
data_.joinPermissionName = dataNode["JoinPermissionName"].asString();
if(!dataNode["AuthState"].isNull())
data_.authState = dataNode["AuthState"].asString();
if(!dataNode["MulticastEnabled"].isNull())
data_.multicastEnabled = dataNode["MulticastEnabled"].asString() == "true";
if(!dataNode["MulticastNodeCapacity"].isNull())
data_.multicastNodeCapacity = std::stoi(dataNode["MulticastNodeCapacity"].asString());
if(!dataNode["MulticastNodeCount"].isNull())
data_.multicastNodeCount = std::stoi(dataNode["MulticastNodeCount"].asString());
if(!dataNode["RxDelay"].isNull())
data_.rxDelay = std::stol(dataNode["RxDelay"].asString());
if(!dataNode["DataRate"].isNull())
data_.dataRate = std::stol(dataNode["DataRate"].asString());
if(!dataNode["BoundProductName"].isNull())
data_.boundProductName = dataNode["BoundProductName"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetOwnedJoinPermissionResult::Data GetOwnedJoinPermissionResult::getData()const
{
return data_;
}
bool GetOwnedJoinPermissionResult::getSuccess()const
{
return success_;
}

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.
*/
#include <alibabacloud/linkwan/model/GetRentedJoinPermissionRequest.h>
using AlibabaCloud::LinkWAN::Model::GetRentedJoinPermissionRequest;
GetRentedJoinPermissionRequest::GetRentedJoinPermissionRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetRentedJoinPermission")
{
setMethod(HttpRequest::Method::Post);
}
GetRentedJoinPermissionRequest::~GetRentedJoinPermissionRequest()
{}
std::string GetRentedJoinPermissionRequest::getJoinPermissionId()const
{
return joinPermissionId_;
}
void GetRentedJoinPermissionRequest::setJoinPermissionId(const std::string& joinPermissionId)
{
joinPermissionId_ = joinPermissionId;
setParameter("JoinPermissionId", joinPermissionId);
}
std::string GetRentedJoinPermissionRequest::getApiProduct()const
{
return apiProduct_;
}
void GetRentedJoinPermissionRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetRentedJoinPermissionRequest::getApiRevision()const
{
return apiRevision_;
}
void GetRentedJoinPermissionRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,91 @@
/*
* 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/linkwan/model/GetRentedJoinPermissionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetRentedJoinPermissionResult::GetRentedJoinPermissionResult() :
ServiceResult()
{}
GetRentedJoinPermissionResult::GetRentedJoinPermissionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetRentedJoinPermissionResult::~GetRentedJoinPermissionResult()
{}
void GetRentedJoinPermissionResult::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["JoinPermissionId"].isNull())
data_.joinPermissionId = dataNode["JoinPermissionId"].asString();
if(!dataNode["JoinEui"].isNull())
data_.joinEui = dataNode["JoinEui"].asString();
if(!dataNode["FreqBandPlanGroupId"].isNull())
data_.freqBandPlanGroupId = std::stol(dataNode["FreqBandPlanGroupId"].asString());
if(!dataNode["ClassMode"].isNull())
data_.classMode = dataNode["ClassMode"].asString();
if(!dataNode["Type"].isNull())
data_.type = dataNode["Type"].asString();
if(!dataNode["Enabled"].isNull())
data_.enabled = dataNode["Enabled"].asString() == "true";
if(!dataNode["RxDailySum"].isNull())
data_.rxDailySum = std::stol(dataNode["RxDailySum"].asString());
if(!dataNode["RxMonthSum"].isNull())
data_.rxMonthSum = std::stol(dataNode["RxMonthSum"].asString());
if(!dataNode["TxDailySum"].isNull())
data_.txDailySum = std::stol(dataNode["TxDailySum"].asString());
if(!dataNode["TxMonthSum"].isNull())
data_.txMonthSum = std::stol(dataNode["TxMonthSum"].asString());
if(!dataNode["CreateMillis"].isNull())
data_.createMillis = std::stol(dataNode["CreateMillis"].asString());
if(!dataNode["NodesCnt"].isNull())
data_.nodesCnt = std::stol(dataNode["NodesCnt"].asString());
if(!dataNode["JoinPermissionName"].isNull())
data_.joinPermissionName = dataNode["JoinPermissionName"].asString();
if(!dataNode["BoundNodeGroupId"].isNull())
data_.boundNodeGroupId = dataNode["BoundNodeGroupId"].asString();
if(!dataNode["BoundNodeGroupName"].isNull())
data_.boundNodeGroupName = dataNode["BoundNodeGroupName"].asString();
if(!dataNode["RxDelay"].isNull())
data_.rxDelay = std::stol(dataNode["RxDelay"].asString());
if(!dataNode["DataRate"].isNull())
data_.dataRate = std::stol(dataNode["DataRate"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetRentedJoinPermissionResult::Data GetRentedJoinPermissionResult::getData()const
{
return data_;
}
bool GetRentedJoinPermissionResult::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/linkwan/model/GetUserLicenseRequest.h>
using AlibabaCloud::LinkWAN::Model::GetUserLicenseRequest;
GetUserLicenseRequest::GetUserLicenseRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetUserLicense")
{
setMethod(HttpRequest::Method::Post);
}
GetUserLicenseRequest::~GetUserLicenseRequest()
{}
std::string GetUserLicenseRequest::getApiProduct()const
{
return apiProduct_;
}
void GetUserLicenseRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetUserLicenseRequest::getApiRevision()const
{
return apiRevision_;
}
void GetUserLicenseRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,129 @@
/*
* 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/linkwan/model/GetUserLicenseResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetUserLicenseResult::GetUserLicenseResult() :
ServiceResult()
{}
GetUserLicenseResult::GetUserLicenseResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetUserLicenseResult::~GetUserLicenseResult()
{}
void GetUserLicenseResult::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["Oui"].isNull())
data_.oui = dataNode["Oui"].asString();
if(!dataNode["GatewayTupleLimit"].isNull())
data_.gatewayTupleLimit = std::stol(dataNode["GatewayTupleLimit"].asString());
if(!dataNode["GatewayTupleCount"].isNull())
data_.gatewayTupleCount = std::stol(dataNode["GatewayTupleCount"].asString());
if(!dataNode["NodeTupleLimit"].isNull())
data_.nodeTupleLimit = std::stol(dataNode["NodeTupleLimit"].asString());
if(!dataNode["NodeTupleCount"].isNull())
data_.nodeTupleCount = std::stol(dataNode["NodeTupleCount"].asString());
if(!dataNode["GatewayLimit"].isNull())
data_.gatewayLimit = std::stol(dataNode["GatewayLimit"].asString());
if(!dataNode["GatewayCount"].isNull())
data_.gatewayCount = std::stol(dataNode["GatewayCount"].asString());
if(!dataNode["LocalJoinPermissionLimit"].isNull())
data_.localJoinPermissionLimit = std::stol(dataNode["LocalJoinPermissionLimit"].asString());
if(!dataNode["LocalJoinPermissionCount"].isNull())
data_.localJoinPermissionCount = std::stol(dataNode["LocalJoinPermissionCount"].asString());
if(!dataNode["NodeLimit"].isNull())
data_.nodeLimit = std::stol(dataNode["NodeLimit"].asString());
if(!dataNode["NodeCount"].isNull())
data_.nodeCount = std::stol(dataNode["NodeCount"].asString());
if(!dataNode["RoamingJoinPermissionLimit"].isNull())
data_.roamingJoinPermissionLimit = std::stol(dataNode["RoamingJoinPermissionLimit"].asString());
if(!dataNode["RoamingJoinPermissionCount"].isNull())
data_.roamingJoinPermissionCount = std::stol(dataNode["RoamingJoinPermissionCount"].asString());
if(!dataNode["GatewayTupleFreeLimit"].isNull())
data_.gatewayTupleFreeLimit = std::stol(dataNode["GatewayTupleFreeLimit"].asString());
if(!dataNode["NodeTupleFreeLimit"].isNull())
data_.nodeTupleFreeLimit = std::stol(dataNode["NodeTupleFreeLimit"].asString());
if(!dataNode["GatewayFreeLimit"].isNull())
data_.gatewayFreeLimit = std::stol(dataNode["GatewayFreeLimit"].asString());
if(!dataNode["LocalJoinPermissionFreeLimit"].isNull())
data_.localJoinPermissionFreeLimit = std::stol(dataNode["LocalJoinPermissionFreeLimit"].asString());
if(!dataNode["RoamingJoinPermissionFreeLimit"].isNull())
data_.roamingJoinPermissionFreeLimit = std::stol(dataNode["RoamingJoinPermissionFreeLimit"].asString());
if(!dataNode["NodeFreeLimit"].isNull())
data_.nodeFreeLimit = std::stol(dataNode["NodeFreeLimit"].asString());
if(!dataNode["RelayLimit"].isNull())
data_.relayLimit = std::stol(dataNode["RelayLimit"].asString());
if(!dataNode["RelayCount"].isNull())
data_.relayCount = std::stol(dataNode["RelayCount"].asString());
if(!dataNode["GatewayPrePayCount"].isNull())
data_.gatewayPrePayCount = std::stol(dataNode["GatewayPrePayCount"].asString());
if(!dataNode["NodeTupleRelayLimit"].isNull())
data_.nodeTupleRelayLimit = std::stol(dataNode["NodeTupleRelayLimit"].asString());
if(!dataNode["NodeTupleRelayCount"].isNull())
data_.nodeTupleRelayCount = std::stol(dataNode["NodeTupleRelayCount"].asString());
if(!dataNode["NodeTupleStandardLimit"].isNull())
data_.nodeTupleStandardLimit = std::stol(dataNode["NodeTupleStandardLimit"].asString());
if(!dataNode["NodeTupleStandardCount"].isNull())
data_.nodeTupleStandardCount = std::stol(dataNode["NodeTupleStandardCount"].asString());
if(!dataNode["GatewayTupleHybridLimit"].isNull())
data_.gatewayTupleHybridLimit = std::stol(dataNode["GatewayTupleHybridLimit"].asString());
if(!dataNode["GatewayTupleHybridCount"].isNull())
data_.gatewayTupleHybridCount = std::stol(dataNode["GatewayTupleHybridCount"].asString());
if(!dataNode["GatewayTupleSingleChannelLimit"].isNull())
data_.gatewayTupleSingleChannelLimit = std::stol(dataNode["GatewayTupleSingleChannelLimit"].asString());
if(!dataNode["GatewayTupleSingleChannelCount"].isNull())
data_.gatewayTupleSingleChannelCount = std::stol(dataNode["GatewayTupleSingleChannelCount"].asString());
if(!dataNode["GatewayTupleStandardLimit"].isNull())
data_.gatewayTupleStandardLimit = std::stol(dataNode["GatewayTupleStandardLimit"].asString());
if(!dataNode["GatewayTupleStandardCount"].isNull())
data_.gatewayTupleStandardCount = std::stol(dataNode["GatewayTupleStandardCount"].asString());
if(!dataNode["GatewayDingTalkCount"].isNull())
data_.gatewayDingTalkCount = std::stol(dataNode["GatewayDingTalkCount"].asString());
if(!dataNode["GatewayDingTalkLimit"].isNull())
data_.gatewayDingTalkLimit = std::stol(dataNode["GatewayDingTalkLimit"].asString());
if(!dataNode["GatewayProfessionalCount"].isNull())
data_.gatewayProfessionalCount = std::stol(dataNode["GatewayProfessionalCount"].asString());
if(!dataNode["GatewayProfessionalLimit"].isNull())
data_.gatewayProfessionalLimit = std::stol(dataNode["GatewayProfessionalLimit"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetUserLicenseResult::Data GetUserLicenseResult::getData()const
{
return data_;
}
bool GetUserLicenseResult::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/linkwan/model/GetUserNetProfileDescriptionRequest.h>
using AlibabaCloud::LinkWAN::Model::GetUserNetProfileDescriptionRequest;
GetUserNetProfileDescriptionRequest::GetUserNetProfileDescriptionRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "GetUserNetProfileDescription")
{
setMethod(HttpRequest::Method::Post);
}
GetUserNetProfileDescriptionRequest::~GetUserNetProfileDescriptionRequest()
{}
std::string GetUserNetProfileDescriptionRequest::getApiProduct()const
{
return apiProduct_;
}
void GetUserNetProfileDescriptionRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string GetUserNetProfileDescriptionRequest::getApiRevision()const
{
return apiRevision_;
}
void GetUserNetProfileDescriptionRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

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/linkwan/model/GetUserNetProfileDescriptionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
GetUserNetProfileDescriptionResult::GetUserNetProfileDescriptionResult() :
ServiceResult()
{}
GetUserNetProfileDescriptionResult::GetUserNetProfileDescriptionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetUserNetProfileDescriptionResult::~GetUserNetProfileDescriptionResult()
{}
void GetUserNetProfileDescriptionResult::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["Isolated"].isNull())
data_.isolated = dataNode["Isolated"].asString() == "true";
if(!dataNode["IsoUpdatedRemainingSec"].isNull())
data_.isoUpdatedRemainingSec = std::stol(dataNode["IsoUpdatedRemainingSec"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
GetUserNetProfileDescriptionResult::Data GetUserNetProfileDescriptionResult::getData()const
{
return data_;
}
std::string GetUserNetProfileDescriptionResult::getErrorMessage()const
{
return errorMessage_;
}
std::string GetUserNetProfileDescriptionResult::getCode()const
{
return code_;
}
bool GetUserNetProfileDescriptionResult::getSuccess()const
{
return success_;
}

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.
*/
#include <alibabacloud/linkwan/model/ListActivatedFeaturesRequest.h>
using AlibabaCloud::LinkWAN::Model::ListActivatedFeaturesRequest;
ListActivatedFeaturesRequest::ListActivatedFeaturesRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "ListActivatedFeatures")
{
setMethod(HttpRequest::Method::Post);
}
ListActivatedFeaturesRequest::~ListActivatedFeaturesRequest()
{}
std::string ListActivatedFeaturesRequest::getEnvironment()const
{
return environment_;
}
void ListActivatedFeaturesRequest::setEnvironment(const std::string& environment)
{
environment_ = environment;
setParameter("Environment", environment);
}
std::string ListActivatedFeaturesRequest::getApiProduct()const
{
return apiProduct_;
}
void ListActivatedFeaturesRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string ListActivatedFeaturesRequest::getApiRevision()const
{
return apiRevision_;
}
void ListActivatedFeaturesRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,59 @@
/*
* 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/linkwan/model/ListActivatedFeaturesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
ListActivatedFeaturesResult::ListActivatedFeaturesResult() :
ServiceResult()
{}
ListActivatedFeaturesResult::ListActivatedFeaturesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListActivatedFeaturesResult::~ListActivatedFeaturesResult()
{}
void ListActivatedFeaturesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["Feature"];
for (const auto &item : allData)
data_.push_back(item.asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<std::string> ListActivatedFeaturesResult::getData()const
{
return data_;
}
bool ListActivatedFeaturesResult::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/linkwan/model/ListActiveGatewaysRequest.h>
using AlibabaCloud::LinkWAN::Model::ListActiveGatewaysRequest;
ListActiveGatewaysRequest::ListActiveGatewaysRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "ListActiveGateways")
{
setMethod(HttpRequest::Method::Post);
}
ListActiveGatewaysRequest::~ListActiveGatewaysRequest()
{}
std::string ListActiveGatewaysRequest::getApiProduct()const
{
return apiProduct_;
}
void ListActiveGatewaysRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string ListActiveGatewaysRequest::getApiRevision()const
{
return apiRevision_;
}
void ListActiveGatewaysRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

View File

@@ -0,0 +1,90 @@
/*
* 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/linkwan/model/ListActiveGatewaysResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
ListActiveGatewaysResult::ListActiveGatewaysResult() :
ServiceResult()
{}
ListActiveGatewaysResult::ListActiveGatewaysResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListActiveGatewaysResult::~ListActiveGatewaysResult()
{}
void ListActiveGatewaysResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["Gateway"];
for (auto valueDataGateway : allDataNode)
{
Gateway dataObject;
if(!valueDataGateway["GwEui"].isNull())
dataObject.gwEui = valueDataGateway["GwEui"].asString();
if(!valueDataGateway["Name"].isNull())
dataObject.name = valueDataGateway["Name"].asString();
if(!valueDataGateway["Description"].isNull())
dataObject.description = valueDataGateway["Description"].asString();
if(!valueDataGateway["City"].isNull())
dataObject.city = valueDataGateway["City"].asString();
if(!valueDataGateway["District"].isNull())
dataObject.district = valueDataGateway["District"].asString();
if(!valueDataGateway["Address"].isNull())
dataObject.address = valueDataGateway["Address"].asString();
if(!valueDataGateway["AddressCode"].isNull())
dataObject.addressCode = std::stol(valueDataGateway["AddressCode"].asString());
if(!valueDataGateway["GisCoordinateSystem"].isNull())
dataObject.gisCoordinateSystem = valueDataGateway["GisCoordinateSystem"].asString();
if(!valueDataGateway["Longitude"].isNull())
dataObject.longitude = std::stof(valueDataGateway["Longitude"].asString());
if(!valueDataGateway["Latitude"].isNull())
dataObject.latitude = std::stof(valueDataGateway["Latitude"].asString());
if(!valueDataGateway["FreqBandPlanGroupId"].isNull())
dataObject.freqBandPlanGroupId = std::stol(valueDataGateway["FreqBandPlanGroupId"].asString());
if(!valueDataGateway["CommunicationMode"].isNull())
dataObject.communicationMode = valueDataGateway["CommunicationMode"].asString();
if(!valueDataGateway["OnlineState"].isNull())
dataObject.onlineState = valueDataGateway["OnlineState"].asString();
if(!valueDataGateway["ChargeStatus"].isNull())
dataObject.chargeStatus = valueDataGateway["ChargeStatus"].asString();
data_.push_back(dataObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<ListActiveGatewaysResult::Gateway> ListActiveGatewaysResult::getData()const
{
return data_;
}
bool ListActiveGatewaysResult::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/linkwan/model/ListFreqBandPlanGroupsRequest.h>
using AlibabaCloud::LinkWAN::Model::ListFreqBandPlanGroupsRequest;
ListFreqBandPlanGroupsRequest::ListFreqBandPlanGroupsRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "ListFreqBandPlanGroups")
{
setMethod(HttpRequest::Method::Post);
}
ListFreqBandPlanGroupsRequest::~ListFreqBandPlanGroupsRequest()
{}
std::string ListFreqBandPlanGroupsRequest::getApiProduct()const
{
return apiProduct_;
}
void ListFreqBandPlanGroupsRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string ListFreqBandPlanGroupsRequest::getApiRevision()const
{
return apiRevision_;
}
void ListFreqBandPlanGroupsRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

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/linkwan/model/ListFreqBandPlanGroupsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::LinkWAN;
using namespace AlibabaCloud::LinkWAN::Model;
ListFreqBandPlanGroupsResult::ListFreqBandPlanGroupsResult() :
ServiceResult()
{}
ListFreqBandPlanGroupsResult::ListFreqBandPlanGroupsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListFreqBandPlanGroupsResult::~ListFreqBandPlanGroupsResult()
{}
void ListFreqBandPlanGroupsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["Group"];
for (auto valueDataGroup : allDataNode)
{
Group dataObject;
if(!valueDataGroup["GroupId"].isNull())
dataObject.groupId = std::stol(valueDataGroup["GroupId"].asString());
if(!valueDataGroup["FrequencyRegionId"].isNull())
dataObject.frequencyRegionId = valueDataGroup["FrequencyRegionId"].asString();
if(!valueDataGroup["FrequencyType"].isNull())
dataObject.frequencyType = valueDataGroup["FrequencyType"].asString();
if(!valueDataGroup["BeginFrequency"].isNull())
dataObject.beginFrequency = std::stol(valueDataGroup["BeginFrequency"].asString());
if(!valueDataGroup["EndFrequency"].isNull())
dataObject.endFrequency = std::stol(valueDataGroup["EndFrequency"].asString());
data_.push_back(dataObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<ListFreqBandPlanGroupsResult::Group> ListFreqBandPlanGroupsResult::getData()const
{
return data_;
}
bool ListFreqBandPlanGroupsResult::getSuccess()const
{
return success_;
}

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.
*/
#include <alibabacloud/linkwan/model/ListGatewayLocalConfigsRequest.h>
using AlibabaCloud::LinkWAN::Model::ListGatewayLocalConfigsRequest;
ListGatewayLocalConfigsRequest::ListGatewayLocalConfigsRequest() :
RpcServiceRequest("linkwan", "2019-03-01", "ListGatewayLocalConfigs")
{
setMethod(HttpRequest::Method::Post);
}
ListGatewayLocalConfigsRequest::~ListGatewayLocalConfigsRequest()
{}
std::string ListGatewayLocalConfigsRequest::getGwEui()const
{
return gwEui_;
}
void ListGatewayLocalConfigsRequest::setGwEui(const std::string& gwEui)
{
gwEui_ = gwEui;
setParameter("GwEui", gwEui);
}
std::string ListGatewayLocalConfigsRequest::getApiProduct()const
{
return apiProduct_;
}
void ListGatewayLocalConfigsRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string ListGatewayLocalConfigsRequest::getApiRevision()const
{
return apiRevision_;
}
void ListGatewayLocalConfigsRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

Some files were not shown because too many files have changed in this diff Show More