Live sdk update.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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<Error, Model::DeleteLiveAudioAuditNotifyConfigResult> DeleteLiveAudioAuditNotifyConfigOutcome;
|
||||
typedef std::future<DeleteLiveAudioAuditNotifyConfigOutcome> DeleteLiveAudioAuditNotifyConfigOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::DeleteLiveAudioAuditNotifyConfigRequest&, const DeleteLiveAudioAuditNotifyConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteLiveAudioAuditNotifyConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteLiveCenterTransferResult> DeleteLiveCenterTransferOutcome;
|
||||
typedef std::future<DeleteLiveCenterTransferOutcome> DeleteLiveCenterTransferOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::DeleteLiveCenterTransferRequest&, const DeleteLiveCenterTransferOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteLiveCenterTransferAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteLiveDetectNotifyConfigResult> DeleteLiveDetectNotifyConfigOutcome;
|
||||
typedef std::future<DeleteLiveDetectNotifyConfigOutcome> DeleteLiveDetectNotifyConfigOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::DeleteLiveDetectNotifyConfigRequest&, const DeleteLiveDetectNotifyConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteLiveDetectNotifyConfigAsyncHandler;
|
||||
@@ -948,6 +957,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeLiveAudioAuditNotifyConfigResult> DescribeLiveAudioAuditNotifyConfigOutcome;
|
||||
typedef std::future<DescribeLiveAudioAuditNotifyConfigOutcome> DescribeLiveAudioAuditNotifyConfigOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::DescribeLiveAudioAuditNotifyConfigRequest&, const DescribeLiveAudioAuditNotifyConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveAudioAuditNotifyConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLiveCenterTransferResult> DescribeLiveCenterTransferOutcome;
|
||||
typedef std::future<DescribeLiveCenterTransferOutcome> DescribeLiveCenterTransferOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::DescribeLiveCenterTransferRequest&, const DescribeLiveCenterTransferOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveCenterTransferAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLiveCertificateDetailResult> DescribeLiveCertificateDetailOutcome;
|
||||
typedef std::future<DescribeLiveCertificateDetailOutcome> DescribeLiveCertificateDetailOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::DescribeLiveCertificateDetailRequest&, const DescribeLiveCertificateDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveCertificateDetailAsyncHandler;
|
||||
@@ -1482,6 +1494,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateLiveAudioAuditNotifyConfigResult> UpdateLiveAudioAuditNotifyConfigOutcome;
|
||||
typedef std::future<UpdateLiveAudioAuditNotifyConfigOutcome> UpdateLiveAudioAuditNotifyConfigOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::UpdateLiveAudioAuditNotifyConfigRequest&, const UpdateLiveAudioAuditNotifyConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLiveAudioAuditNotifyConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateLiveCenterTransferResult> UpdateLiveCenterTransferOutcome;
|
||||
typedef std::future<UpdateLiveCenterTransferOutcome> UpdateLiveCenterTransferOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::UpdateLiveCenterTransferRequest&, const UpdateLiveCenterTransferOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLiveCenterTransferAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateLiveDetectNotifyConfigResult> UpdateLiveDetectNotifyConfigOutcome;
|
||||
typedef std::future<UpdateLiveDetectNotifyConfigOutcome> UpdateLiveDetectNotifyConfigOutcomeCallable;
|
||||
typedef std::function<void(const LiveClient*, const Model::UpdateLiveDetectNotifyConfigRequest&, const UpdateLiveDetectNotifyConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateLiveDetectNotifyConfigOutcomeCallable updateLiveDetectNotifyConfigCallable(const Model::UpdateLiveDetectNotifyConfigRequest& request) const;
|
||||
|
||||
@@ -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 <alibabacloud/live/LiveExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/live/LiveExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
|
||||
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<LiveCenterTransferInfo> getLiveCenterTransferInfoList()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<LiveCenterTransferInfo> liveCenterTransferInfoList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVECENTERTRANSFERRESULT_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_;
|
||||
|
||||
@@ -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 <alibabacloud/live/LiveExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/live/LiveExport.h>
|
||||
|
||||
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_
|
||||
@@ -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<const AsyncCallerContext>& 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<std::packaged_task<DeleteLiveCenterTransferOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeLiveCenterTransferOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<UpdateLiveCenterTransferOutcome()>>(
|
||||
[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();
|
||||
|
||||
72
live/src/model/DeleteLiveCenterTransferRequest.cc
Normal file
72
live/src/model/DeleteLiveCenterTransferRequest.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/DeleteLiveCenterTransferRequest.h>
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
44
live/src/model/DeleteLiveCenterTransferResult.cc
Normal file
44
live/src/model/DeleteLiveCenterTransferResult.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/DeleteLiveCenterTransferResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
72
live/src/model/DescribeLiveCenterTransferRequest.cc
Normal file
72
live/src/model/DescribeLiveCenterTransferRequest.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/DescribeLiveCenterTransferRequest.h>
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
69
live/src/model/DescribeLiveCenterTransferResult.cc
Normal file
69
live/src/model/DescribeLiveCenterTransferResult.cc
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/live/model/DescribeLiveCenterTransferResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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::LiveCenterTransferInfo> DescribeLiveCenterTransferResult::getLiveCenterTransferInfoList()const
|
||||
{
|
||||
return liveCenterTransferInfoList_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
99
live/src/model/UpdateLiveCenterTransferRequest.cc
Normal file
99
live/src/model/UpdateLiveCenterTransferRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/live/model/UpdateLiveCenterTransferRequest.h>
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
44
live/src/model/UpdateLiveCenterTransferResult.cc
Normal file
44
live/src/model/UpdateLiveCenterTransferResult.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/UpdateLiveCenterTransferResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user