Support live interaction and message.
This commit is contained in:
@@ -771,6 +771,42 @@ LiveClient::AddLiveSnapshotDetectPornConfigOutcomeCallable LiveClient::addLiveSn
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::AddLiveSnapshotNotifyConfigOutcome LiveClient::addLiveSnapshotNotifyConfig(const AddLiveSnapshotNotifyConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddLiveSnapshotNotifyConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddLiveSnapshotNotifyConfigOutcome(AddLiveSnapshotNotifyConfigResult(outcome.result()));
|
||||
else
|
||||
return AddLiveSnapshotNotifyConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::addLiveSnapshotNotifyConfigAsync(const AddLiveSnapshotNotifyConfigRequest& request, const AddLiveSnapshotNotifyConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addLiveSnapshotNotifyConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::AddLiveSnapshotNotifyConfigOutcomeCallable LiveClient::addLiveSnapshotNotifyConfigCallable(const AddLiveSnapshotNotifyConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddLiveSnapshotNotifyConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addLiveSnapshotNotifyConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::AddLiveStreamTranscodeOutcome LiveClient::addLiveStreamTranscode(const AddLiveStreamTranscodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1275,42 +1311,6 @@ LiveClient::CloseLiveShiftOutcomeCallable LiveClient::closeLiveShiftCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::CloseMessageGroupOutcome LiveClient::closeMessageGroup(const CloseMessageGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CloseMessageGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CloseMessageGroupOutcome(CloseMessageGroupResult(outcome.result()));
|
||||
else
|
||||
return CloseMessageGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::closeMessageGroupAsync(const CloseMessageGroupRequest& request, const CloseMessageGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, closeMessageGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::CloseMessageGroupOutcomeCallable LiveClient::closeMessageGroupCallable(const CloseMessageGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CloseMessageGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->closeMessageGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::CopyCasterOutcome LiveClient::copyCaster(const CopyCasterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1599,6 +1599,42 @@ LiveClient::CreateLiveTranscodeTemplateOutcomeCallable LiveClient::createLiveTra
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::CreateMessageAppOutcome LiveClient::createMessageApp(const CreateMessageAppRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateMessageAppOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateMessageAppOutcome(CreateMessageAppResult(outcome.result()));
|
||||
else
|
||||
return CreateMessageAppOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::createMessageAppAsync(const CreateMessageAppRequest& request, const CreateMessageAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createMessageApp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::CreateMessageAppOutcomeCallable LiveClient::createMessageAppCallable(const CreateMessageAppRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateMessageAppOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createMessageApp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::CreateMessageGroupOutcome LiveClient::createMessageGroup(const CreateMessageGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2571,6 +2607,42 @@ LiveClient::DeleteLiveSnapshotDetectPornConfigOutcomeCallable LiveClient::delete
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DeleteLiveSnapshotNotifyConfigOutcome LiveClient::deleteLiveSnapshotNotifyConfig(const DeleteLiveSnapshotNotifyConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteLiveSnapshotNotifyConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteLiveSnapshotNotifyConfigOutcome(DeleteLiveSnapshotNotifyConfigResult(outcome.result()));
|
||||
else
|
||||
return DeleteLiveSnapshotNotifyConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::deleteLiveSnapshotNotifyConfigAsync(const DeleteLiveSnapshotNotifyConfigRequest& request, const DeleteLiveSnapshotNotifyConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteLiveSnapshotNotifyConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DeleteLiveSnapshotNotifyConfigOutcomeCallable LiveClient::deleteLiveSnapshotNotifyConfigCallable(const DeleteLiveSnapshotNotifyConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteLiveSnapshotNotifyConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteLiveSnapshotNotifyConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DeleteLiveSpecificStagingConfigOutcome LiveClient::deleteLiveSpecificStagingConfig(const DeleteLiveSpecificStagingConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5343,6 +5415,78 @@ LiveClient::DescribeLiveSnapshotDetectPornConfigOutcomeCallable LiveClient::desc
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveSnapshotNotifyConfigOutcome LiveClient::describeLiveSnapshotNotifyConfig(const DescribeLiveSnapshotNotifyConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLiveSnapshotNotifyConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLiveSnapshotNotifyConfigOutcome(DescribeLiveSnapshotNotifyConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeLiveSnapshotNotifyConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::describeLiveSnapshotNotifyConfigAsync(const DescribeLiveSnapshotNotifyConfigRequest& request, const DescribeLiveSnapshotNotifyConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLiveSnapshotNotifyConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveSnapshotNotifyConfigOutcomeCallable LiveClient::describeLiveSnapshotNotifyConfigCallable(const DescribeLiveSnapshotNotifyConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLiveSnapshotNotifyConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLiveSnapshotNotifyConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveStreamAuthCheckingOutcome LiveClient::describeLiveStreamAuthChecking(const DescribeLiveStreamAuthCheckingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLiveStreamAuthCheckingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLiveStreamAuthCheckingOutcome(DescribeLiveStreamAuthCheckingResult(outcome.result()));
|
||||
else
|
||||
return DescribeLiveStreamAuthCheckingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::describeLiveStreamAuthCheckingAsync(const DescribeLiveStreamAuthCheckingRequest& request, const DescribeLiveStreamAuthCheckingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLiveStreamAuthChecking(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveStreamAuthCheckingOutcomeCallable LiveClient::describeLiveStreamAuthCheckingCallable(const DescribeLiveStreamAuthCheckingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLiveStreamAuthCheckingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLiveStreamAuthChecking(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveStreamBitRateDataOutcome LiveClient::describeLiveStreamBitRateData(const DescribeLiveStreamBitRateDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5991,6 +6135,42 @@ LiveClient::DescribeLiveStreamsControlHistoryOutcomeCallable LiveClient::describ
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveStreamsNotifyRecordsOutcome LiveClient::describeLiveStreamsNotifyRecords(const DescribeLiveStreamsNotifyRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLiveStreamsNotifyRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLiveStreamsNotifyRecordsOutcome(DescribeLiveStreamsNotifyRecordsResult(outcome.result()));
|
||||
else
|
||||
return DescribeLiveStreamsNotifyRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::describeLiveStreamsNotifyRecordsAsync(const DescribeLiveStreamsNotifyRecordsRequest& request, const DescribeLiveStreamsNotifyRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLiveStreamsNotifyRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveStreamsNotifyRecordsOutcomeCallable LiveClient::describeLiveStreamsNotifyRecordsCallable(const DescribeLiveStreamsNotifyRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLiveStreamsNotifyRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLiveStreamsNotifyRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveStreamsNotifyUrlConfigOutcome LiveClient::describeLiveStreamsNotifyUrlConfig(const DescribeLiveStreamsNotifyUrlConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -7323,6 +7503,42 @@ LiveClient::GetEditingJobInfoOutcomeCallable LiveClient::getEditingJobInfoCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::GetMessageAppOutcome LiveClient::getMessageApp(const GetMessageAppRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMessageAppOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMessageAppOutcome(GetMessageAppResult(outcome.result()));
|
||||
else
|
||||
return GetMessageAppOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::getMessageAppAsync(const GetMessageAppRequest& request, const GetMessageAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMessageApp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::GetMessageAppOutcomeCallable LiveClient::getMessageAppCallable(const GetMessageAppRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMessageAppOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMessageApp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::GetMessageGroupOutcome LiveClient::getMessageGroup(const GetMessageGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -7395,42 +7611,6 @@ LiveClient::GetMessageTokenOutcomeCallable LiveClient::getMessageTokenCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::GetMessageUserInfoOutcome LiveClient::getMessageUserInfo(const GetMessageUserInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMessageUserInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMessageUserInfoOutcome(GetMessageUserInfoResult(outcome.result()));
|
||||
else
|
||||
return GetMessageUserInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::getMessageUserInfoAsync(const GetMessageUserInfoRequest& request, const GetMessageUserInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMessageUserInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::GetMessageUserInfoOutcomeCallable LiveClient::getMessageUserInfoCallable(const GetMessageUserInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMessageUserInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMessageUserInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::GetMultiRateConfigOutcome LiveClient::getMultiRateConfig(const GetMultiRateConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -7791,6 +7971,42 @@ LiveClient::ListMessageOutcomeCallable LiveClient::listMessageCallable(const Lis
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::ListMessageAppOutcome LiveClient::listMessageApp(const ListMessageAppRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMessageAppOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListMessageAppOutcome(ListMessageAppResult(outcome.result()));
|
||||
else
|
||||
return ListMessageAppOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::listMessageAppAsync(const ListMessageAppRequest& request, const ListMessageAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listMessageApp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::ListMessageAppOutcomeCallable LiveClient::listMessageAppCallable(const ListMessageAppRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListMessageAppOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listMessageApp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::ListMessageGroupOutcome LiveClient::listMessageGroup(const ListMessageGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -7863,6 +8079,42 @@ LiveClient::ListMessageGroupUserOutcomeCallable LiveClient::listMessageGroupUser
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::ListMessageGroupUserByIdOutcome LiveClient::listMessageGroupUserById(const ListMessageGroupUserByIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMessageGroupUserByIdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListMessageGroupUserByIdOutcome(ListMessageGroupUserByIdResult(outcome.result()));
|
||||
else
|
||||
return ListMessageGroupUserByIdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::listMessageGroupUserByIdAsync(const ListMessageGroupUserByIdRequest& request, const ListMessageGroupUserByIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listMessageGroupUserById(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::ListMessageGroupUserByIdOutcomeCallable LiveClient::listMessageGroupUserByIdCallable(const ListMessageGroupUserByIdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListMessageGroupUserByIdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listMessageGroupUserById(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::ListPlaylistOutcome LiveClient::listPlaylist(const ListPlaylistRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8367,6 +8619,42 @@ LiveClient::PublishLiveStagingConfigToProductionOutcomeCallable LiveClient::publ
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::QueryMessageAppOutcome LiveClient::queryMessageApp(const QueryMessageAppRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryMessageAppOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryMessageAppOutcome(QueryMessageAppResult(outcome.result()));
|
||||
else
|
||||
return QueryMessageAppOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::queryMessageAppAsync(const QueryMessageAppRequest& request, const QueryMessageAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryMessageApp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::QueryMessageAppOutcomeCallable LiveClient::queryMessageAppCallable(const QueryMessageAppRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryMessageAppOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryMessageApp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::QuerySnapshotCallbackAuthOutcome LiveClient::querySnapshotCallbackAuth(const QuerySnapshotCallbackAuthRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8511,6 +8799,42 @@ LiveClient::RemoveShowFromShowListOutcomeCallable LiveClient::removeShowFromShow
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::RestartCasterOutcome LiveClient::restartCaster(const RestartCasterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RestartCasterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RestartCasterOutcome(RestartCasterResult(outcome.result()));
|
||||
else
|
||||
return RestartCasterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::restartCasterAsync(const RestartCasterRequest& request, const RestartCasterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, restartCaster(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::RestartCasterOutcomeCallable LiveClient::restartCasterCallable(const RestartCasterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RestartCasterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->restartCaster(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::ResumeLiveStreamOutcome LiveClient::resumeLiveStream(const ResumeLiveStreamRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8583,6 +8907,114 @@ LiveClient::RollbackLiveStagingConfigOutcomeCallable LiveClient::rollbackLiveSta
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::SendLikeOutcome LiveClient::sendLike(const SendLikeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SendLikeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SendLikeOutcome(SendLikeResult(outcome.result()));
|
||||
else
|
||||
return SendLikeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::sendLikeAsync(const SendLikeRequest& request, const SendLikeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, sendLike(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::SendLikeOutcomeCallable LiveClient::sendLikeCallable(const SendLikeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SendLikeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->sendLike(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::SendMessageToGroupOutcome LiveClient::sendMessageToGroup(const SendMessageToGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SendMessageToGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SendMessageToGroupOutcome(SendMessageToGroupResult(outcome.result()));
|
||||
else
|
||||
return SendMessageToGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::sendMessageToGroupAsync(const SendMessageToGroupRequest& request, const SendMessageToGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, sendMessageToGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::SendMessageToGroupOutcomeCallable LiveClient::sendMessageToGroupCallable(const SendMessageToGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SendMessageToGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->sendMessageToGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::SendMessageToGroupUsersOutcome LiveClient::sendMessageToGroupUsers(const SendMessageToGroupUsersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SendMessageToGroupUsersOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SendMessageToGroupUsersOutcome(SendMessageToGroupUsersResult(outcome.result()));
|
||||
else
|
||||
return SendMessageToGroupUsersOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::sendMessageToGroupUsersAsync(const SendMessageToGroupUsersRequest& request, const SendMessageToGroupUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, sendMessageToGroupUsers(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::SendMessageToGroupUsersOutcomeCallable LiveClient::sendMessageToGroupUsersCallable(const SendMessageToGroupUsersRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SendMessageToGroupUsersOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->sendMessageToGroupUsers(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::SendRoomNotificationOutcome LiveClient::sendRoomNotification(const SendRoomNotificationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -9879,6 +10311,42 @@ LiveClient::UpdateLiveSnapshotDetectPornConfigOutcomeCallable LiveClient::update
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::UpdateLiveSnapshotNotifyConfigOutcome LiveClient::updateLiveSnapshotNotifyConfig(const UpdateLiveSnapshotNotifyConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateLiveSnapshotNotifyConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateLiveSnapshotNotifyConfigOutcome(UpdateLiveSnapshotNotifyConfigResult(outcome.result()));
|
||||
else
|
||||
return UpdateLiveSnapshotNotifyConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::updateLiveSnapshotNotifyConfigAsync(const UpdateLiveSnapshotNotifyConfigRequest& request, const UpdateLiveSnapshotNotifyConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateLiveSnapshotNotifyConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::UpdateLiveSnapshotNotifyConfigOutcomeCallable LiveClient::updateLiveSnapshotNotifyConfigCallable(const UpdateLiveSnapshotNotifyConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateLiveSnapshotNotifyConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateLiveSnapshotNotifyConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::UpdateLiveStreamMonitorOutcome LiveClient::updateLiveStreamMonitor(const UpdateLiveStreamMonitorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -10023,6 +10491,78 @@ LiveClient::UpdateLiveTopLevelDomainOutcomeCallable LiveClient::updateLiveTopLev
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::UpdateMessageAppOutcome LiveClient::updateMessageApp(const UpdateMessageAppRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateMessageAppOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateMessageAppOutcome(UpdateMessageAppResult(outcome.result()));
|
||||
else
|
||||
return UpdateMessageAppOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::updateMessageAppAsync(const UpdateMessageAppRequest& request, const UpdateMessageAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateMessageApp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::UpdateMessageAppOutcomeCallable LiveClient::updateMessageAppCallable(const UpdateMessageAppRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateMessageAppOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateMessageApp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::UpdateMessageGroupOutcome LiveClient::updateMessageGroup(const UpdateMessageGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateMessageGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateMessageGroupOutcome(UpdateMessageGroupResult(outcome.result()));
|
||||
else
|
||||
return UpdateMessageGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::updateMessageGroupAsync(const UpdateMessageGroupRequest& request, const UpdateMessageGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateMessageGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::UpdateMessageGroupOutcomeCallable LiveClient::updateMessageGroupCallable(const UpdateMessageGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateMessageGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateMessageGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::UpdateMixStreamOutcome LiveClient::updateMixStream(const UpdateMixStreamRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
72
live/src/model/AddLiveSnapshotNotifyConfigRequest.cc
Normal file
72
live/src/model/AddLiveSnapshotNotifyConfigRequest.cc
Normal 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/live/model/AddLiveSnapshotNotifyConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::AddLiveSnapshotNotifyConfigRequest;
|
||||
|
||||
AddLiveSnapshotNotifyConfigRequest::AddLiveSnapshotNotifyConfigRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "AddLiveSnapshotNotifyConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddLiveSnapshotNotifyConfigRequest::~AddLiveSnapshotNotifyConfigRequest() {}
|
||||
|
||||
std::string AddLiveSnapshotNotifyConfigRequest::getNotifyReqAuth() const {
|
||||
return notifyReqAuth_;
|
||||
}
|
||||
|
||||
void AddLiveSnapshotNotifyConfigRequest::setNotifyReqAuth(const std::string ¬ifyReqAuth) {
|
||||
notifyReqAuth_ = notifyReqAuth;
|
||||
setParameter(std::string("NotifyReqAuth"), notifyReqAuth);
|
||||
}
|
||||
|
||||
std::string AddLiveSnapshotNotifyConfigRequest::getNotifyUrl() const {
|
||||
return notifyUrl_;
|
||||
}
|
||||
|
||||
void AddLiveSnapshotNotifyConfigRequest::setNotifyUrl(const std::string ¬ifyUrl) {
|
||||
notifyUrl_ = notifyUrl;
|
||||
setParameter(std::string("NotifyUrl"), notifyUrl);
|
||||
}
|
||||
|
||||
std::string AddLiveSnapshotNotifyConfigRequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void AddLiveSnapshotNotifyConfigRequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
long AddLiveSnapshotNotifyConfigRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AddLiveSnapshotNotifyConfigRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AddLiveSnapshotNotifyConfigRequest::getNotifyAuthKey() const {
|
||||
return notifyAuthKey_;
|
||||
}
|
||||
|
||||
void AddLiveSnapshotNotifyConfigRequest::setNotifyAuthKey(const std::string ¬ifyAuthKey) {
|
||||
notifyAuthKey_ = notifyAuthKey;
|
||||
setParameter(std::string("NotifyAuthKey"), notifyAuthKey);
|
||||
}
|
||||
|
||||
44
live/src/model/AddLiveSnapshotNotifyConfigResult.cc
Normal file
44
live/src/model/AddLiveSnapshotNotifyConfigResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/live/model/AddLiveSnapshotNotifyConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
AddLiveSnapshotNotifyConfigResult::AddLiveSnapshotNotifyConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddLiveSnapshotNotifyConfigResult::AddLiveSnapshotNotifyConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddLiveSnapshotNotifyConfigResult::~AddLiveSnapshotNotifyConfigResult()
|
||||
{}
|
||||
|
||||
void AddLiveSnapshotNotifyConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ CancelMuteAllGroupUserRequest::CancelMuteAllGroupUserRequest()
|
||||
|
||||
CancelMuteAllGroupUserRequest::~CancelMuteAllGroupUserRequest() {}
|
||||
|
||||
std::string CancelMuteAllGroupUserRequest::getOperatorUserId() const {
|
||||
return operatorUserId_;
|
||||
}
|
||||
|
||||
void CancelMuteAllGroupUserRequest::setOperatorUserId(const std::string &operatorUserId) {
|
||||
operatorUserId_ = operatorUserId;
|
||||
setBodyParameter(std::string("OperatorUserId"), operatorUserId);
|
||||
}
|
||||
|
||||
std::string CancelMuteAllGroupUserRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
@@ -43,12 +52,3 @@ void CancelMuteAllGroupUserRequest::setAppId(const std::string &appId) {
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
std::string CancelMuteAllGroupUserRequest::getOperatorUserId() const {
|
||||
return operatorUserId_;
|
||||
}
|
||||
|
||||
void CancelMuteAllGroupUserRequest::setOperatorUserId(const std::string &operatorUserId) {
|
||||
operatorUserId_ = operatorUserId;
|
||||
setBodyParameter(std::string("OperatorUserId"), operatorUserId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/live/model/CloseMessageGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::CloseMessageGroupRequest;
|
||||
|
||||
CloseMessageGroupRequest::CloseMessageGroupRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "CloseMessageGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CloseMessageGroupRequest::~CloseMessageGroupRequest() {}
|
||||
|
||||
std::string CloseMessageGroupRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void CloseMessageGroupRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string CloseMessageGroupRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void CloseMessageGroupRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
58
live/src/model/CreateMessageAppRequest.cc
Normal file
58
live/src/model/CreateMessageAppRequest.cc
Normal 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/live/model/CreateMessageAppRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::CreateMessageAppRequest;
|
||||
|
||||
CreateMessageAppRequest::CreateMessageAppRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "CreateMessageApp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMessageAppRequest::~CreateMessageAppRequest() {}
|
||||
|
||||
std::map<std::string, std::string> CreateMessageAppRequest::getExtension() const {
|
||||
return extension_;
|
||||
}
|
||||
|
||||
void CreateMessageAppRequest::setExtension(const std::map<std::string, std::string> &extension) {
|
||||
extension_ = extension;
|
||||
for(auto const &iter1 : extension) {
|
||||
setBodyParameter(std::string("Extension") + "." + iter1.first, iter1.second);
|
||||
}
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> CreateMessageAppRequest::getAppConfig() const {
|
||||
return appConfig_;
|
||||
}
|
||||
|
||||
void CreateMessageAppRequest::setAppConfig(const std::map<std::string, std::string> &appConfig) {
|
||||
appConfig_ = appConfig;
|
||||
for(auto const &iter1 : appConfig) {
|
||||
setBodyParameter(std::string("AppConfig") + "." + iter1.first, iter1.second);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateMessageAppRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void CreateMessageAppRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setBodyParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
52
live/src/model/CreateMessageAppResult.cc
Normal file
52
live/src/model/CreateMessageAppResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/live/model/CreateMessageAppResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
CreateMessageAppResult::CreateMessageAppResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMessageAppResult::CreateMessageAppResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMessageAppResult::~CreateMessageAppResult()
|
||||
{}
|
||||
|
||||
void CreateMessageAppResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["AppId"].isNull())
|
||||
result_.appId = resultNode["AppId"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateMessageAppResult::Result CreateMessageAppResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
45
live/src/model/DeleteLiveSnapshotNotifyConfigRequest.cc
Normal file
45
live/src/model/DeleteLiveSnapshotNotifyConfigRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/live/model/DeleteLiveSnapshotNotifyConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::DeleteLiveSnapshotNotifyConfigRequest;
|
||||
|
||||
DeleteLiveSnapshotNotifyConfigRequest::DeleteLiveSnapshotNotifyConfigRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "DeleteLiveSnapshotNotifyConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteLiveSnapshotNotifyConfigRequest::~DeleteLiveSnapshotNotifyConfigRequest() {}
|
||||
|
||||
std::string DeleteLiveSnapshotNotifyConfigRequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DeleteLiveSnapshotNotifyConfigRequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
long DeleteLiveSnapshotNotifyConfigRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteLiveSnapshotNotifyConfigRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
live/src/model/DeleteLiveSnapshotNotifyConfigResult.cc
Normal file
44
live/src/model/DeleteLiveSnapshotNotifyConfigResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/live/model/DeleteLiveSnapshotNotifyConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
DeleteLiveSnapshotNotifyConfigResult::DeleteLiveSnapshotNotifyConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLiveSnapshotNotifyConfigResult::DeleteLiveSnapshotNotifyConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLiveSnapshotNotifyConfigResult::~DeleteLiveSnapshotNotifyConfigResult()
|
||||
{}
|
||||
|
||||
void DeleteLiveSnapshotNotifyConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -43,6 +43,15 @@ void DescribeDomainUsageDataRequest::setType(const std::string &type) {
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string DescribeDomainUsageDataRequest::getDataProtocol() const {
|
||||
return dataProtocol_;
|
||||
}
|
||||
|
||||
void DescribeDomainUsageDataRequest::setDataProtocol(const std::string &dataProtocol) {
|
||||
dataProtocol_ = dataProtocol;
|
||||
setParameter(std::string("DataProtocol"), dataProtocol);
|
||||
}
|
||||
|
||||
std::string DescribeDomainUsageDataRequest::getArea() const {
|
||||
return area_;
|
||||
}
|
||||
|
||||
@@ -51,12 +51,12 @@ void DescribeDomainUsageDataResult::parse(const std::string &payload)
|
||||
}
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
type_ = value["Type"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["Area"].isNull())
|
||||
area_ = value["Area"].asString();
|
||||
if(!value["Field"].isNull())
|
||||
field_ = value["Field"].asString();
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
@@ -69,9 +69,9 @@ std::vector<DescribeDomainUsageDataResult::DataModule> DescribeDomainUsageDataRe
|
||||
return usageDataPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainUsageDataResult::getField()const
|
||||
std::string DescribeDomainUsageDataResult::getType()const
|
||||
{
|
||||
return field_;
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainUsageDataResult::getArea()const
|
||||
|
||||
45
live/src/model/DescribeLiveSnapshotNotifyConfigRequest.cc
Normal file
45
live/src/model/DescribeLiveSnapshotNotifyConfigRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/live/model/DescribeLiveSnapshotNotifyConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::DescribeLiveSnapshotNotifyConfigRequest;
|
||||
|
||||
DescribeLiveSnapshotNotifyConfigRequest::DescribeLiveSnapshotNotifyConfigRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "DescribeLiveSnapshotNotifyConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLiveSnapshotNotifyConfigRequest::~DescribeLiveSnapshotNotifyConfigRequest() {}
|
||||
|
||||
std::string DescribeLiveSnapshotNotifyConfigRequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeLiveSnapshotNotifyConfigRequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
long DescribeLiveSnapshotNotifyConfigRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLiveSnapshotNotifyConfigRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
72
live/src/model/DescribeLiveSnapshotNotifyConfigResult.cc
Normal file
72
live/src/model/DescribeLiveSnapshotNotifyConfigResult.cc
Normal 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/live/model/DescribeLiveSnapshotNotifyConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
DescribeLiveSnapshotNotifyConfigResult::DescribeLiveSnapshotNotifyConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLiveSnapshotNotifyConfigResult::DescribeLiveSnapshotNotifyConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLiveSnapshotNotifyConfigResult::~DescribeLiveSnapshotNotifyConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeLiveSnapshotNotifyConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["NotifyReqAuth"].isNull())
|
||||
notifyReqAuth_ = value["NotifyReqAuth"].asString();
|
||||
if(!value["NotifyAuthKey"].isNull())
|
||||
notifyAuthKey_ = value["NotifyAuthKey"].asString();
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["NotifyUrl"].isNull())
|
||||
notifyUrl_ = value["NotifyUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeLiveSnapshotNotifyConfigResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveSnapshotNotifyConfigResult::getNotifyUrl()const
|
||||
{
|
||||
return notifyUrl_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveSnapshotNotifyConfigResult::getNotifyReqAuth()const
|
||||
{
|
||||
return notifyReqAuth_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveSnapshotNotifyConfigResult::getNotifyAuthKey()const
|
||||
{
|
||||
return notifyAuthKey_;
|
||||
}
|
||||
|
||||
54
live/src/model/DescribeLiveStreamAuthCheckingRequest.cc
Normal file
54
live/src/model/DescribeLiveStreamAuthCheckingRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/live/model/DescribeLiveStreamAuthCheckingRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::DescribeLiveStreamAuthCheckingRequest;
|
||||
|
||||
DescribeLiveStreamAuthCheckingRequest::DescribeLiveStreamAuthCheckingRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "DescribeLiveStreamAuthChecking") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLiveStreamAuthCheckingRequest::~DescribeLiveStreamAuthCheckingRequest() {}
|
||||
|
||||
std::string DescribeLiveStreamAuthCheckingRequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamAuthCheckingRequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
long DescribeLiveStreamAuthCheckingRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamAuthCheckingRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamAuthCheckingRequest::getUrl() const {
|
||||
return url_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamAuthCheckingRequest::setUrl(const std::string &url) {
|
||||
url_ = url;
|
||||
setParameter(std::string("Url"), url);
|
||||
}
|
||||
|
||||
58
live/src/model/DescribeLiveStreamAuthCheckingResult.cc
Normal file
58
live/src/model/DescribeLiveStreamAuthCheckingResult.cc
Normal 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/live/model/DescribeLiveStreamAuthCheckingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
DescribeLiveStreamAuthCheckingResult::DescribeLiveStreamAuthCheckingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLiveStreamAuthCheckingResult::DescribeLiveStreamAuthCheckingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLiveStreamAuthCheckingResult::~DescribeLiveStreamAuthCheckingResult()
|
||||
{}
|
||||
|
||||
void DescribeLiveStreamAuthCheckingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamAuthCheckingResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamAuthCheckingResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
108
live/src/model/DescribeLiveStreamsNotifyRecordsRequest.cc
Normal file
108
live/src/model/DescribeLiveStreamsNotifyRecordsRequest.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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/live/model/DescribeLiveStreamsNotifyRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::DescribeLiveStreamsNotifyRecordsRequest;
|
||||
|
||||
DescribeLiveStreamsNotifyRecordsRequest::DescribeLiveStreamsNotifyRecordsRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "DescribeLiveStreamsNotifyRecords") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLiveStreamsNotifyRecordsRequest::~DescribeLiveStreamsNotifyRecordsRequest() {}
|
||||
|
||||
std::string DescribeLiveStreamsNotifyRecordsRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamsNotifyRecordsRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
int DescribeLiveStreamsNotifyRecordsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamsNotifyRecordsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamsNotifyRecordsRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamsNotifyRecordsRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
int DescribeLiveStreamsNotifyRecordsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamsNotifyRecordsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamsNotifyRecordsRequest::getStreamName() const {
|
||||
return streamName_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamsNotifyRecordsRequest::setStreamName(const std::string &streamName) {
|
||||
streamName_ = streamName;
|
||||
setParameter(std::string("StreamName"), streamName);
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamsNotifyRecordsRequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamsNotifyRecordsRequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamsNotifyRecordsRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamsNotifyRecordsRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
long DescribeLiveStreamsNotifyRecordsRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamsNotifyRecordsRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamsNotifyRecordsRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamsNotifyRecordsRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
101
live/src/model/DescribeLiveStreamsNotifyRecordsResult.cc
Normal file
101
live/src/model/DescribeLiveStreamsNotifyRecordsResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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/live/model/DescribeLiveStreamsNotifyRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
DescribeLiveStreamsNotifyRecordsResult::DescribeLiveStreamsNotifyRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLiveStreamsNotifyRecordsResult::DescribeLiveStreamsNotifyRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLiveStreamsNotifyRecordsResult::~DescribeLiveStreamsNotifyRecordsResult()
|
||||
{}
|
||||
|
||||
void DescribeLiveStreamsNotifyRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNotifyRecordsInfoNode = value["NotifyRecordsInfo"]["LiveStreamNotifyRecordsInfo"];
|
||||
for (auto valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo : allNotifyRecordsInfoNode)
|
||||
{
|
||||
LiveStreamNotifyRecordsInfo notifyRecordsInfoObject;
|
||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["AppName"].isNull())
|
||||
notifyRecordsInfoObject.appName = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["AppName"].asString();
|
||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyType"].isNull())
|
||||
notifyRecordsInfoObject.notifyType = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyType"].asString();
|
||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyContent"].isNull())
|
||||
notifyRecordsInfoObject.notifyContent = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyContent"].asString();
|
||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["Description"].isNull())
|
||||
notifyRecordsInfoObject.description = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["Description"].asString();
|
||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["StreamName"].isNull())
|
||||
notifyRecordsInfoObject.streamName = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["StreamName"].asString();
|
||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyUrl"].isNull())
|
||||
notifyRecordsInfoObject.notifyUrl = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyUrl"].asString();
|
||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyResult"].isNull())
|
||||
notifyRecordsInfoObject.notifyResult = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyResult"].asString();
|
||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyTime"].isNull())
|
||||
notifyRecordsInfoObject.notifyTime = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyTime"].asString();
|
||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["DomainName"].isNull())
|
||||
notifyRecordsInfoObject.domainName = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["DomainName"].asString();
|
||||
notifyRecordsInfo_.push_back(notifyRecordsInfoObject);
|
||||
}
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stoi(value["TotalPage"].asString());
|
||||
if(!value["PageNum"].isNull())
|
||||
pageNum_ = std::stoi(value["PageNum"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stoi(value["TotalNum"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamsNotifyRecordsResult::LiveStreamNotifyRecordsInfo> DescribeLiveStreamsNotifyRecordsResult::getNotifyRecordsInfo()const
|
||||
{
|
||||
return notifyRecordsInfo_;
|
||||
}
|
||||
|
||||
int DescribeLiveStreamsNotifyRecordsResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
int DescribeLiveStreamsNotifyRecordsResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
int DescribeLiveStreamsNotifyRecordsResult::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
int DescribeLiveStreamsNotifyRecordsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
@@ -14,23 +14,23 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/live/model/GetMessageUserInfoRequest.h>
|
||||
#include <alibabacloud/live/model/GetMessageAppRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::GetMessageUserInfoRequest;
|
||||
using AlibabaCloud::Live::Model::GetMessageAppRequest;
|
||||
|
||||
GetMessageUserInfoRequest::GetMessageUserInfoRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "GetMessageUserInfo") {
|
||||
GetMessageAppRequest::GetMessageAppRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "GetMessageApp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetMessageUserInfoRequest::~GetMessageUserInfoRequest() {}
|
||||
GetMessageAppRequest::~GetMessageAppRequest() {}
|
||||
|
||||
std::string GetMessageUserInfoRequest::getCloudUid() const {
|
||||
return cloudUid_;
|
||||
std::string GetMessageAppRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void GetMessageUserInfoRequest::setCloudUid(const std::string &cloudUid) {
|
||||
cloudUid_ = cloudUid;
|
||||
setBodyParameter(std::string("CloudUid"), cloudUid);
|
||||
void GetMessageAppRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
62
live/src/model/GetMessageAppResult.cc
Normal file
62
live/src/model/GetMessageAppResult.cc
Normal 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/live/model/GetMessageAppResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
GetMessageAppResult::GetMessageAppResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMessageAppResult::GetMessageAppResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMessageAppResult::~GetMessageAppResult()
|
||||
{}
|
||||
|
||||
void GetMessageAppResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["AppId"].isNull())
|
||||
result_.appId = resultNode["AppId"].asString();
|
||||
if(!resultNode["AppName"].isNull())
|
||||
result_.appName = resultNode["AppName"].asString();
|
||||
if(!resultNode["CreateTime"].isNull())
|
||||
result_.createTime = std::stol(resultNode["CreateTime"].asString());
|
||||
if(!resultNode["Status"].isNull())
|
||||
result_.status = std::stoi(resultNode["Status"].asString());
|
||||
if(!resultNode["AppConfig"].isNull())
|
||||
result_.appConfig = resultNode["AppConfig"].asString();
|
||||
if(!resultNode["Extension"].isNull())
|
||||
result_.extension = resultNode["Extension"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetMessageAppResult::Result GetMessageAppResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -25,15 +25,6 @@ GetMessageTokenRequest::GetMessageTokenRequest()
|
||||
|
||||
GetMessageTokenRequest::~GetMessageTokenRequest() {}
|
||||
|
||||
std::string GetMessageTokenRequest::getDeviceId() const {
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void GetMessageTokenRequest::setDeviceId(const std::string &deviceId) {
|
||||
deviceId_ = deviceId;
|
||||
setBodyParameter(std::string("DeviceId"), deviceId);
|
||||
}
|
||||
|
||||
std::string GetMessageTokenRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
@@ -52,6 +43,15 @@ void GetMessageTokenRequest::setDeviceType(const std::string &deviceType) {
|
||||
setBodyParameter(std::string("DeviceType"), deviceType);
|
||||
}
|
||||
|
||||
std::string GetMessageTokenRequest::getDeviceId() const {
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void GetMessageTokenRequest::setDeviceId(const std::string &deviceId) {
|
||||
deviceId_ = deviceId;
|
||||
setBodyParameter(std::string("DeviceId"), deviceId);
|
||||
}
|
||||
|
||||
std::string GetMessageTokenRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,24 @@ JoinMessageGroupRequest::JoinMessageGroupRequest()
|
||||
|
||||
JoinMessageGroupRequest::~JoinMessageGroupRequest() {}
|
||||
|
||||
std::string JoinMessageGroupRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void JoinMessageGroupRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setBodyParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
int JoinMessageGroupRequest::getBroadCastType() const {
|
||||
return broadCastType_;
|
||||
}
|
||||
|
||||
void JoinMessageGroupRequest::setBroadCastType(int broadCastType) {
|
||||
broadCastType_ = broadCastType;
|
||||
setBodyParameter(std::string("BroadCastType"), std::to_string(broadCastType));
|
||||
}
|
||||
|
||||
bool JoinMessageGroupRequest::getBroadCastStatistics() const {
|
||||
return broadCastStatistics_;
|
||||
}
|
||||
@@ -43,15 +61,6 @@ void JoinMessageGroupRequest::setGroupId(const std::string &groupId) {
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string JoinMessageGroupRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void JoinMessageGroupRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setBodyParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
std::string JoinMessageGroupRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
@@ -61,12 +70,3 @@ void JoinMessageGroupRequest::setAppId(const std::string &appId) {
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
int JoinMessageGroupRequest::getBroadCastType() const {
|
||||
return broadCastType_;
|
||||
}
|
||||
|
||||
void JoinMessageGroupRequest::setBroadCastType(int broadCastType) {
|
||||
broadCastType_ = broadCastType;
|
||||
setBodyParameter(std::string("BroadCastType"), std::to_string(broadCastType));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,24 @@ LeaveMessageGroupRequest::LeaveMessageGroupRequest()
|
||||
|
||||
LeaveMessageGroupRequest::~LeaveMessageGroupRequest() {}
|
||||
|
||||
std::string LeaveMessageGroupRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void LeaveMessageGroupRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setBodyParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
int LeaveMessageGroupRequest::getBroadCastType() const {
|
||||
return broadCastType_;
|
||||
}
|
||||
|
||||
void LeaveMessageGroupRequest::setBroadCastType(int broadCastType) {
|
||||
broadCastType_ = broadCastType;
|
||||
setBodyParameter(std::string("BroadCastType"), std::to_string(broadCastType));
|
||||
}
|
||||
|
||||
bool LeaveMessageGroupRequest::getBroadCastStatistics() const {
|
||||
return broadCastStatistics_;
|
||||
}
|
||||
@@ -43,15 +61,6 @@ void LeaveMessageGroupRequest::setGroupId(const std::string &groupId) {
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string LeaveMessageGroupRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void LeaveMessageGroupRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setBodyParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
std::string LeaveMessageGroupRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
@@ -61,12 +70,3 @@ void LeaveMessageGroupRequest::setAppId(const std::string &appId) {
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
int LeaveMessageGroupRequest::getBroadCastType() const {
|
||||
return broadCastType_;
|
||||
}
|
||||
|
||||
void LeaveMessageGroupRequest::setBroadCastType(int broadCastType) {
|
||||
broadCastType_ = broadCastType;
|
||||
setBodyParameter(std::string("BroadCastType"), std::to_string(broadCastType));
|
||||
}
|
||||
|
||||
|
||||
54
live/src/model/ListMessageAppRequest.cc
Normal file
54
live/src/model/ListMessageAppRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/live/model/ListMessageAppRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::ListMessageAppRequest;
|
||||
|
||||
ListMessageAppRequest::ListMessageAppRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "ListMessageApp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMessageAppRequest::~ListMessageAppRequest() {}
|
||||
|
||||
int ListMessageAppRequest::getSortType() const {
|
||||
return sortType_;
|
||||
}
|
||||
|
||||
void ListMessageAppRequest::setSortType(int sortType) {
|
||||
sortType_ = sortType;
|
||||
setBodyParameter(std::string("SortType"), std::to_string(sortType));
|
||||
}
|
||||
|
||||
int ListMessageAppRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListMessageAppRequest::setPageNum(int pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setBodyParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
int ListMessageAppRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListMessageAppRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
72
live/src/model/ListMessageAppResult.cc
Normal file
72
live/src/model/ListMessageAppResult.cc
Normal 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/live/model/ListMessageAppResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
ListMessageAppResult::ListMessageAppResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMessageAppResult::ListMessageAppResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMessageAppResult::~ListMessageAppResult()
|
||||
{}
|
||||
|
||||
void ListMessageAppResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Total"].isNull())
|
||||
result_.total = std::stoi(resultNode["Total"].asString());
|
||||
if(!resultNode["HasMore"].isNull())
|
||||
result_.hasMore = resultNode["HasMore"].asString() == "true";
|
||||
auto allAppListNode = resultNode["AppList"]["appListItem"];
|
||||
for (auto resultNodeAppListappListItem : allAppListNode)
|
||||
{
|
||||
Result::AppListItem appListItemObject;
|
||||
if(!resultNodeAppListappListItem["AppId"].isNull())
|
||||
appListItemObject.appId = resultNodeAppListappListItem["AppId"].asString();
|
||||
if(!resultNodeAppListappListItem["AppName"].isNull())
|
||||
appListItemObject.appName = resultNodeAppListappListItem["AppName"].asString();
|
||||
if(!resultNodeAppListappListItem["CreateTime"].isNull())
|
||||
appListItemObject.createTime = std::stol(resultNodeAppListappListItem["CreateTime"].asString());
|
||||
if(!resultNodeAppListappListItem["Status"].isNull())
|
||||
appListItemObject.status = std::stoi(resultNodeAppListappListItem["Status"].asString());
|
||||
if(!resultNodeAppListappListItem["AppConfig"].isNull())
|
||||
appListItemObject.appConfig = resultNodeAppListappListItem["AppConfig"].asString();
|
||||
if(!resultNodeAppListappListItem["Extension"].isNull())
|
||||
appListItemObject.extension = resultNodeAppListappListItem["Extension"].asString();
|
||||
result_.appList.push_back(appListItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ListMessageAppResult::Result ListMessageAppResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
56
live/src/model/ListMessageGroupUserByIdRequest.cc
Normal file
56
live/src/model/ListMessageGroupUserByIdRequest.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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/live/model/ListMessageGroupUserByIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::ListMessageGroupUserByIdRequest;
|
||||
|
||||
ListMessageGroupUserByIdRequest::ListMessageGroupUserByIdRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "ListMessageGroupUserById") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMessageGroupUserByIdRequest::~ListMessageGroupUserByIdRequest() {}
|
||||
|
||||
std::vector<ListMessageGroupUserByIdRequest::std::string> ListMessageGroupUserByIdRequest::getUserIdList() const {
|
||||
return userIdList_;
|
||||
}
|
||||
|
||||
void ListMessageGroupUserByIdRequest::setUserIdList(const std::vector<ListMessageGroupUserByIdRequest::std::string> &userIdList) {
|
||||
userIdList_ = userIdList;
|
||||
for(int dep1 = 0; dep1 != userIdList.size(); dep1++) {
|
||||
setBodyParameter(std::string("UserIdList") + "." + std::to_string(dep1 + 1), userIdList[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListMessageGroupUserByIdRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void ListMessageGroupUserByIdRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string ListMessageGroupUserByIdRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListMessageGroupUserByIdRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
73
live/src/model/ListMessageGroupUserByIdResult.cc
Normal file
73
live/src/model/ListMessageGroupUserByIdResult.cc
Normal 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/live/model/ListMessageGroupUserByIdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
ListMessageGroupUserByIdResult::ListMessageGroupUserByIdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMessageGroupUserByIdResult::ListMessageGroupUserByIdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMessageGroupUserByIdResult::~ListMessageGroupUserByIdResult()
|
||||
{}
|
||||
|
||||
void ListMessageGroupUserByIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Total"].isNull())
|
||||
result_.total = std::stoi(resultNode["Total"].asString());
|
||||
if(!resultNode["HasMore"].isNull())
|
||||
result_.hasMore = resultNode["HasMore"].asString() == "true";
|
||||
auto allUserListNode = resultNode["UserList"]["userListItem"];
|
||||
for (auto resultNodeUserListuserListItem : allUserListNode)
|
||||
{
|
||||
Result::UserListItem userListItemObject;
|
||||
if(!resultNodeUserListuserListItem["UserId"].isNull())
|
||||
userListItemObject.userId = resultNodeUserListuserListItem["UserId"].asString();
|
||||
if(!resultNodeUserListuserListItem["UserNick"].isNull())
|
||||
userListItemObject.userNick = resultNodeUserListuserListItem["UserNick"].asString();
|
||||
if(!resultNodeUserListuserListItem["UserAvatar"].isNull())
|
||||
userListItemObject.userAvatar = resultNodeUserListuserListItem["UserAvatar"].asString();
|
||||
if(!resultNodeUserListuserListItem["UserExtension"].isNull())
|
||||
userListItemObject.userExtension = resultNodeUserListuserListItem["UserExtension"].asString();
|
||||
if(!resultNodeUserListuserListItem["IsMute"].isNull())
|
||||
userListItemObject.isMute = resultNodeUserListuserListItem["IsMute"].asString() == "true";
|
||||
auto allMuteBy = value["MuteBy"]["muteBy"];
|
||||
for (auto value : allMuteBy)
|
||||
userListItemObject.muteBy.push_back(value.asString());
|
||||
result_.userList.push_back(userListItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ListMessageGroupUserByIdResult::Result ListMessageGroupUserByIdResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -34,24 +34,6 @@ void ListMessageGroupUserRequest::setSortType(int sortType) {
|
||||
setBodyParameter(std::string("SortType"), std::to_string(sortType));
|
||||
}
|
||||
|
||||
std::string ListMessageGroupUserRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void ListMessageGroupUserRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
int ListMessageGroupUserRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void ListMessageGroupUserRequest::setType(int type) {
|
||||
type_ = type;
|
||||
setBodyParameter(std::string("Type"), std::to_string(type));
|
||||
}
|
||||
|
||||
int ListMessageGroupUserRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
@@ -61,15 +43,6 @@ void ListMessageGroupUserRequest::setPageNum(int pageNum) {
|
||||
setBodyParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string ListMessageGroupUserRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListMessageGroupUserRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
int ListMessageGroupUserRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
@@ -79,3 +52,21 @@ void ListMessageGroupUserRequest::setPageSize(int pageSize) {
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListMessageGroupUserRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void ListMessageGroupUserRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string ListMessageGroupUserRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListMessageGroupUserRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,15 +34,6 @@ void ListMessageRequest::setSortType(int sortType) {
|
||||
setBodyParameter(std::string("SortType"), std::to_string(sortType));
|
||||
}
|
||||
|
||||
std::string ListMessageRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void ListMessageRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
int ListMessageRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
@@ -70,3 +61,21 @@ void ListMessageRequest::setPageSize(int pageSize) {
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListMessageRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void ListMessageRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string ListMessageRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListMessageRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
72
live/src/model/QueryMessageAppRequest.cc
Normal file
72
live/src/model/QueryMessageAppRequest.cc
Normal 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/live/model/QueryMessageAppRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::QueryMessageAppRequest;
|
||||
|
||||
QueryMessageAppRequest::QueryMessageAppRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "QueryMessageApp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryMessageAppRequest::~QueryMessageAppRequest() {}
|
||||
|
||||
int QueryMessageAppRequest::getSortType() const {
|
||||
return sortType_;
|
||||
}
|
||||
|
||||
void QueryMessageAppRequest::setSortType(int sortType) {
|
||||
sortType_ = sortType;
|
||||
setBodyParameter(std::string("SortType"), std::to_string(sortType));
|
||||
}
|
||||
|
||||
int QueryMessageAppRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void QueryMessageAppRequest::setPageNum(int pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setBodyParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string QueryMessageAppRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void QueryMessageAppRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setBodyParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
int QueryMessageAppRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryMessageAppRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryMessageAppRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void QueryMessageAppRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
77
live/src/model/QueryMessageAppResult.cc
Normal file
77
live/src/model/QueryMessageAppResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/live/model/QueryMessageAppResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
QueryMessageAppResult::QueryMessageAppResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryMessageAppResult::QueryMessageAppResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryMessageAppResult::~QueryMessageAppResult()
|
||||
{}
|
||||
|
||||
void QueryMessageAppResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResultNode = value["Result"]["resultItem"];
|
||||
for (auto valueResultresultItem : allResultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueResultresultItem["TotalCount"].isNull())
|
||||
resultObject.totalCount = std::stoi(valueResultresultItem["TotalCount"].asString());
|
||||
if(!valueResultresultItem["HasMore"].isNull())
|
||||
resultObject.hasMore = valueResultresultItem["HasMore"].asString() == "true";
|
||||
auto allAppListNode = valueResultresultItem["AppList"]["appListItem"];
|
||||
for (auto valueResultresultItemAppListappListItem : allAppListNode)
|
||||
{
|
||||
ResultItem::AppListItem appListObject;
|
||||
if(!valueResultresultItemAppListappListItem["AppId"].isNull())
|
||||
appListObject.appId = valueResultresultItemAppListappListItem["AppId"].asString();
|
||||
if(!valueResultresultItemAppListappListItem["AppName"].isNull())
|
||||
appListObject.appName = valueResultresultItemAppListappListItem["AppName"].asString();
|
||||
if(!valueResultresultItemAppListappListItem["CreateTime"].isNull())
|
||||
appListObject.createTime = std::stol(valueResultresultItemAppListappListItem["CreateTime"].asString());
|
||||
if(!valueResultresultItemAppListappListItem["Status"].isNull())
|
||||
appListObject.status = std::stoi(valueResultresultItemAppListappListItem["Status"].asString());
|
||||
if(!valueResultresultItemAppListappListItem["AppConfig"].isNull())
|
||||
appListObject.appConfig = valueResultresultItemAppListappListItem["AppConfig"].asString();
|
||||
if(!valueResultresultItemAppListappListItem["Extension"].isNull())
|
||||
appListObject.extension = valueResultresultItemAppListappListItem["Extension"].asString();
|
||||
resultObject.appList.push_back(appListObject);
|
||||
}
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<QueryMessageAppResult::ResultItem> QueryMessageAppResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
45
live/src/model/RestartCasterRequest.cc
Normal file
45
live/src/model/RestartCasterRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/live/model/RestartCasterRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::RestartCasterRequest;
|
||||
|
||||
RestartCasterRequest::RestartCasterRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "RestartCaster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RestartCasterRequest::~RestartCasterRequest() {}
|
||||
|
||||
std::string RestartCasterRequest::getCasterId() const {
|
||||
return casterId_;
|
||||
}
|
||||
|
||||
void RestartCasterRequest::setCasterId(const std::string &casterId) {
|
||||
casterId_ = casterId;
|
||||
setParameter(std::string("CasterId"), casterId);
|
||||
}
|
||||
|
||||
long RestartCasterRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void RestartCasterRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
live/src/model/RestartCasterResult.cc
Normal file
44
live/src/model/RestartCasterResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/live/model/RestartCasterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
RestartCasterResult::RestartCasterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RestartCasterResult::RestartCasterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RestartCasterResult::~RestartCasterResult()
|
||||
{}
|
||||
|
||||
void RestartCasterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
72
live/src/model/SendLikeRequest.cc
Normal file
72
live/src/model/SendLikeRequest.cc
Normal 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/live/model/SendLikeRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::SendLikeRequest;
|
||||
|
||||
SendLikeRequest::SendLikeRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "SendLike") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SendLikeRequest::~SendLikeRequest() {}
|
||||
|
||||
std::string SendLikeRequest::getOperatorUserId() const {
|
||||
return operatorUserId_;
|
||||
}
|
||||
|
||||
void SendLikeRequest::setOperatorUserId(const std::string &operatorUserId) {
|
||||
operatorUserId_ = operatorUserId;
|
||||
setBodyParameter(std::string("OperatorUserId"), operatorUserId);
|
||||
}
|
||||
|
||||
int SendLikeRequest::getBroadCastType() const {
|
||||
return broadCastType_;
|
||||
}
|
||||
|
||||
void SendLikeRequest::setBroadCastType(int broadCastType) {
|
||||
broadCastType_ = broadCastType;
|
||||
setBodyParameter(std::string("BroadCastType"), std::to_string(broadCastType));
|
||||
}
|
||||
|
||||
std::string SendLikeRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void SendLikeRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string SendLikeRequest::getCount() const {
|
||||
return count_;
|
||||
}
|
||||
|
||||
void SendLikeRequest::setCount(const std::string &count) {
|
||||
count_ = count;
|
||||
setBodyParameter(std::string("Count"), count);
|
||||
}
|
||||
|
||||
std::string SendLikeRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void SendLikeRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
52
live/src/model/SendLikeResult.cc
Normal file
52
live/src/model/SendLikeResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/live/model/SendLikeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
SendLikeResult::SendLikeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SendLikeResult::SendLikeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SendLikeResult::~SendLikeResult()
|
||||
{}
|
||||
|
||||
void SendLikeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["LikeCount"].isNull())
|
||||
result_.likeCount = std::stoi(resultNode["LikeCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
SendLikeResult::Result SendLikeResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
72
live/src/model/SendMessageToGroupRequest.cc
Normal file
72
live/src/model/SendMessageToGroupRequest.cc
Normal 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/live/model/SendMessageToGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::SendMessageToGroupRequest;
|
||||
|
||||
SendMessageToGroupRequest::SendMessageToGroupRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "SendMessageToGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SendMessageToGroupRequest::~SendMessageToGroupRequest() {}
|
||||
|
||||
std::string SendMessageToGroupRequest::getData() const {
|
||||
return data_;
|
||||
}
|
||||
|
||||
void SendMessageToGroupRequest::setData(const std::string &data) {
|
||||
data_ = data;
|
||||
setBodyParameter(std::string("Data"), data);
|
||||
}
|
||||
|
||||
int SendMessageToGroupRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void SendMessageToGroupRequest::setType(int type) {
|
||||
type_ = type;
|
||||
setBodyParameter(std::string("Type"), std::to_string(type));
|
||||
}
|
||||
|
||||
std::string SendMessageToGroupRequest::getOperatorUserId() const {
|
||||
return operatorUserId_;
|
||||
}
|
||||
|
||||
void SendMessageToGroupRequest::setOperatorUserId(const std::string &operatorUserId) {
|
||||
operatorUserId_ = operatorUserId;
|
||||
setBodyParameter(std::string("OperatorUserId"), operatorUserId);
|
||||
}
|
||||
|
||||
std::string SendMessageToGroupRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void SendMessageToGroupRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string SendMessageToGroupRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void SendMessageToGroupRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
@@ -14,40 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/live/model/GetMessageUserInfoResult.h>
|
||||
#include <alibabacloud/live/model/SendMessageToGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
GetMessageUserInfoResult::GetMessageUserInfoResult() :
|
||||
SendMessageToGroupResult::SendMessageToGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMessageUserInfoResult::GetMessageUserInfoResult(const std::string &payload) :
|
||||
SendMessageToGroupResult::SendMessageToGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMessageUserInfoResult::~GetMessageUserInfoResult()
|
||||
SendMessageToGroupResult::~SendMessageToGroupResult()
|
||||
{}
|
||||
|
||||
void GetMessageUserInfoResult::parse(const std::string &payload)
|
||||
void SendMessageToGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["IsNewIMUser"].isNull())
|
||||
result_.isNewIMUser = resultNode["IsNewIMUser"].asString() == "true";
|
||||
if(!resultNode["HasOrderedIM"].isNull())
|
||||
result_.hasOrderedIM = resultNode["HasOrderedIM"].asString() == "true";
|
||||
if(!resultNode["MessageId"].isNull())
|
||||
result_.messageId = resultNode["MessageId"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetMessageUserInfoResult::Result GetMessageUserInfoResult::getResult()const
|
||||
SendMessageToGroupResult::Result SendMessageToGroupResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
27
live/src/model/SendMessageToGroupUsersRequest.cc
Normal file
27
live/src/model/SendMessageToGroupUsersRequest.cc
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* 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/live/model/SendMessageToGroupUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::SendMessageToGroupUsersRequest;
|
||||
|
||||
SendMessageToGroupUsersRequest::SendMessageToGroupUsersRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "SendMessageToGroupUsers") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SendMessageToGroupUsersRequest::~SendMessageToGroupUsersRequest() {}
|
||||
|
||||
52
live/src/model/SendMessageToGroupUsersResult.cc
Normal file
52
live/src/model/SendMessageToGroupUsersResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/live/model/SendMessageToGroupUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
SendMessageToGroupUsersResult::SendMessageToGroupUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SendMessageToGroupUsersResult::SendMessageToGroupUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SendMessageToGroupUsersResult::~SendMessageToGroupUsersResult()
|
||||
{}
|
||||
|
||||
void SendMessageToGroupUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["MessageId"].isNull())
|
||||
result_.messageId = resultNode["MessageId"].asString();
|
||||
|
||||
}
|
||||
|
||||
SendMessageToGroupUsersResult::Result SendMessageToGroupUsersResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
72
live/src/model/UpdateLiveSnapshotNotifyConfigRequest.cc
Normal file
72
live/src/model/UpdateLiveSnapshotNotifyConfigRequest.cc
Normal 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/live/model/UpdateLiveSnapshotNotifyConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::UpdateLiveSnapshotNotifyConfigRequest;
|
||||
|
||||
UpdateLiveSnapshotNotifyConfigRequest::UpdateLiveSnapshotNotifyConfigRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "UpdateLiveSnapshotNotifyConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateLiveSnapshotNotifyConfigRequest::~UpdateLiveSnapshotNotifyConfigRequest() {}
|
||||
|
||||
std::string UpdateLiveSnapshotNotifyConfigRequest::getNotifyReqAuth() const {
|
||||
return notifyReqAuth_;
|
||||
}
|
||||
|
||||
void UpdateLiveSnapshotNotifyConfigRequest::setNotifyReqAuth(const std::string ¬ifyReqAuth) {
|
||||
notifyReqAuth_ = notifyReqAuth;
|
||||
setParameter(std::string("NotifyReqAuth"), notifyReqAuth);
|
||||
}
|
||||
|
||||
std::string UpdateLiveSnapshotNotifyConfigRequest::getNotifyUrl() const {
|
||||
return notifyUrl_;
|
||||
}
|
||||
|
||||
void UpdateLiveSnapshotNotifyConfigRequest::setNotifyUrl(const std::string ¬ifyUrl) {
|
||||
notifyUrl_ = notifyUrl;
|
||||
setParameter(std::string("NotifyUrl"), notifyUrl);
|
||||
}
|
||||
|
||||
std::string UpdateLiveSnapshotNotifyConfigRequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void UpdateLiveSnapshotNotifyConfigRequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
long UpdateLiveSnapshotNotifyConfigRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UpdateLiveSnapshotNotifyConfigRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UpdateLiveSnapshotNotifyConfigRequest::getNotifyAuthKey() const {
|
||||
return notifyAuthKey_;
|
||||
}
|
||||
|
||||
void UpdateLiveSnapshotNotifyConfigRequest::setNotifyAuthKey(const std::string ¬ifyAuthKey) {
|
||||
notifyAuthKey_ = notifyAuthKey;
|
||||
setParameter(std::string("NotifyAuthKey"), notifyAuthKey);
|
||||
}
|
||||
|
||||
44
live/src/model/UpdateLiveSnapshotNotifyConfigResult.cc
Normal file
44
live/src/model/UpdateLiveSnapshotNotifyConfigResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/live/model/UpdateLiveSnapshotNotifyConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
UpdateLiveSnapshotNotifyConfigResult::UpdateLiveSnapshotNotifyConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateLiveSnapshotNotifyConfigResult::UpdateLiveSnapshotNotifyConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateLiveSnapshotNotifyConfigResult::~UpdateLiveSnapshotNotifyConfigResult()
|
||||
{}
|
||||
|
||||
void UpdateLiveSnapshotNotifyConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
67
live/src/model/UpdateMessageAppRequest.cc
Normal file
67
live/src/model/UpdateMessageAppRequest.cc
Normal 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/live/model/UpdateMessageAppRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::UpdateMessageAppRequest;
|
||||
|
||||
UpdateMessageAppRequest::UpdateMessageAppRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "UpdateMessageApp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateMessageAppRequest::~UpdateMessageAppRequest() {}
|
||||
|
||||
std::map<std::string, std::string> UpdateMessageAppRequest::getExtension() const {
|
||||
return extension_;
|
||||
}
|
||||
|
||||
void UpdateMessageAppRequest::setExtension(const std::map<std::string, std::string> &extension) {
|
||||
extension_ = extension;
|
||||
for(auto const &iter1 : extension) {
|
||||
setBodyParameter(std::string("Extension") + "." + iter1.first, iter1.second);
|
||||
}
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> UpdateMessageAppRequest::getAppConfig() const {
|
||||
return appConfig_;
|
||||
}
|
||||
|
||||
void UpdateMessageAppRequest::setAppConfig(const std::map<std::string, std::string> &appConfig) {
|
||||
appConfig_ = appConfig;
|
||||
for(auto const &iter1 : appConfig) {
|
||||
setBodyParameter(std::string("AppConfig") + "." + iter1.first, iter1.second);
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdateMessageAppRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void UpdateMessageAppRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setBodyParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string UpdateMessageAppRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void UpdateMessageAppRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/live/model/CloseMessageGroupResult.h>
|
||||
#include <alibabacloud/live/model/UpdateMessageAppResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
CloseMessageGroupResult::CloseMessageGroupResult() :
|
||||
UpdateMessageAppResult::UpdateMessageAppResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CloseMessageGroupResult::CloseMessageGroupResult(const std::string &payload) :
|
||||
UpdateMessageAppResult::UpdateMessageAppResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CloseMessageGroupResult::~CloseMessageGroupResult()
|
||||
UpdateMessageAppResult::~UpdateMessageAppResult()
|
||||
{}
|
||||
|
||||
void CloseMessageGroupResult::parse(const std::string &payload)
|
||||
void UpdateMessageAppResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -45,7 +45,7 @@ void CloseMessageGroupResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
CloseMessageGroupResult::Result CloseMessageGroupResult::getResult()const
|
||||
UpdateMessageAppResult::Result UpdateMessageAppResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
56
live/src/model/UpdateMessageGroupRequest.cc
Normal file
56
live/src/model/UpdateMessageGroupRequest.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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/live/model/UpdateMessageGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::UpdateMessageGroupRequest;
|
||||
|
||||
UpdateMessageGroupRequest::UpdateMessageGroupRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "UpdateMessageGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateMessageGroupRequest::~UpdateMessageGroupRequest() {}
|
||||
|
||||
std::map<std::string, std::string> UpdateMessageGroupRequest::getExtension() const {
|
||||
return extension_;
|
||||
}
|
||||
|
||||
void UpdateMessageGroupRequest::setExtension(const std::map<std::string, std::string> &extension) {
|
||||
extension_ = extension;
|
||||
for(auto const &iter1 : extension) {
|
||||
setBodyParameter(std::string("Extension") + "." + iter1.first, iter1.second);
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdateMessageGroupRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void UpdateMessageGroupRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string UpdateMessageGroupRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void UpdateMessageGroupRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
52
live/src/model/UpdateMessageGroupResult.cc
Normal file
52
live/src/model/UpdateMessageGroupResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/live/model/UpdateMessageGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
UpdateMessageGroupResult::UpdateMessageGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateMessageGroupResult::UpdateMessageGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateMessageGroupResult::~UpdateMessageGroupResult()
|
||||
{}
|
||||
|
||||
void UpdateMessageGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Success"].isNull())
|
||||
result_.success = resultNode["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
UpdateMessageGroupResult::Result UpdateMessageGroupResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user