diff --git a/VERSION b/VERSION index e2e420b62..a0a4a6f9e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1402 \ No newline at end of file +1.36.1403 \ No newline at end of file diff --git a/live/CMakeLists.txt b/live/CMakeLists.txt index 33f1c5b44..39da4318e 100644 --- a/live/CMakeLists.txt +++ b/live/CMakeLists.txt @@ -141,6 +141,8 @@ set(live_public_header_model include/alibabacloud/live/model/DeleteLiveAudioAuditConfigResult.h include/alibabacloud/live/model/DeleteLiveAudioAuditNotifyConfigRequest.h include/alibabacloud/live/model/DeleteLiveAudioAuditNotifyConfigResult.h + include/alibabacloud/live/model/DeleteLiveCenterTransferRequest.h + include/alibabacloud/live/model/DeleteLiveCenterTransferResult.h include/alibabacloud/live/model/DeleteLiveDetectNotifyConfigRequest.h include/alibabacloud/live/model/DeleteLiveDetectNotifyConfigResult.h include/alibabacloud/live/model/DeleteLiveDomainRequest.h @@ -235,6 +237,8 @@ set(live_public_header_model include/alibabacloud/live/model/DescribeLiveAudioAuditConfigResult.h include/alibabacloud/live/model/DescribeLiveAudioAuditNotifyConfigRequest.h include/alibabacloud/live/model/DescribeLiveAudioAuditNotifyConfigResult.h + include/alibabacloud/live/model/DescribeLiveCenterTransferRequest.h + include/alibabacloud/live/model/DescribeLiveCenterTransferResult.h include/alibabacloud/live/model/DescribeLiveCertificateDetailRequest.h include/alibabacloud/live/model/DescribeLiveCertificateDetailResult.h include/alibabacloud/live/model/DescribeLiveCertificateListRequest.h @@ -591,6 +595,8 @@ set(live_public_header_model include/alibabacloud/live/model/UpdateLiveAudioAuditConfigResult.h include/alibabacloud/live/model/UpdateLiveAudioAuditNotifyConfigRequest.h include/alibabacloud/live/model/UpdateLiveAudioAuditNotifyConfigResult.h + include/alibabacloud/live/model/UpdateLiveCenterTransferRequest.h + include/alibabacloud/live/model/UpdateLiveCenterTransferResult.h include/alibabacloud/live/model/UpdateLiveDetectNotifyConfigRequest.h include/alibabacloud/live/model/UpdateLiveDetectNotifyConfigResult.h include/alibabacloud/live/model/UpdateLivePullStreamInfoConfigRequest.h @@ -740,6 +746,8 @@ set(live_src src/model/DeleteLiveAudioAuditConfigResult.cc src/model/DeleteLiveAudioAuditNotifyConfigRequest.cc src/model/DeleteLiveAudioAuditNotifyConfigResult.cc + src/model/DeleteLiveCenterTransferRequest.cc + src/model/DeleteLiveCenterTransferResult.cc src/model/DeleteLiveDetectNotifyConfigRequest.cc src/model/DeleteLiveDetectNotifyConfigResult.cc src/model/DeleteLiveDomainRequest.cc @@ -834,6 +842,8 @@ set(live_src src/model/DescribeLiveAudioAuditConfigResult.cc src/model/DescribeLiveAudioAuditNotifyConfigRequest.cc src/model/DescribeLiveAudioAuditNotifyConfigResult.cc + src/model/DescribeLiveCenterTransferRequest.cc + src/model/DescribeLiveCenterTransferResult.cc src/model/DescribeLiveCertificateDetailRequest.cc src/model/DescribeLiveCertificateDetailResult.cc src/model/DescribeLiveCertificateListRequest.cc @@ -1190,6 +1200,8 @@ set(live_src src/model/UpdateLiveAudioAuditConfigResult.cc src/model/UpdateLiveAudioAuditNotifyConfigRequest.cc src/model/UpdateLiveAudioAuditNotifyConfigResult.cc + src/model/UpdateLiveCenterTransferRequest.cc + src/model/UpdateLiveCenterTransferResult.cc src/model/UpdateLiveDetectNotifyConfigRequest.cc src/model/UpdateLiveDetectNotifyConfigResult.cc src/model/UpdateLivePullStreamInfoConfigRequest.cc diff --git a/live/include/alibabacloud/live/LiveClient.h b/live/include/alibabacloud/live/LiveClient.h index b4d92795e..a1db7e9c3 100644 --- a/live/include/alibabacloud/live/LiveClient.h +++ b/live/include/alibabacloud/live/LiveClient.h @@ -142,6 +142,8 @@ #include "model/DeleteLiveAudioAuditConfigResult.h" #include "model/DeleteLiveAudioAuditNotifyConfigRequest.h" #include "model/DeleteLiveAudioAuditNotifyConfigResult.h" +#include "model/DeleteLiveCenterTransferRequest.h" +#include "model/DeleteLiveCenterTransferResult.h" #include "model/DeleteLiveDetectNotifyConfigRequest.h" #include "model/DeleteLiveDetectNotifyConfigResult.h" #include "model/DeleteLiveDomainRequest.h" @@ -236,6 +238,8 @@ #include "model/DescribeLiveAudioAuditConfigResult.h" #include "model/DescribeLiveAudioAuditNotifyConfigRequest.h" #include "model/DescribeLiveAudioAuditNotifyConfigResult.h" +#include "model/DescribeLiveCenterTransferRequest.h" +#include "model/DescribeLiveCenterTransferResult.h" #include "model/DescribeLiveCertificateDetailRequest.h" #include "model/DescribeLiveCertificateDetailResult.h" #include "model/DescribeLiveCertificateListRequest.h" @@ -592,6 +596,8 @@ #include "model/UpdateLiveAudioAuditConfigResult.h" #include "model/UpdateLiveAudioAuditNotifyConfigRequest.h" #include "model/UpdateLiveAudioAuditNotifyConfigResult.h" +#include "model/UpdateLiveCenterTransferRequest.h" +#include "model/UpdateLiveCenterTransferResult.h" #include "model/UpdateLiveDetectNotifyConfigRequest.h" #include "model/UpdateLiveDetectNotifyConfigResult.h" #include "model/UpdateLivePullStreamInfoConfigRequest.h" @@ -807,6 +813,9 @@ namespace AlibabaCloud typedef Outcome DeleteLiveAudioAuditNotifyConfigOutcome; typedef std::future DeleteLiveAudioAuditNotifyConfigOutcomeCallable; typedef std::function&)> DeleteLiveAudioAuditNotifyConfigAsyncHandler; + typedef Outcome DeleteLiveCenterTransferOutcome; + typedef std::future DeleteLiveCenterTransferOutcomeCallable; + typedef std::function&)> DeleteLiveCenterTransferAsyncHandler; typedef Outcome DeleteLiveDetectNotifyConfigOutcome; typedef std::future DeleteLiveDetectNotifyConfigOutcomeCallable; typedef std::function&)> DeleteLiveDetectNotifyConfigAsyncHandler; @@ -948,6 +957,9 @@ namespace AlibabaCloud typedef Outcome DescribeLiveAudioAuditNotifyConfigOutcome; typedef std::future DescribeLiveAudioAuditNotifyConfigOutcomeCallable; typedef std::function&)> DescribeLiveAudioAuditNotifyConfigAsyncHandler; + typedef Outcome DescribeLiveCenterTransferOutcome; + typedef std::future DescribeLiveCenterTransferOutcomeCallable; + typedef std::function&)> DescribeLiveCenterTransferAsyncHandler; typedef Outcome DescribeLiveCertificateDetailOutcome; typedef std::future DescribeLiveCertificateDetailOutcomeCallable; typedef std::function&)> DescribeLiveCertificateDetailAsyncHandler; @@ -1482,6 +1494,9 @@ namespace AlibabaCloud typedef Outcome UpdateLiveAudioAuditNotifyConfigOutcome; typedef std::future UpdateLiveAudioAuditNotifyConfigOutcomeCallable; typedef std::function&)> UpdateLiveAudioAuditNotifyConfigAsyncHandler; + typedef Outcome UpdateLiveCenterTransferOutcome; + typedef std::future UpdateLiveCenterTransferOutcomeCallable; + typedef std::function&)> UpdateLiveCenterTransferAsyncHandler; typedef Outcome UpdateLiveDetectNotifyConfigOutcome; typedef std::future UpdateLiveDetectNotifyConfigOutcomeCallable; typedef std::function&)> UpdateLiveDetectNotifyConfigAsyncHandler; @@ -1706,6 +1721,9 @@ namespace AlibabaCloud DeleteLiveAudioAuditNotifyConfigOutcome deleteLiveAudioAuditNotifyConfig(const Model::DeleteLiveAudioAuditNotifyConfigRequest &request)const; void deleteLiveAudioAuditNotifyConfigAsync(const Model::DeleteLiveAudioAuditNotifyConfigRequest& request, const DeleteLiveAudioAuditNotifyConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLiveAudioAuditNotifyConfigOutcomeCallable deleteLiveAudioAuditNotifyConfigCallable(const Model::DeleteLiveAudioAuditNotifyConfigRequest& request) const; + DeleteLiveCenterTransferOutcome deleteLiveCenterTransfer(const Model::DeleteLiveCenterTransferRequest &request)const; + void deleteLiveCenterTransferAsync(const Model::DeleteLiveCenterTransferRequest& request, const DeleteLiveCenterTransferAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLiveCenterTransferOutcomeCallable deleteLiveCenterTransferCallable(const Model::DeleteLiveCenterTransferRequest& request) const; DeleteLiveDetectNotifyConfigOutcome deleteLiveDetectNotifyConfig(const Model::DeleteLiveDetectNotifyConfigRequest &request)const; void deleteLiveDetectNotifyConfigAsync(const Model::DeleteLiveDetectNotifyConfigRequest& request, const DeleteLiveDetectNotifyConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLiveDetectNotifyConfigOutcomeCallable deleteLiveDetectNotifyConfigCallable(const Model::DeleteLiveDetectNotifyConfigRequest& request) const; @@ -1847,6 +1865,9 @@ namespace AlibabaCloud DescribeLiveAudioAuditNotifyConfigOutcome describeLiveAudioAuditNotifyConfig(const Model::DescribeLiveAudioAuditNotifyConfigRequest &request)const; void describeLiveAudioAuditNotifyConfigAsync(const Model::DescribeLiveAudioAuditNotifyConfigRequest& request, const DescribeLiveAudioAuditNotifyConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveAudioAuditNotifyConfigOutcomeCallable describeLiveAudioAuditNotifyConfigCallable(const Model::DescribeLiveAudioAuditNotifyConfigRequest& request) const; + DescribeLiveCenterTransferOutcome describeLiveCenterTransfer(const Model::DescribeLiveCenterTransferRequest &request)const; + void describeLiveCenterTransferAsync(const Model::DescribeLiveCenterTransferRequest& request, const DescribeLiveCenterTransferAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLiveCenterTransferOutcomeCallable describeLiveCenterTransferCallable(const Model::DescribeLiveCenterTransferRequest& request) const; DescribeLiveCertificateDetailOutcome describeLiveCertificateDetail(const Model::DescribeLiveCertificateDetailRequest &request)const; void describeLiveCertificateDetailAsync(const Model::DescribeLiveCertificateDetailRequest& request, const DescribeLiveCertificateDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveCertificateDetailOutcomeCallable describeLiveCertificateDetailCallable(const Model::DescribeLiveCertificateDetailRequest& request) const; @@ -2381,6 +2402,9 @@ namespace AlibabaCloud UpdateLiveAudioAuditNotifyConfigOutcome updateLiveAudioAuditNotifyConfig(const Model::UpdateLiveAudioAuditNotifyConfigRequest &request)const; void updateLiveAudioAuditNotifyConfigAsync(const Model::UpdateLiveAudioAuditNotifyConfigRequest& request, const UpdateLiveAudioAuditNotifyConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateLiveAudioAuditNotifyConfigOutcomeCallable updateLiveAudioAuditNotifyConfigCallable(const Model::UpdateLiveAudioAuditNotifyConfigRequest& request) const; + UpdateLiveCenterTransferOutcome updateLiveCenterTransfer(const Model::UpdateLiveCenterTransferRequest &request)const; + void updateLiveCenterTransferAsync(const Model::UpdateLiveCenterTransferRequest& request, const UpdateLiveCenterTransferAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateLiveCenterTransferOutcomeCallable updateLiveCenterTransferCallable(const Model::UpdateLiveCenterTransferRequest& request) const; UpdateLiveDetectNotifyConfigOutcome updateLiveDetectNotifyConfig(const Model::UpdateLiveDetectNotifyConfigRequest &request)const; void updateLiveDetectNotifyConfigAsync(const Model::UpdateLiveDetectNotifyConfigRequest& request, const UpdateLiveDetectNotifyConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateLiveDetectNotifyConfigOutcomeCallable updateLiveDetectNotifyConfigCallable(const Model::UpdateLiveDetectNotifyConfigRequest& request) const; diff --git a/live/include/alibabacloud/live/model/DeleteLiveCenterTransferRequest.h b/live/include/alibabacloud/live/model/DeleteLiveCenterTransferRequest.h new file mode 100644 index 000000000..2aa8459a6 --- /dev/null +++ b/live/include/alibabacloud/live/model/DeleteLiveCenterTransferRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DELETELIVECENTERTRANSFERREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DELETELIVECENTERTRANSFERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT DeleteLiveCenterTransferRequest : public RpcServiceRequest { +public: + DeleteLiveCenterTransferRequest(); + ~DeleteLiveCenterTransferRequest(); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getStreamName() const; + void setStreamName(const std::string &streamName); + std::string getDstUrl() const; + void setDstUrl(const std::string &dstUrl); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string appName_; + std::string streamName_; + std::string dstUrl_; + std::string domainName_; + long ownerId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_DELETELIVECENTERTRANSFERREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/DeleteLiveCenterTransferResult.h b/live/include/alibabacloud/live/model/DeleteLiveCenterTransferResult.h new file mode 100644 index 000000000..84f831d99 --- /dev/null +++ b/live/include/alibabacloud/live/model/DeleteLiveCenterTransferResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DELETELIVECENTERTRANSFERRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DELETELIVECENTERTRANSFERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DeleteLiveCenterTransferResult : public ServiceResult + { + public: + + + DeleteLiveCenterTransferResult(); + explicit DeleteLiveCenterTransferResult(const std::string &payload); + ~DeleteLiveCenterTransferResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DELETELIVECENTERTRANSFERRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/DescribeLiveCenterTransferRequest.h b/live/include/alibabacloud/live/model/DescribeLiveCenterTransferRequest.h new file mode 100644 index 000000000..4671b9007 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveCenterTransferRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVECENTERTRANSFERREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVECENTERTRANSFERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT DescribeLiveCenterTransferRequest : public RpcServiceRequest { +public: + DescribeLiveCenterTransferRequest(); + ~DescribeLiveCenterTransferRequest(); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getStreamName() const; + void setStreamName(const std::string &streamName); + std::string getDstUrl() const; + void setDstUrl(const std::string &dstUrl); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string appName_; + std::string streamName_; + std::string dstUrl_; + std::string domainName_; + long ownerId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVECENTERTRANSFERREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/DescribeLiveCenterTransferResult.h b/live/include/alibabacloud/live/model/DescribeLiveCenterTransferResult.h new file mode 100644 index 000000000..e903fbde1 --- /dev/null +++ b/live/include/alibabacloud/live/model/DescribeLiveCenterTransferResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVECENTERTRANSFERRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVECENTERTRANSFERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT DescribeLiveCenterTransferResult : public ServiceResult + { + public: + struct LiveCenterTransferInfo + { + std::string streamName; + std::string endTime; + std::string domainName; + std::string transferArgs; + std::string startTime; + std::string dstUrl; + std::string appName; + }; + + + DescribeLiveCenterTransferResult(); + explicit DescribeLiveCenterTransferResult(const std::string &payload); + ~DescribeLiveCenterTransferResult(); + std::vector getLiveCenterTransferInfoList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector liveCenterTransferInfoList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVECENTERTRANSFERRESULT_H_ \ No newline at end of file diff --git a/live/include/alibabacloud/live/model/SetCasterChannelRequest.h b/live/include/alibabacloud/live/model/SetCasterChannelRequest.h index faa8c43bb..0a72b2ee3 100644 --- a/live/include/alibabacloud/live/model/SetCasterChannelRequest.h +++ b/live/include/alibabacloud/live/model/SetCasterChannelRequest.h @@ -40,6 +40,8 @@ public: void setResourceId(const std::string &resourceId); std::string getCasterId() const; void setCasterId(const std::string &casterId); + bool getEnableSeekResume() const; + void setEnableSeekResume(bool enableSeekResume); long getOwnerId() const; void setOwnerId(long ownerId); int getReloadFlag() const; @@ -53,6 +55,7 @@ private: int playStatus_; std::string resourceId_; std::string casterId_; + bool enableSeekResume_; long ownerId_; int reloadFlag_; std::string channelId_; diff --git a/live/include/alibabacloud/live/model/UpdateLiveCenterTransferRequest.h b/live/include/alibabacloud/live/model/UpdateLiveCenterTransferRequest.h new file mode 100644 index 000000000..f1c0bd431 --- /dev/null +++ b/live/include/alibabacloud/live/model/UpdateLiveCenterTransferRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_UPDATELIVECENTERTRANSFERREQUEST_H_ +#define ALIBABACLOUD_LIVE_MODEL_UPDATELIVECENTERTRANSFERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Live { +namespace Model { +class ALIBABACLOUD_LIVE_EXPORT UpdateLiveCenterTransferRequest : public RpcServiceRequest { +public: + UpdateLiveCenterTransferRequest(); + ~UpdateLiveCenterTransferRequest(); + std::string getTransferArgs() const; + void setTransferArgs(const std::string &transferArgs); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getStreamName() const; + void setStreamName(const std::string &streamName); + std::string getDstUrl() const; + void setDstUrl(const std::string &dstUrl); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string transferArgs_; + std::string startTime_; + std::string appName_; + std::string streamName_; + std::string dstUrl_; + std::string domainName_; + std::string endTime_; + long ownerId_; +}; +} // namespace Model +} // namespace Live +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_LIVE_MODEL_UPDATELIVECENTERTRANSFERREQUEST_H_ diff --git a/live/include/alibabacloud/live/model/UpdateLiveCenterTransferResult.h b/live/include/alibabacloud/live/model/UpdateLiveCenterTransferResult.h new file mode 100644 index 000000000..ae0dd447b --- /dev/null +++ b/live/include/alibabacloud/live/model/UpdateLiveCenterTransferResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_LIVE_MODEL_UPDATELIVECENTERTRANSFERRESULT_H_ +#define ALIBABACLOUD_LIVE_MODEL_UPDATELIVECENTERTRANSFERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Live + { + namespace Model + { + class ALIBABACLOUD_LIVE_EXPORT UpdateLiveCenterTransferResult : public ServiceResult + { + public: + + + UpdateLiveCenterTransferResult(); + explicit UpdateLiveCenterTransferResult(const std::string &payload); + ~UpdateLiveCenterTransferResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_LIVE_MODEL_UPDATELIVECENTERTRANSFERRESULT_H_ \ No newline at end of file diff --git a/live/src/LiveClient.cc b/live/src/LiveClient.cc index ba08e4caf..b460fb290 100644 --- a/live/src/LiveClient.cc +++ b/live/src/LiveClient.cc @@ -2211,6 +2211,42 @@ LiveClient::DeleteLiveAudioAuditNotifyConfigOutcomeCallable LiveClient::deleteLi return task->get_future(); } +LiveClient::DeleteLiveCenterTransferOutcome LiveClient::deleteLiveCenterTransfer(const DeleteLiveCenterTransferRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteLiveCenterTransferOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteLiveCenterTransferOutcome(DeleteLiveCenterTransferResult(outcome.result())); + else + return DeleteLiveCenterTransferOutcome(outcome.error()); +} + +void LiveClient::deleteLiveCenterTransferAsync(const DeleteLiveCenterTransferRequest& request, const DeleteLiveCenterTransferAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteLiveCenterTransfer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DeleteLiveCenterTransferOutcomeCallable LiveClient::deleteLiveCenterTransferCallable(const DeleteLiveCenterTransferRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteLiveCenterTransfer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DeleteLiveDetectNotifyConfigOutcome LiveClient::deleteLiveDetectNotifyConfig(const DeleteLiveDetectNotifyConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3903,6 +3939,42 @@ LiveClient::DescribeLiveAudioAuditNotifyConfigOutcomeCallable LiveClient::descri return task->get_future(); } +LiveClient::DescribeLiveCenterTransferOutcome LiveClient::describeLiveCenterTransfer(const DescribeLiveCenterTransferRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLiveCenterTransferOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLiveCenterTransferOutcome(DescribeLiveCenterTransferResult(outcome.result())); + else + return DescribeLiveCenterTransferOutcome(outcome.error()); +} + +void LiveClient::describeLiveCenterTransferAsync(const DescribeLiveCenterTransferRequest& request, const DescribeLiveCenterTransferAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLiveCenterTransfer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::DescribeLiveCenterTransferOutcomeCallable LiveClient::describeLiveCenterTransferCallable(const DescribeLiveCenterTransferRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLiveCenterTransfer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::DescribeLiveCertificateDetailOutcome LiveClient::describeLiveCertificateDetail(const DescribeLiveCertificateDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10311,6 +10383,42 @@ LiveClient::UpdateLiveAudioAuditNotifyConfigOutcomeCallable LiveClient::updateLi return task->get_future(); } +LiveClient::UpdateLiveCenterTransferOutcome LiveClient::updateLiveCenterTransfer(const UpdateLiveCenterTransferRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateLiveCenterTransferOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateLiveCenterTransferOutcome(UpdateLiveCenterTransferResult(outcome.result())); + else + return UpdateLiveCenterTransferOutcome(outcome.error()); +} + +void LiveClient::updateLiveCenterTransferAsync(const UpdateLiveCenterTransferRequest& request, const UpdateLiveCenterTransferAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateLiveCenterTransfer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +LiveClient::UpdateLiveCenterTransferOutcomeCallable LiveClient::updateLiveCenterTransferCallable(const UpdateLiveCenterTransferRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateLiveCenterTransfer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + LiveClient::UpdateLiveDetectNotifyConfigOutcome LiveClient::updateLiveDetectNotifyConfig(const UpdateLiveDetectNotifyConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/live/src/model/DeleteLiveCenterTransferRequest.cc b/live/src/model/DeleteLiveCenterTransferRequest.cc new file mode 100644 index 000000000..021349cca --- /dev/null +++ b/live/src/model/DeleteLiveCenterTransferRequest.cc @@ -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 + +using AlibabaCloud::Live::Model::DeleteLiveCenterTransferRequest; + +DeleteLiveCenterTransferRequest::DeleteLiveCenterTransferRequest() + : RpcServiceRequest("live", "2016-11-01", "DeleteLiveCenterTransfer") { + setMethod(HttpRequest::Method::Post); +} + +DeleteLiveCenterTransferRequest::~DeleteLiveCenterTransferRequest() {} + +std::string DeleteLiveCenterTransferRequest::getAppName() const { + return appName_; +} + +void DeleteLiveCenterTransferRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string DeleteLiveCenterTransferRequest::getStreamName() const { + return streamName_; +} + +void DeleteLiveCenterTransferRequest::setStreamName(const std::string &streamName) { + streamName_ = streamName; + setParameter(std::string("StreamName"), streamName); +} + +std::string DeleteLiveCenterTransferRequest::getDstUrl() const { + return dstUrl_; +} + +void DeleteLiveCenterTransferRequest::setDstUrl(const std::string &dstUrl) { + dstUrl_ = dstUrl; + setParameter(std::string("DstUrl"), dstUrl); +} + +std::string DeleteLiveCenterTransferRequest::getDomainName() const { + return domainName_; +} + +void DeleteLiveCenterTransferRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); +} + +long DeleteLiveCenterTransferRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteLiveCenterTransferRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/live/src/model/DeleteLiveCenterTransferResult.cc b/live/src/model/DeleteLiveCenterTransferResult.cc new file mode 100644 index 000000000..3213e9cc9 --- /dev/null +++ b/live/src/model/DeleteLiveCenterTransferResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +DeleteLiveCenterTransferResult::DeleteLiveCenterTransferResult() : + ServiceResult() +{} + +DeleteLiveCenterTransferResult::DeleteLiveCenterTransferResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteLiveCenterTransferResult::~DeleteLiveCenterTransferResult() +{} + +void DeleteLiveCenterTransferResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/live/src/model/DescribeLiveCenterTransferRequest.cc b/live/src/model/DescribeLiveCenterTransferRequest.cc new file mode 100644 index 000000000..2533ce0f3 --- /dev/null +++ b/live/src/model/DescribeLiveCenterTransferRequest.cc @@ -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 + +using AlibabaCloud::Live::Model::DescribeLiveCenterTransferRequest; + +DescribeLiveCenterTransferRequest::DescribeLiveCenterTransferRequest() + : RpcServiceRequest("live", "2016-11-01", "DescribeLiveCenterTransfer") { + setMethod(HttpRequest::Method::Post); +} + +DescribeLiveCenterTransferRequest::~DescribeLiveCenterTransferRequest() {} + +std::string DescribeLiveCenterTransferRequest::getAppName() const { + return appName_; +} + +void DescribeLiveCenterTransferRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string DescribeLiveCenterTransferRequest::getStreamName() const { + return streamName_; +} + +void DescribeLiveCenterTransferRequest::setStreamName(const std::string &streamName) { + streamName_ = streamName; + setParameter(std::string("StreamName"), streamName); +} + +std::string DescribeLiveCenterTransferRequest::getDstUrl() const { + return dstUrl_; +} + +void DescribeLiveCenterTransferRequest::setDstUrl(const std::string &dstUrl) { + dstUrl_ = dstUrl; + setParameter(std::string("DstUrl"), dstUrl); +} + +std::string DescribeLiveCenterTransferRequest::getDomainName() const { + return domainName_; +} + +void DescribeLiveCenterTransferRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); +} + +long DescribeLiveCenterTransferRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeLiveCenterTransferRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/live/src/model/DescribeLiveCenterTransferResult.cc b/live/src/model/DescribeLiveCenterTransferResult.cc new file mode 100644 index 000000000..da03a27d2 --- /dev/null +++ b/live/src/model/DescribeLiveCenterTransferResult.cc @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +DescribeLiveCenterTransferResult::DescribeLiveCenterTransferResult() : + ServiceResult() +{} + +DescribeLiveCenterTransferResult::DescribeLiveCenterTransferResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLiveCenterTransferResult::~DescribeLiveCenterTransferResult() +{} + +void DescribeLiveCenterTransferResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allLiveCenterTransferInfoListNode = value["LiveCenterTransferInfoList"]["LiveCenterTransferInfo"]; + for (auto valueLiveCenterTransferInfoListLiveCenterTransferInfo : allLiveCenterTransferInfoListNode) + { + LiveCenterTransferInfo liveCenterTransferInfoListObject; + if(!valueLiveCenterTransferInfoListLiveCenterTransferInfo["EndTime"].isNull()) + liveCenterTransferInfoListObject.endTime = valueLiveCenterTransferInfoListLiveCenterTransferInfo["EndTime"].asString(); + if(!valueLiveCenterTransferInfoListLiveCenterTransferInfo["AppName"].isNull()) + liveCenterTransferInfoListObject.appName = valueLiveCenterTransferInfoListLiveCenterTransferInfo["AppName"].asString(); + if(!valueLiveCenterTransferInfoListLiveCenterTransferInfo["StartTime"].isNull()) + liveCenterTransferInfoListObject.startTime = valueLiveCenterTransferInfoListLiveCenterTransferInfo["StartTime"].asString(); + if(!valueLiveCenterTransferInfoListLiveCenterTransferInfo["TransferArgs"].isNull()) + liveCenterTransferInfoListObject.transferArgs = valueLiveCenterTransferInfoListLiveCenterTransferInfo["TransferArgs"].asString(); + if(!valueLiveCenterTransferInfoListLiveCenterTransferInfo["StreamName"].isNull()) + liveCenterTransferInfoListObject.streamName = valueLiveCenterTransferInfoListLiveCenterTransferInfo["StreamName"].asString(); + if(!valueLiveCenterTransferInfoListLiveCenterTransferInfo["DstUrl"].isNull()) + liveCenterTransferInfoListObject.dstUrl = valueLiveCenterTransferInfoListLiveCenterTransferInfo["DstUrl"].asString(); + if(!valueLiveCenterTransferInfoListLiveCenterTransferInfo["DomainName"].isNull()) + liveCenterTransferInfoListObject.domainName = valueLiveCenterTransferInfoListLiveCenterTransferInfo["DomainName"].asString(); + liveCenterTransferInfoList_.push_back(liveCenterTransferInfoListObject); + } + +} + +std::vector DescribeLiveCenterTransferResult::getLiveCenterTransferInfoList()const +{ + return liveCenterTransferInfoList_; +} + diff --git a/live/src/model/SetCasterChannelRequest.cc b/live/src/model/SetCasterChannelRequest.cc index 487d14557..8b89fc771 100644 --- a/live/src/model/SetCasterChannelRequest.cc +++ b/live/src/model/SetCasterChannelRequest.cc @@ -70,6 +70,15 @@ void SetCasterChannelRequest::setCasterId(const std::string &casterId) { setParameter(std::string("CasterId"), casterId); } +bool SetCasterChannelRequest::getEnableSeekResume() const { + return enableSeekResume_; +} + +void SetCasterChannelRequest::setEnableSeekResume(bool enableSeekResume) { + enableSeekResume_ = enableSeekResume; + setParameter(std::string("EnableSeekResume"), enableSeekResume ? "true" : "false"); +} + long SetCasterChannelRequest::getOwnerId() const { return ownerId_; } diff --git a/live/src/model/UpdateLiveCenterTransferRequest.cc b/live/src/model/UpdateLiveCenterTransferRequest.cc new file mode 100644 index 000000000..d2368c5ec --- /dev/null +++ b/live/src/model/UpdateLiveCenterTransferRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Live::Model::UpdateLiveCenterTransferRequest; + +UpdateLiveCenterTransferRequest::UpdateLiveCenterTransferRequest() + : RpcServiceRequest("live", "2016-11-01", "UpdateLiveCenterTransfer") { + setMethod(HttpRequest::Method::Post); +} + +UpdateLiveCenterTransferRequest::~UpdateLiveCenterTransferRequest() {} + +std::string UpdateLiveCenterTransferRequest::getTransferArgs() const { + return transferArgs_; +} + +void UpdateLiveCenterTransferRequest::setTransferArgs(const std::string &transferArgs) { + transferArgs_ = transferArgs; + setParameter(std::string("TransferArgs"), transferArgs); +} + +std::string UpdateLiveCenterTransferRequest::getStartTime() const { + return startTime_; +} + +void UpdateLiveCenterTransferRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string UpdateLiveCenterTransferRequest::getAppName() const { + return appName_; +} + +void UpdateLiveCenterTransferRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string UpdateLiveCenterTransferRequest::getStreamName() const { + return streamName_; +} + +void UpdateLiveCenterTransferRequest::setStreamName(const std::string &streamName) { + streamName_ = streamName; + setParameter(std::string("StreamName"), streamName); +} + +std::string UpdateLiveCenterTransferRequest::getDstUrl() const { + return dstUrl_; +} + +void UpdateLiveCenterTransferRequest::setDstUrl(const std::string &dstUrl) { + dstUrl_ = dstUrl; + setParameter(std::string("DstUrl"), dstUrl); +} + +std::string UpdateLiveCenterTransferRequest::getDomainName() const { + return domainName_; +} + +void UpdateLiveCenterTransferRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); +} + +std::string UpdateLiveCenterTransferRequest::getEndTime() const { + return endTime_; +} + +void UpdateLiveCenterTransferRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +long UpdateLiveCenterTransferRequest::getOwnerId() const { + return ownerId_; +} + +void UpdateLiveCenterTransferRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/live/src/model/UpdateLiveCenterTransferResult.cc b/live/src/model/UpdateLiveCenterTransferResult.cc new file mode 100644 index 000000000..750560fab --- /dev/null +++ b/live/src/model/UpdateLiveCenterTransferResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Live; +using namespace AlibabaCloud::Live::Model; + +UpdateLiveCenterTransferResult::UpdateLiveCenterTransferResult() : + ServiceResult() +{} + +UpdateLiveCenterTransferResult::UpdateLiveCenterTransferResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateLiveCenterTransferResult::~UpdateLiveCenterTransferResult() +{} + +void UpdateLiveCenterTransferResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +