Generated 2016-11-01 for live.

This commit is contained in:
sdk-team
2021-04-27 09:19:10 +00:00
parent ba63e32429
commit 431638f102
558 changed files with 7881 additions and 211 deletions

View File

@@ -339,6 +339,42 @@ LiveClient::AddCustomLiveStreamTranscodeOutcomeCallable LiveClient::addCustomLiv
return task->get_future();
}
LiveClient::AddDRMCertificateOutcome LiveClient::addDRMCertificate(const AddDRMCertificateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddDRMCertificateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddDRMCertificateOutcome(AddDRMCertificateResult(outcome.result()));
else
return AddDRMCertificateOutcome(outcome.error());
}
void LiveClient::addDRMCertificateAsync(const AddDRMCertificateRequest& request, const AddDRMCertificateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addDRMCertificate(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::AddDRMCertificateOutcomeCallable LiveClient::addDRMCertificateCallable(const AddDRMCertificateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddDRMCertificateOutcome()>>(
[this, request]()
{
return this->addDRMCertificate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::AddLiveASRConfigOutcome LiveClient::addLiveASRConfig(const AddLiveASRConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -843,6 +879,78 @@ LiveClient::AddLiveStreamTranscodeOutcomeCallable LiveClient::addLiveStreamTrans
return task->get_future();
}
LiveClient::AddMultiRateConfigOutcome LiveClient::addMultiRateConfig(const AddMultiRateConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddMultiRateConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddMultiRateConfigOutcome(AddMultiRateConfigResult(outcome.result()));
else
return AddMultiRateConfigOutcome(outcome.error());
}
void LiveClient::addMultiRateConfigAsync(const AddMultiRateConfigRequest& request, const AddMultiRateConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addMultiRateConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::AddMultiRateConfigOutcomeCallable LiveClient::addMultiRateConfigCallable(const AddMultiRateConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddMultiRateConfigOutcome()>>(
[this, request]()
{
return this->addMultiRateConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::AddPlaylistItemsOutcome LiveClient::addPlaylistItems(const AddPlaylistItemsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddPlaylistItemsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddPlaylistItemsOutcome(AddPlaylistItemsResult(outcome.result()));
else
return AddPlaylistItemsOutcome(outcome.error());
}
void LiveClient::addPlaylistItemsAsync(const AddPlaylistItemsRequest& request, const AddPlaylistItemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addPlaylistItems(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::AddPlaylistItemsOutcomeCallable LiveClient::addPlaylistItemsCallable(const AddPlaylistItemsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddPlaylistItemsOutcome()>>(
[this, request]()
{
return this->addPlaylistItems(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::AddRtsLiveStreamTranscodeOutcome LiveClient::addRtsLiveStreamTranscode(const AddRtsLiveStreamTranscodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -879,6 +987,42 @@ LiveClient::AddRtsLiveStreamTranscodeOutcomeCallable LiveClient::addRtsLiveStrea
return task->get_future();
}
LiveClient::AddStudioLayoutOutcome LiveClient::addStudioLayout(const AddStudioLayoutRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddStudioLayoutOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddStudioLayoutOutcome(AddStudioLayoutResult(outcome.result()));
else
return AddStudioLayoutOutcome(outcome.error());
}
void LiveClient::addStudioLayoutAsync(const AddStudioLayoutRequest& request, const AddStudioLayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addStudioLayout(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::AddStudioLayoutOutcomeCallable LiveClient::addStudioLayoutCallable(const AddStudioLayoutRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddStudioLayoutOutcome()>>(
[this, request]()
{
return this->addStudioLayout(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::AddTrancodeSEIOutcome LiveClient::addTrancodeSEI(const AddTrancodeSEIRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1095,6 +1239,78 @@ LiveClient::BatchSetLiveDomainConfigsOutcomeCallable LiveClient::batchSetLiveDom
return task->get_future();
}
LiveClient::CheckServiceForRoleOutcome LiveClient::checkServiceForRole(const CheckServiceForRoleRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CheckServiceForRoleOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CheckServiceForRoleOutcome(CheckServiceForRoleResult(outcome.result()));
else
return CheckServiceForRoleOutcome(outcome.error());
}
void LiveClient::checkServiceForRoleAsync(const CheckServiceForRoleRequest& request, const CheckServiceForRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, checkServiceForRole(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::CheckServiceForRoleOutcomeCallable LiveClient::checkServiceForRoleCallable(const CheckServiceForRoleRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CheckServiceForRoleOutcome()>>(
[this, request]()
{
return this->checkServiceForRole(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::CloseLiveShiftOutcome LiveClient::closeLiveShift(const CloseLiveShiftRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CloseLiveShiftOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CloseLiveShiftOutcome(CloseLiveShiftResult(outcome.result()));
else
return CloseLiveShiftOutcome(outcome.error());
}
void LiveClient::closeLiveShiftAsync(const CloseLiveShiftRequest& request, const CloseLiveShiftAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, closeLiveShift(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::CloseLiveShiftOutcomeCallable LiveClient::closeLiveShiftCallable(const CloseLiveShiftRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CloseLiveShiftOutcome()>>(
[this, request]()
{
return this->closeLiveShift(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::CompleteBoardOutcome LiveClient::completeBoard(const CompleteBoardRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2535,6 +2751,114 @@ LiveClient::DeleteMixStreamOutcomeCallable LiveClient::deleteMixStreamCallable(c
return task->get_future();
}
LiveClient::DeleteMultiRateConfigOutcome LiveClient::deleteMultiRateConfig(const DeleteMultiRateConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteMultiRateConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteMultiRateConfigOutcome(DeleteMultiRateConfigResult(outcome.result()));
else
return DeleteMultiRateConfigOutcome(outcome.error());
}
void LiveClient::deleteMultiRateConfigAsync(const DeleteMultiRateConfigRequest& request, const DeleteMultiRateConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteMultiRateConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DeleteMultiRateConfigOutcomeCallable LiveClient::deleteMultiRateConfigCallable(const DeleteMultiRateConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteMultiRateConfigOutcome()>>(
[this, request]()
{
return this->deleteMultiRateConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DeletePlaylistOutcome LiveClient::deletePlaylist(const DeletePlaylistRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeletePlaylistOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeletePlaylistOutcome(DeletePlaylistResult(outcome.result()));
else
return DeletePlaylistOutcome(outcome.error());
}
void LiveClient::deletePlaylistAsync(const DeletePlaylistRequest& request, const DeletePlaylistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deletePlaylist(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DeletePlaylistOutcomeCallable LiveClient::deletePlaylistCallable(const DeletePlaylistRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeletePlaylistOutcome()>>(
[this, request]()
{
return this->deletePlaylist(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DeletePlaylistItemsOutcome LiveClient::deletePlaylistItems(const DeletePlaylistItemsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeletePlaylistItemsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeletePlaylistItemsOutcome(DeletePlaylistItemsResult(outcome.result()));
else
return DeletePlaylistItemsOutcome(outcome.error());
}
void LiveClient::deletePlaylistItemsAsync(const DeletePlaylistItemsRequest& request, const DeletePlaylistItemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deletePlaylistItems(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DeletePlaylistItemsOutcomeCallable LiveClient::deletePlaylistItemsCallable(const DeletePlaylistItemsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeletePlaylistItemsOutcome()>>(
[this, request]()
{
return this->deletePlaylistItems(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DeleteRoomOutcome LiveClient::deleteRoom(const DeleteRoomRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2571,6 +2895,42 @@ LiveClient::DeleteRoomOutcomeCallable LiveClient::deleteRoomCallable(const Delet
return task->get_future();
}
LiveClient::DeleteStudioLayoutOutcome LiveClient::deleteStudioLayout(const DeleteStudioLayoutRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteStudioLayoutOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteStudioLayoutOutcome(DeleteStudioLayoutResult(outcome.result()));
else
return DeleteStudioLayoutOutcome(outcome.error());
}
void LiveClient::deleteStudioLayoutAsync(const DeleteStudioLayoutRequest& request, const DeleteStudioLayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteStudioLayout(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DeleteStudioLayoutOutcomeCallable LiveClient::deleteStudioLayoutCallable(const DeleteStudioLayoutRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteStudioLayoutOutcome()>>(
[this, request]()
{
return this->deleteStudioLayout(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeBoardEventsOutcome LiveClient::describeBoardEvents(const DescribeBoardEventsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3111,6 +3471,42 @@ LiveClient::DescribeCastersOutcomeCallable LiveClient::describeCastersCallable(c
return task->get_future();
}
LiveClient::DescribeDRMCertListOutcome LiveClient::describeDRMCertList(const DescribeDRMCertListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDRMCertListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDRMCertListOutcome(DescribeDRMCertListResult(outcome.result()));
else
return DescribeDRMCertListOutcome(outcome.error());
}
void LiveClient::describeDRMCertListAsync(const DescribeDRMCertListRequest& request, const DescribeDRMCertListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDRMCertList(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeDRMCertListOutcomeCallable LiveClient::describeDRMCertListCallable(const DescribeDRMCertListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDRMCertListOutcome()>>(
[this, request]()
{
return this->describeDRMCertList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeDomainUsageDataOutcome LiveClient::describeDomainUsageData(const DescribeDomainUsageDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4155,6 +4551,42 @@ LiveClient::DescribeLiveDomainSnapshotDataOutcomeCallable LiveClient::describeLi
return task->get_future();
}
LiveClient::DescribeLiveDomainStreamTranscodeDataOutcome LiveClient::describeLiveDomainStreamTranscodeData(const DescribeLiveDomainStreamTranscodeDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeLiveDomainStreamTranscodeDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeLiveDomainStreamTranscodeDataOutcome(DescribeLiveDomainStreamTranscodeDataResult(outcome.result()));
else
return DescribeLiveDomainStreamTranscodeDataOutcome(outcome.error());
}
void LiveClient::describeLiveDomainStreamTranscodeDataAsync(const DescribeLiveDomainStreamTranscodeDataRequest& request, const DescribeLiveDomainStreamTranscodeDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeLiveDomainStreamTranscodeData(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeLiveDomainStreamTranscodeDataOutcomeCallable LiveClient::describeLiveDomainStreamTranscodeDataCallable(const DescribeLiveDomainStreamTranscodeDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeLiveDomainStreamTranscodeDataOutcome()>>(
[this, request]()
{
return this->describeLiveDomainStreamTranscodeData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeLiveDomainTimeShiftDataOutcome LiveClient::describeLiveDomainTimeShiftData(const DescribeLiveDomainTimeShiftDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4515,6 +4947,42 @@ LiveClient::DescribeLiveRecordVodConfigsOutcomeCallable LiveClient::describeLive
return task->get_future();
}
LiveClient::DescribeLiveShiftConfigsOutcome LiveClient::describeLiveShiftConfigs(const DescribeLiveShiftConfigsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeLiveShiftConfigsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeLiveShiftConfigsOutcome(DescribeLiveShiftConfigsResult(outcome.result()));
else
return DescribeLiveShiftConfigsOutcome(outcome.error());
}
void LiveClient::describeLiveShiftConfigsAsync(const DescribeLiveShiftConfigsRequest& request, const DescribeLiveShiftConfigsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeLiveShiftConfigs(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeLiveShiftConfigsOutcomeCallable LiveClient::describeLiveShiftConfigsCallable(const DescribeLiveShiftConfigsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeLiveShiftConfigsOutcome()>>(
[this, request]()
{
return this->describeLiveShiftConfigs(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeLiveSnapshotConfigOutcome LiveClient::describeLiveSnapshotConfig(const DescribeLiveSnapshotConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5559,6 +6027,42 @@ LiveClient::DescribeRoomStatusOutcomeCallable LiveClient::describeRoomStatusCall
return task->get_future();
}
LiveClient::DescribeStudioLayoutsOutcome LiveClient::describeStudioLayouts(const DescribeStudioLayoutsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeStudioLayoutsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeStudioLayoutsOutcome(DescribeStudioLayoutsResult(outcome.result()));
else
return DescribeStudioLayoutsOutcome(outcome.error());
}
void LiveClient::describeStudioLayoutsAsync(const DescribeStudioLayoutsRequest& request, const DescribeStudioLayoutsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeStudioLayouts(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeStudioLayoutsOutcomeCallable LiveClient::describeStudioLayoutsCallable(const DescribeStudioLayoutsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeStudioLayoutsOutcome()>>(
[this, request]()
{
return this->describeStudioLayouts(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeUpBpsPeakDataOutcome LiveClient::describeUpBpsPeakData(const DescribeUpBpsPeakDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5739,6 +6243,42 @@ LiveClient::EditHtmlResourceOutcomeCallable LiveClient::editHtmlResourceCallable
return task->get_future();
}
LiveClient::EditPlaylistOutcome LiveClient::editPlaylist(const EditPlaylistRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return EditPlaylistOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return EditPlaylistOutcome(EditPlaylistResult(outcome.result()));
else
return EditPlaylistOutcome(outcome.error());
}
void LiveClient::editPlaylistAsync(const EditPlaylistRequest& request, const EditPlaylistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, editPlaylist(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::EditPlaylistOutcomeCallable LiveClient::editPlaylistCallable(const EditPlaylistRequest &request) const
{
auto task = std::make_shared<std::packaged_task<EditPlaylistOutcome()>>(
[this, request]()
{
return this->editPlaylist(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::EffectCasterUrgentOutcome LiveClient::effectCasterUrgent(const EffectCasterUrgentRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5919,6 +6459,78 @@ LiveClient::ForbidPushStreamOutcomeCallable LiveClient::forbidPushStreamCallable
return task->get_future();
}
LiveClient::GetMultiRateConfigOutcome LiveClient::getMultiRateConfig(const GetMultiRateConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetMultiRateConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetMultiRateConfigOutcome(GetMultiRateConfigResult(outcome.result()));
else
return GetMultiRateConfigOutcome(outcome.error());
}
void LiveClient::getMultiRateConfigAsync(const GetMultiRateConfigRequest& request, const GetMultiRateConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getMultiRateConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::GetMultiRateConfigOutcomeCallable LiveClient::getMultiRateConfigCallable(const GetMultiRateConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetMultiRateConfigOutcome()>>(
[this, request]()
{
return this->getMultiRateConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::GetMultiRateConfigListOutcome LiveClient::getMultiRateConfigList(const GetMultiRateConfigListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetMultiRateConfigListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetMultiRateConfigListOutcome(GetMultiRateConfigListResult(outcome.result()));
else
return GetMultiRateConfigListOutcome(outcome.error());
}
void LiveClient::getMultiRateConfigListAsync(const GetMultiRateConfigListRequest& request, const GetMultiRateConfigListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getMultiRateConfigList(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::GetMultiRateConfigListOutcomeCallable LiveClient::getMultiRateConfigListCallable(const GetMultiRateConfigListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetMultiRateConfigListOutcome()>>(
[this, request]()
{
return this->getMultiRateConfigList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::JoinBoardOutcome LiveClient::joinBoard(const JoinBoardRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6063,6 +6675,78 @@ LiveClient::ListLiveRealtimeLogDeliveryInfosOutcomeCallable LiveClient::listLive
return task->get_future();
}
LiveClient::ListPlaylistOutcome LiveClient::listPlaylist(const ListPlaylistRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListPlaylistOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListPlaylistOutcome(ListPlaylistResult(outcome.result()));
else
return ListPlaylistOutcome(outcome.error());
}
void LiveClient::listPlaylistAsync(const ListPlaylistRequest& request, const ListPlaylistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listPlaylist(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::ListPlaylistOutcomeCallable LiveClient::listPlaylistCallable(const ListPlaylistRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListPlaylistOutcome()>>(
[this, request]()
{
return this->listPlaylist(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::ListPlaylistItemsOutcome LiveClient::listPlaylistItems(const ListPlaylistItemsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListPlaylistItemsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListPlaylistItemsOutcome(ListPlaylistItemsResult(outcome.result()));
else
return ListPlaylistItemsOutcome(outcome.error());
}
void LiveClient::listPlaylistItemsAsync(const ListPlaylistItemsRequest& request, const ListPlaylistItemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listPlaylistItems(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::ListPlaylistItemsOutcomeCallable LiveClient::listPlaylistItemsCallable(const ListPlaylistItemsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListPlaylistItemsOutcome()>>(
[this, request]()
{
return this->listPlaylistItems(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::ModifyCasterComponentOutcome LiveClient::modifyCasterComponent(const ModifyCasterComponentRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6315,6 +6999,78 @@ LiveClient::ModifyLiveRealtimeLogDeliveryOutcomeCallable LiveClient::modifyLiveR
return task->get_future();
}
LiveClient::ModifyStudioLayoutOutcome LiveClient::modifyStudioLayout(const ModifyStudioLayoutRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyStudioLayoutOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyStudioLayoutOutcome(ModifyStudioLayoutResult(outcome.result()));
else
return ModifyStudioLayoutOutcome(outcome.error());
}
void LiveClient::modifyStudioLayoutAsync(const ModifyStudioLayoutRequest& request, const ModifyStudioLayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyStudioLayout(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::ModifyStudioLayoutOutcomeCallable LiveClient::modifyStudioLayoutCallable(const ModifyStudioLayoutRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyStudioLayoutOutcome()>>(
[this, request]()
{
return this->modifyStudioLayout(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::OpenLiveShiftOutcome LiveClient::openLiveShift(const OpenLiveShiftRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return OpenLiveShiftOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return OpenLiveShiftOutcome(OpenLiveShiftResult(outcome.result()));
else
return OpenLiveShiftOutcome(outcome.error());
}
void LiveClient::openLiveShiftAsync(const OpenLiveShiftRequest& request, const OpenLiveShiftAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, openLiveShift(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::OpenLiveShiftOutcomeCallable LiveClient::openLiveShiftCallable(const OpenLiveShiftRequest &request) const
{
auto task = std::make_shared<std::packaged_task<OpenLiveShiftOutcome()>>(
[this, request]()
{
return this->openLiveShift(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::RealTimeRecordCommandOutcome LiveClient::realTimeRecordCommand(const RealTimeRecordCommandRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -7035,6 +7791,42 @@ LiveClient::StartLiveIndexOutcomeCallable LiveClient::startLiveIndexCallable(con
return task->get_future();
}
LiveClient::StartPlaylistOutcome LiveClient::startPlaylist(const StartPlaylistRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StartPlaylistOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StartPlaylistOutcome(StartPlaylistResult(outcome.result()));
else
return StartPlaylistOutcome(outcome.error());
}
void LiveClient::startPlaylistAsync(const StartPlaylistRequest& request, const StartPlaylistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, startPlaylist(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::StartPlaylistOutcomeCallable LiveClient::startPlaylistCallable(const StartPlaylistRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StartPlaylistOutcome()>>(
[this, request]()
{
return this->startPlaylist(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::StopCasterOutcome LiveClient::stopCaster(const StopCasterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -7179,6 +7971,42 @@ LiveClient::StopLiveIndexOutcomeCallable LiveClient::stopLiveIndexCallable(const
return task->get_future();
}
LiveClient::StopPlaylistOutcome LiveClient::stopPlaylist(const StopPlaylistRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StopPlaylistOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StopPlaylistOutcome(StopPlaylistResult(outcome.result()));
else
return StopPlaylistOutcome(outcome.error());
}
void LiveClient::stopPlaylistAsync(const StopPlaylistRequest& request, const StopPlaylistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, stopPlaylist(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::StopPlaylistOutcomeCallable LiveClient::stopPlaylistCallable(const StopPlaylistRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StopPlaylistOutcome()>>(
[this, request]()
{
return this->stopPlaylist(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::TagLiveResourcesOutcome LiveClient::tagLiveResources(const TagLiveResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/AddDRMCertificateRequest.h>
using AlibabaCloud::Live::Model::AddDRMCertificateRequest;
AddDRMCertificateRequest::AddDRMCertificateRequest() :
RpcServiceRequest("live", "2016-11-01", "AddDRMCertificate")
{
setMethod(HttpRequest::Method::Post);
}
AddDRMCertificateRequest::~AddDRMCertificateRequest()
{}
std::string AddDRMCertificateRequest::getServCert()const
{
return servCert_;
}
void AddDRMCertificateRequest::setServCert(const std::string& servCert)
{
servCert_ = servCert;
setParameter("ServCert", servCert);
}
std::string AddDRMCertificateRequest::getDescription()const
{
return description_;
}
void AddDRMCertificateRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string AddDRMCertificateRequest::getPrivateKey()const
{
return privateKey_;
}
void AddDRMCertificateRequest::setPrivateKey(const std::string& privateKey)
{
privateKey_ = privateKey;
setParameter("PrivateKey", privateKey);
}
std::string AddDRMCertificateRequest::getCertName()const
{
return certName_;
}
void AddDRMCertificateRequest::setCertName(const std::string& certName)
{
certName_ = certName;
setParameter("CertName", certName);
}
long AddDRMCertificateRequest::getOwnerId()const
{
return ownerId_;
}
void AddDRMCertificateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddDRMCertificateRequest::getAsk()const
{
return ask_;
}
void AddDRMCertificateRequest::setAsk(const std::string& ask)
{
ask_ = ask;
setParameter("Ask", ask);
}
std::string AddDRMCertificateRequest::getPassphrase()const
{
return passphrase_;
}
void AddDRMCertificateRequest::setPassphrase(const std::string& passphrase)
{
passphrase_ = passphrase;
setParameter("Passphrase", passphrase);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/AddDRMCertificateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
AddDRMCertificateResult::AddDRMCertificateResult() :
ServiceResult()
{}
AddDRMCertificateResult::AddDRMCertificateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddDRMCertificateResult::~AddDRMCertificateResult()
{}
void AddDRMCertificateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["CertId"].isNull())
certId_ = value["CertId"].asString();
}
std::string AddDRMCertificateResult::getCertId()const
{
return certId_;
}

View File

@@ -27,28 +27,6 @@ AddLiveDetectNotifyConfigRequest::AddLiveDetectNotifyConfigRequest() :
AddLiveDetectNotifyConfigRequest::~AddLiveDetectNotifyConfigRequest()
{}
std::string AddLiveDetectNotifyConfigRequest::getDomainName()const
{
return domainName_;
}
void AddLiveDetectNotifyConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long AddLiveDetectNotifyConfigRequest::getOwnerId()const
{
return ownerId_;
}
void AddLiveDetectNotifyConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddLiveDetectNotifyConfigRequest::getSecurityToken()const
{
return securityToken_;
@@ -71,3 +49,25 @@ void AddLiveDetectNotifyConfigRequest::setNotifyUrl(const std::string& notifyUrl
setParameter("NotifyUrl", notifyUrl);
}
std::string AddLiveDetectNotifyConfigRequest::getDomainName()const
{
return domainName_;
}
void AddLiveDetectNotifyConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long AddLiveDetectNotifyConfigRequest::getOwnerId()const
{
return ownerId_;
}
void AddLiveDetectNotifyConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -27,28 +27,6 @@ AddLiveDomainMappingRequest::AddLiveDomainMappingRequest() :
AddLiveDomainMappingRequest::~AddLiveDomainMappingRequest()
{}
long AddLiveDomainMappingRequest::getOwnerId()const
{
return ownerId_;
}
void AddLiveDomainMappingRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddLiveDomainMappingRequest::getPullDomain()const
{
return pullDomain_;
}
void AddLiveDomainMappingRequest::setPullDomain(const std::string& pullDomain)
{
pullDomain_ = pullDomain;
setParameter("PullDomain", pullDomain);
}
std::string AddLiveDomainMappingRequest::getSecurityToken()const
{
return securityToken_;
@@ -71,3 +49,25 @@ void AddLiveDomainMappingRequest::setPushDomain(const std::string& pushDomain)
setParameter("PushDomain", pushDomain);
}
long AddLiveDomainMappingRequest::getOwnerId()const
{
return ownerId_;
}
void AddLiveDomainMappingRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddLiveDomainMappingRequest::getPullDomain()const
{
return pullDomain_;
}
void AddLiveDomainMappingRequest::setPullDomain(const std::string& pullDomain)
{
pullDomain_ = pullDomain;
setParameter("PullDomain", pullDomain);
}

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/AddMultiRateConfigRequest.h>
using AlibabaCloud::Live::Model::AddMultiRateConfigRequest;
AddMultiRateConfigRequest::AddMultiRateConfigRequest() :
RpcServiceRequest("live", "2016-11-01", "AddMultiRateConfig")
{
setMethod(HttpRequest::Method::Post);
}
AddMultiRateConfigRequest::~AddMultiRateConfigRequest()
{}
std::string AddMultiRateConfigRequest::getApp()const
{
return app_;
}
void AddMultiRateConfigRequest::setApp(const std::string& app)
{
app_ = app;
setParameter("App", app);
}
std::string AddMultiRateConfigRequest::getGroupId()const
{
return groupId_;
}
void AddMultiRateConfigRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string AddMultiRateConfigRequest::getTemplates()const
{
return templates_;
}
void AddMultiRateConfigRequest::setTemplates(const std::string& templates)
{
templates_ = templates;
setParameter("Templates", templates);
}
std::string AddMultiRateConfigRequest::getDomainName()const
{
return domainName_;
}
void AddMultiRateConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long AddMultiRateConfigRequest::getOwnerId()const
{
return ownerId_;
}
void AddMultiRateConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddMultiRateConfigRequest::getIsLazy()const
{
return isLazy_;
}
void AddMultiRateConfigRequest::setIsLazy(const std::string& isLazy)
{
isLazy_ = isLazy;
setParameter("IsLazy", isLazy);
}
std::string AddMultiRateConfigRequest::getAvFormat()const
{
return avFormat_;
}
void AddMultiRateConfigRequest::setAvFormat(const std::string& avFormat)
{
avFormat_ = avFormat;
setParameter("AvFormat", avFormat);
}
std::string AddMultiRateConfigRequest::getIsTimeAlign()const
{
return isTimeAlign_;
}
void AddMultiRateConfigRequest::setIsTimeAlign(const std::string& isTimeAlign)
{
isTimeAlign_ = isTimeAlign;
setParameter("IsTimeAlign", isTimeAlign);
}

View File

@@ -0,0 +1,97 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/AddMultiRateConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
AddMultiRateConfigResult::AddMultiRateConfigResult() :
ServiceResult()
{}
AddMultiRateConfigResult::AddMultiRateConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddMultiRateConfigResult::~AddMultiRateConfigResult()
{}
void AddMultiRateConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBodyNode = value["Body"]["FailedTemplates"];
for (auto valueBodyFailedTemplates : allBodyNode)
{
FailedTemplates bodyObject;
if(!valueBodyFailedTemplates["Template"].isNull())
bodyObject._template = valueBodyFailedTemplates["Template"].asString();
if(!valueBodyFailedTemplates["TemplateType"].isNull())
bodyObject.templateType = valueBodyFailedTemplates["TemplateType"].asString();
if(!valueBodyFailedTemplates["Height"].isNull())
bodyObject.height = std::stoi(valueBodyFailedTemplates["Height"].asString());
if(!valueBodyFailedTemplates["Width"].isNull())
bodyObject.width = std::stoi(valueBodyFailedTemplates["Width"].asString());
if(!valueBodyFailedTemplates["Fps"].isNull())
bodyObject.fps = std::stoi(valueBodyFailedTemplates["Fps"].asString());
if(!valueBodyFailedTemplates["Gop"].isNull())
bodyObject.gop = valueBodyFailedTemplates["Gop"].asString();
if(!valueBodyFailedTemplates["VideoBitrate"].isNull())
bodyObject.videoBitrate = std::stoi(valueBodyFailedTemplates["VideoBitrate"].asString());
if(!valueBodyFailedTemplates["Profile"].isNull())
bodyObject.profile = std::stoi(valueBodyFailedTemplates["Profile"].asString());
if(!valueBodyFailedTemplates["AudioProfile"].isNull())
bodyObject.audioProfile = valueBodyFailedTemplates["AudioProfile"].asString();
if(!valueBodyFailedTemplates["AudioCodec"].isNull())
bodyObject.audioCodec = valueBodyFailedTemplates["AudioCodec"].asString();
if(!valueBodyFailedTemplates["AudioRate"].isNull())
bodyObject.audioRate = std::stoi(valueBodyFailedTemplates["AudioRate"].asString());
if(!valueBodyFailedTemplates["AudioBitrate"].isNull())
bodyObject.audioBitrate = std::stoi(valueBodyFailedTemplates["AudioBitrate"].asString());
if(!valueBodyFailedTemplates["AudioChannelNum"].isNull())
bodyObject.audioChannelNum = std::stoi(valueBodyFailedTemplates["AudioChannelNum"].asString());
if(!valueBodyFailedTemplates["BandWidth"].isNull())
bodyObject.bandWidth = std::stoi(valueBodyFailedTemplates["BandWidth"].asString());
body_.push_back(bodyObject);
}
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
}
std::string AddMultiRateConfigResult::getMessage()const
{
return message_;
}
std::vector<AddMultiRateConfigResult::FailedTemplates> AddMultiRateConfigResult::getBody()const
{
return body_;
}
int AddMultiRateConfigResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/AddPlaylistItemsRequest.h>
using AlibabaCloud::Live::Model::AddPlaylistItemsRequest;
AddPlaylistItemsRequest::AddPlaylistItemsRequest() :
RpcServiceRequest("live", "2016-11-01", "AddPlaylistItems")
{
setMethod(HttpRequest::Method::Post);
}
AddPlaylistItemsRequest::~AddPlaylistItemsRequest()
{}
std::string AddPlaylistItemsRequest::getProgramItems()const
{
return programItems_;
}
void AddPlaylistItemsRequest::setProgramItems(const std::string& programItems)
{
programItems_ = programItems;
setParameter("ProgramItems", programItems);
}
std::string AddPlaylistItemsRequest::getProgramId()const
{
return programId_;
}
void AddPlaylistItemsRequest::setProgramId(const std::string& programId)
{
programId_ = programId;
setParameter("ProgramId", programId);
}
std::string AddPlaylistItemsRequest::getCasterId()const
{
return casterId_;
}
void AddPlaylistItemsRequest::setCasterId(const std::string& casterId)
{
casterId_ = casterId;
setParameter("CasterId", casterId);
}
long AddPlaylistItemsRequest::getOwnerId()const
{
return ownerId_;
}
void AddPlaylistItemsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddPlaylistItemsRequest::getProgramConfig()const
{
return programConfig_;
}
void AddPlaylistItemsRequest::setProgramConfig(const std::string& programConfig)
{
programConfig_ = programConfig;
setParameter("ProgramConfig", programConfig);
}

View File

@@ -0,0 +1,77 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/AddPlaylistItemsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
AddPlaylistItemsResult::AddPlaylistItemsResult() :
ServiceResult()
{}
AddPlaylistItemsResult::AddPlaylistItemsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddPlaylistItemsResult::~AddPlaylistItemsResult()
{}
void AddPlaylistItemsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto itemsNode = value["Items"];
auto allSuccessItemsNode = itemsNode["SuccessItems"]["SuccessItem"];
for (auto itemsNodeSuccessItemsSuccessItem : allSuccessItemsNode)
{
Items::SuccessItem successItemObject;
if(!itemsNodeSuccessItemsSuccessItem["ItemId"].isNull())
successItemObject.itemId = itemsNodeSuccessItemsSuccessItem["ItemId"].asString();
if(!itemsNodeSuccessItemsSuccessItem["ItemName"].isNull())
successItemObject.itemName = itemsNodeSuccessItemsSuccessItem["ItemName"].asString();
items_.successItems.push_back(successItemObject);
}
auto allFailedItemsNode = itemsNode["FailedItems"]["FailedItem"];
for (auto itemsNodeFailedItemsFailedItem : allFailedItemsNode)
{
Items::FailedItem failedItemObject;
if(!itemsNodeFailedItemsFailedItem["ItemId"].isNull())
failedItemObject.itemId = itemsNodeFailedItemsFailedItem["ItemId"].asString();
if(!itemsNodeFailedItemsFailedItem["ItemName"].isNull())
failedItemObject.itemName = itemsNodeFailedItemsFailedItem["ItemName"].asString();
items_.failedItems.push_back(failedItemObject);
}
if(!value["ProgramId"].isNull())
programId_ = value["ProgramId"].asString();
}
AddPlaylistItemsResult::Items AddPlaylistItemsResult::getItems()const
{
return items_;
}
std::string AddPlaylistItemsResult::getProgramId()const
{
return programId_;
}

View File

@@ -0,0 +1,128 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/AddStudioLayoutRequest.h>
using AlibabaCloud::Live::Model::AddStudioLayoutRequest;
AddStudioLayoutRequest::AddStudioLayoutRequest() :
RpcServiceRequest("live", "2016-11-01", "AddStudioLayout")
{
setMethod(HttpRequest::Method::Post);
}
AddStudioLayoutRequest::~AddStudioLayoutRequest()
{}
std::string AddStudioLayoutRequest::getScreenInputConfigList()const
{
return screenInputConfigList_;
}
void AddStudioLayoutRequest::setScreenInputConfigList(const std::string& screenInputConfigList)
{
screenInputConfigList_ = screenInputConfigList;
setParameter("ScreenInputConfigList", screenInputConfigList);
}
std::string AddStudioLayoutRequest::getLayoutType()const
{
return layoutType_;
}
void AddStudioLayoutRequest::setLayoutType(const std::string& layoutType)
{
layoutType_ = layoutType;
setParameter("LayoutType", layoutType);
}
std::string AddStudioLayoutRequest::getLayoutName()const
{
return layoutName_;
}
void AddStudioLayoutRequest::setLayoutName(const std::string& layoutName)
{
layoutName_ = layoutName;
setParameter("LayoutName", layoutName);
}
std::string AddStudioLayoutRequest::getLayerOrderConfigList()const
{
return layerOrderConfigList_;
}
void AddStudioLayoutRequest::setLayerOrderConfigList(const std::string& layerOrderConfigList)
{
layerOrderConfigList_ = layerOrderConfigList;
setParameter("LayerOrderConfigList", layerOrderConfigList);
}
std::string AddStudioLayoutRequest::getMediaInputConfigList()const
{
return mediaInputConfigList_;
}
void AddStudioLayoutRequest::setMediaInputConfigList(const std::string& mediaInputConfigList)
{
mediaInputConfigList_ = mediaInputConfigList;
setParameter("MediaInputConfigList", mediaInputConfigList);
}
std::string AddStudioLayoutRequest::getCasterId()const
{
return casterId_;
}
void AddStudioLayoutRequest::setCasterId(const std::string& casterId)
{
casterId_ = casterId;
setParameter("CasterId", casterId);
}
std::string AddStudioLayoutRequest::getBgImageConfig()const
{
return bgImageConfig_;
}
void AddStudioLayoutRequest::setBgImageConfig(const std::string& bgImageConfig)
{
bgImageConfig_ = bgImageConfig;
setParameter("BgImageConfig", bgImageConfig);
}
long AddStudioLayoutRequest::getOwnerId()const
{
return ownerId_;
}
void AddStudioLayoutRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddStudioLayoutRequest::getCommonConfig()const
{
return commonConfig_;
}
void AddStudioLayoutRequest::setCommonConfig(const std::string& commonConfig)
{
commonConfig_ = commonConfig;
setParameter("CommonConfig", commonConfig);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/AddStudioLayoutResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
AddStudioLayoutResult::AddStudioLayoutResult() :
ServiceResult()
{}
AddStudioLayoutResult::AddStudioLayoutResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddStudioLayoutResult::~AddStudioLayoutResult()
{}
void AddStudioLayoutResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["LayoutId"].isNull())
layoutId_ = value["LayoutId"].asString();
}
std::string AddStudioLayoutResult::getLayoutId()const
{
return layoutId_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/CheckServiceForRoleRequest.h>
using AlibabaCloud::Live::Model::CheckServiceForRoleRequest;
CheckServiceForRoleRequest::CheckServiceForRoleRequest() :
RpcServiceRequest("live", "2016-11-01", "CheckServiceForRole")
{
setMethod(HttpRequest::Method::Post);
}
CheckServiceForRoleRequest::~CheckServiceForRoleRequest()
{}
std::string CheckServiceForRoleRequest::getAccountId()const
{
return accountId_;
}
void CheckServiceForRoleRequest::setAccountId(const std::string& accountId)
{
accountId_ = accountId;
setParameter("AccountId", accountId);
}
std::string CheckServiceForRoleRequest::getSPIRegionId()const
{
return sPIRegionId_;
}
void CheckServiceForRoleRequest::setSPIRegionId(const std::string& sPIRegionId)
{
sPIRegionId_ = sPIRegionId;
setParameter("SPIRegionId", sPIRegionId);
}
std::string CheckServiceForRoleRequest::getRoleArn()const
{
return roleArn_;
}
void CheckServiceForRoleRequest::setRoleArn(const std::string& roleArn)
{
roleArn_ = roleArn;
setParameter("RoleArn", roleArn);
}
std::string CheckServiceForRoleRequest::getDeletionTaskId()const
{
return deletionTaskId_;
}
void CheckServiceForRoleRequest::setDeletionTaskId(const std::string& deletionTaskId)
{
deletionTaskId_ = deletionTaskId;
setParameter("DeletionTaskId", deletionTaskId);
}
std::string CheckServiceForRoleRequest::getServiceName()const
{
return serviceName_;
}
void CheckServiceForRoleRequest::setServiceName(const std::string& serviceName)
{
serviceName_ = serviceName;
setParameter("ServiceName", serviceName);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/CheckServiceForRoleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
CheckServiceForRoleResult::CheckServiceForRoleResult() :
ServiceResult()
{}
CheckServiceForRoleResult::CheckServiceForRoleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckServiceForRoleResult::~CheckServiceForRoleResult()
{}
void CheckServiceForRoleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Deletable"].isNull())
deletable_ = value["Deletable"].asString() == "true";
}
bool CheckServiceForRoleResult::getDeletable()const
{
return deletable_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/CloseLiveShiftRequest.h>
using AlibabaCloud::Live::Model::CloseLiveShiftRequest;
CloseLiveShiftRequest::CloseLiveShiftRequest() :
RpcServiceRequest("live", "2016-11-01", "CloseLiveShift")
{
setMethod(HttpRequest::Method::Post);
}
CloseLiveShiftRequest::~CloseLiveShiftRequest()
{}
std::string CloseLiveShiftRequest::getAppName()const
{
return appName_;
}
void CloseLiveShiftRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string CloseLiveShiftRequest::getStreamName()const
{
return streamName_;
}
void CloseLiveShiftRequest::setStreamName(const std::string& streamName)
{
streamName_ = streamName;
setParameter("StreamName", streamName);
}
std::string CloseLiveShiftRequest::getDomainName()const
{
return domainName_;
}
void CloseLiveShiftRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long CloseLiveShiftRequest::getOwnerId()const
{
return ownerId_;
}
void CloseLiveShiftRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View 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/CloseLiveShiftResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
CloseLiveShiftResult::CloseLiveShiftResult() :
ServiceResult()
{}
CloseLiveShiftResult::CloseLiveShiftResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CloseLiveShiftResult::~CloseLiveShiftResult()
{}
void CloseLiveShiftResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -49,14 +49,3 @@ void DeleteCasterRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteCasterRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteCasterRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}

View File

@@ -27,6 +27,17 @@ DeleteLiveDetectNotifyConfigRequest::DeleteLiveDetectNotifyConfigRequest() :
DeleteLiveDetectNotifyConfigRequest::~DeleteLiveDetectNotifyConfigRequest()
{}
std::string DeleteLiveDetectNotifyConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteLiveDetectNotifyConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DeleteLiveDetectNotifyConfigRequest::getDomainName()const
{
return domainName_;
@@ -49,14 +60,3 @@ void DeleteLiveDetectNotifyConfigRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteLiveDetectNotifyConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteLiveDetectNotifyConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}

View File

@@ -27,28 +27,6 @@ DeleteLiveDomainMappingRequest::DeleteLiveDomainMappingRequest() :
DeleteLiveDomainMappingRequest::~DeleteLiveDomainMappingRequest()
{}
long DeleteLiveDomainMappingRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteLiveDomainMappingRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteLiveDomainMappingRequest::getPullDomain()const
{
return pullDomain_;
}
void DeleteLiveDomainMappingRequest::setPullDomain(const std::string& pullDomain)
{
pullDomain_ = pullDomain;
setParameter("PullDomain", pullDomain);
}
std::string DeleteLiveDomainMappingRequest::getSecurityToken()const
{
return securityToken_;
@@ -71,3 +49,25 @@ void DeleteLiveDomainMappingRequest::setPushDomain(const std::string& pushDomain
setParameter("PushDomain", pushDomain);
}
long DeleteLiveDomainMappingRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteLiveDomainMappingRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteLiveDomainMappingRequest::getPullDomain()const
{
return pullDomain_;
}
void DeleteLiveDomainMappingRequest::setPullDomain(const std::string& pullDomain)
{
pullDomain_ = pullDomain;
setParameter("PullDomain", pullDomain);
}

View File

@@ -27,6 +27,17 @@ DeleteLiveRecordNotifyConfigRequest::DeleteLiveRecordNotifyConfigRequest() :
DeleteLiveRecordNotifyConfigRequest::~DeleteLiveRecordNotifyConfigRequest()
{}
std::string DeleteLiveRecordNotifyConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteLiveRecordNotifyConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DeleteLiveRecordNotifyConfigRequest::getDomainName()const
{
return domainName_;
@@ -49,14 +60,3 @@ void DeleteLiveRecordNotifyConfigRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteLiveRecordNotifyConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteLiveRecordNotifyConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}

View File

@@ -27,28 +27,6 @@ DeleteLiveSnapshotDetectPornConfigRequest::DeleteLiveSnapshotDetectPornConfigReq
DeleteLiveSnapshotDetectPornConfigRequest::~DeleteLiveSnapshotDetectPornConfigRequest()
{}
std::string DeleteLiveSnapshotDetectPornConfigRequest::getDomainName()const
{
return domainName_;
}
void DeleteLiveSnapshotDetectPornConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DeleteLiveSnapshotDetectPornConfigRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteLiveSnapshotDetectPornConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteLiveSnapshotDetectPornConfigRequest::getAppName()const
{
return appName_;
@@ -71,3 +49,25 @@ void DeleteLiveSnapshotDetectPornConfigRequest::setSecurityToken(const std::stri
setParameter("SecurityToken", securityToken);
}
std::string DeleteLiveSnapshotDetectPornConfigRequest::getDomainName()const
{
return domainName_;
}
void DeleteLiveSnapshotDetectPornConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DeleteLiveSnapshotDetectPornConfigRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteLiveSnapshotDetectPornConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DeleteMultiRateConfigRequest.h>
using AlibabaCloud::Live::Model::DeleteMultiRateConfigRequest;
DeleteMultiRateConfigRequest::DeleteMultiRateConfigRequest() :
RpcServiceRequest("live", "2016-11-01", "DeleteMultiRateConfig")
{
setMethod(HttpRequest::Method::Post);
}
DeleteMultiRateConfigRequest::~DeleteMultiRateConfigRequest()
{}
std::string DeleteMultiRateConfigRequest::getDeleteAll()const
{
return deleteAll_;
}
void DeleteMultiRateConfigRequest::setDeleteAll(const std::string& deleteAll)
{
deleteAll_ = deleteAll;
setParameter("DeleteAll", deleteAll);
}
std::string DeleteMultiRateConfigRequest::getApp()const
{
return app_;
}
void DeleteMultiRateConfigRequest::setApp(const std::string& app)
{
app_ = app;
setParameter("App", app);
}
std::string DeleteMultiRateConfigRequest::getGroupId()const
{
return groupId_;
}
void DeleteMultiRateConfigRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string DeleteMultiRateConfigRequest::getTemplates()const
{
return templates_;
}
void DeleteMultiRateConfigRequest::setTemplates(const std::string& templates)
{
templates_ = templates;
setParameter("Templates", templates);
}
std::string DeleteMultiRateConfigRequest::getDomainName()const
{
return domainName_;
}
void DeleteMultiRateConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DeleteMultiRateConfigRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteMultiRateConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DeleteMultiRateConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DeleteMultiRateConfigResult::DeleteMultiRateConfigResult() :
ServiceResult()
{}
DeleteMultiRateConfigResult::DeleteMultiRateConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteMultiRateConfigResult::~DeleteMultiRateConfigResult()
{}
void DeleteMultiRateConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
}
std::string DeleteMultiRateConfigResult::getMessage()const
{
return message_;
}
int DeleteMultiRateConfigResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DeletePlaylistItemsRequest.h>
using AlibabaCloud::Live::Model::DeletePlaylistItemsRequest;
DeletePlaylistItemsRequest::DeletePlaylistItemsRequest() :
RpcServiceRequest("live", "2016-11-01", "DeletePlaylistItems")
{
setMethod(HttpRequest::Method::Post);
}
DeletePlaylistItemsRequest::~DeletePlaylistItemsRequest()
{}
std::string DeletePlaylistItemsRequest::getProgramItemIds()const
{
return programItemIds_;
}
void DeletePlaylistItemsRequest::setProgramItemIds(const std::string& programItemIds)
{
programItemIds_ = programItemIds;
setParameter("ProgramItemIds", programItemIds);
}
std::string DeletePlaylistItemsRequest::getProgramId()const
{
return programId_;
}
void DeletePlaylistItemsRequest::setProgramId(const std::string& programId)
{
programId_ = programId;
setParameter("ProgramId", programId);
}
long DeletePlaylistItemsRequest::getOwnerId()const
{
return ownerId_;
}
void DeletePlaylistItemsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DeletePlaylistItemsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DeletePlaylistItemsResult::DeletePlaylistItemsResult() :
ServiceResult()
{}
DeletePlaylistItemsResult::DeletePlaylistItemsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeletePlaylistItemsResult::~DeletePlaylistItemsResult()
{}
void DeletePlaylistItemsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ProgramId"].isNull())
programId_ = value["ProgramId"].asString();
}
std::string DeletePlaylistItemsResult::getProgramId()const
{
return programId_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DeletePlaylistRequest.h>
using AlibabaCloud::Live::Model::DeletePlaylistRequest;
DeletePlaylistRequest::DeletePlaylistRequest() :
RpcServiceRequest("live", "2016-11-01", "DeletePlaylist")
{
setMethod(HttpRequest::Method::Post);
}
DeletePlaylistRequest::~DeletePlaylistRequest()
{}
std::string DeletePlaylistRequest::getProgramId()const
{
return programId_;
}
void DeletePlaylistRequest::setProgramId(const std::string& programId)
{
programId_ = programId;
setParameter("ProgramId", programId);
}
long DeletePlaylistRequest::getOwnerId()const
{
return ownerId_;
}
void DeletePlaylistRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DeletePlaylistResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DeletePlaylistResult::DeletePlaylistResult() :
ServiceResult()
{}
DeletePlaylistResult::DeletePlaylistResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeletePlaylistResult::~DeletePlaylistResult()
{}
void DeletePlaylistResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ProgramId"].isNull())
programId_ = value["ProgramId"].asString();
}
std::string DeletePlaylistResult::getProgramId()const
{
return programId_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DeleteStudioLayoutRequest.h>
using AlibabaCloud::Live::Model::DeleteStudioLayoutRequest;
DeleteStudioLayoutRequest::DeleteStudioLayoutRequest() :
RpcServiceRequest("live", "2016-11-01", "DeleteStudioLayout")
{
setMethod(HttpRequest::Method::Post);
}
DeleteStudioLayoutRequest::~DeleteStudioLayoutRequest()
{}
std::string DeleteStudioLayoutRequest::getLayoutId()const
{
return layoutId_;
}
void DeleteStudioLayoutRequest::setLayoutId(const std::string& layoutId)
{
layoutId_ = layoutId;
setParameter("LayoutId", layoutId);
}
std::string DeleteStudioLayoutRequest::getCasterId()const
{
return casterId_;
}
void DeleteStudioLayoutRequest::setCasterId(const std::string& casterId)
{
casterId_ = casterId;
setParameter("CasterId", casterId);
}
long DeleteStudioLayoutRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteStudioLayoutRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View 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/DeleteStudioLayoutResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DeleteStudioLayoutResult::DeleteStudioLayoutResult() :
ServiceResult()
{}
DeleteStudioLayoutResult::DeleteStudioLayoutResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteStudioLayoutResult::~DeleteStudioLayoutResult()
{}
void DeleteStudioLayoutResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DescribeDRMCertListRequest.h>
using AlibabaCloud::Live::Model::DescribeDRMCertListRequest;
DescribeDRMCertListRequest::DescribeDRMCertListRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeDRMCertList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDRMCertListRequest::~DescribeDRMCertListRequest()
{}
int DescribeDRMCertListRequest::getPageNum()const
{
return pageNum_;
}
void DescribeDRMCertListRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}
int DescribeDRMCertListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDRMCertListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
long DescribeDRMCertListRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDRMCertListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DescribeDRMCertListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeDRMCertListResult::DescribeDRMCertListResult() :
ServiceResult()
{}
DescribeDRMCertListResult::DescribeDRMCertListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDRMCertListResult::~DescribeDRMCertListResult()
{}
void DescribeDRMCertListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDRMCertInfoListListNode = value["DRMCertInfoListList"]["CertInfo"];
for (auto valueDRMCertInfoListListCertInfo : allDRMCertInfoListListNode)
{
CertInfo dRMCertInfoListListObject;
if(!valueDRMCertInfoListListCertInfo["CertId"].isNull())
dRMCertInfoListListObject.certId = valueDRMCertInfoListListCertInfo["CertId"].asString();
if(!valueDRMCertInfoListListCertInfo["CertName"].isNull())
dRMCertInfoListListObject.certName = valueDRMCertInfoListListCertInfo["CertName"].asString();
if(!valueDRMCertInfoListListCertInfo["ServCert"].isNull())
dRMCertInfoListListObject.servCert = valueDRMCertInfoListListCertInfo["ServCert"].asString();
if(!valueDRMCertInfoListListCertInfo["PrivateKey"].isNull())
dRMCertInfoListListObject.privateKey = valueDRMCertInfoListListCertInfo["PrivateKey"].asString();
if(!valueDRMCertInfoListListCertInfo["Passphrase"].isNull())
dRMCertInfoListListObject.passphrase = valueDRMCertInfoListListCertInfo["Passphrase"].asString();
if(!valueDRMCertInfoListListCertInfo["Ask"].isNull())
dRMCertInfoListListObject.ask = valueDRMCertInfoListListCertInfo["Ask"].asString();
if(!valueDRMCertInfoListListCertInfo["Description"].isNull())
dRMCertInfoListListObject.description = valueDRMCertInfoListListCertInfo["Description"].asString();
dRMCertInfoListList_.push_back(dRMCertInfoListListObject);
}
}
std::vector<DescribeDRMCertListResult::CertInfo> DescribeDRMCertListResult::getDRMCertInfoListList()const
{
return dRMCertInfoListList_;
}

View File

@@ -27,6 +27,17 @@ DescribeLiveDetectNotifyConfigRequest::DescribeLiveDetectNotifyConfigRequest() :
DescribeLiveDetectNotifyConfigRequest::~DescribeLiveDetectNotifyConfigRequest()
{}
std::string DescribeLiveDetectNotifyConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeLiveDetectNotifyConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeLiveDetectNotifyConfigRequest::getDomainName()const
{
return domainName_;
@@ -49,14 +60,3 @@ void DescribeLiveDetectNotifyConfigRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeLiveDetectNotifyConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeLiveDetectNotifyConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DescribeLiveDomainStreamTranscodeDataRequest.h>
using AlibabaCloud::Live::Model::DescribeLiveDomainStreamTranscodeDataRequest;
DescribeLiveDomainStreamTranscodeDataRequest::DescribeLiveDomainStreamTranscodeDataRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeLiveDomainStreamTranscodeData")
{
setMethod(HttpRequest::Method::Post);
}
DescribeLiveDomainStreamTranscodeDataRequest::~DescribeLiveDomainStreamTranscodeDataRequest()
{}
std::string DescribeLiveDomainStreamTranscodeDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeLiveDomainStreamTranscodeDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeLiveDomainStreamTranscodeDataRequest::getSplit()const
{
return split_;
}
void DescribeLiveDomainStreamTranscodeDataRequest::setSplit(const std::string& split)
{
split_ = split;
setParameter("Split", split);
}
std::string DescribeLiveDomainStreamTranscodeDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeLiveDomainStreamTranscodeDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeLiveDomainStreamTranscodeDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeLiveDomainStreamTranscodeDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeLiveDomainStreamTranscodeDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeLiveDomainStreamTranscodeDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DescribeLiveDomainStreamTranscodeDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveDomainStreamTranscodeDataResult::DescribeLiveDomainStreamTranscodeDataResult() :
ServiceResult()
{}
DescribeLiveDomainStreamTranscodeDataResult::DescribeLiveDomainStreamTranscodeDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveDomainStreamTranscodeDataResult::~DescribeLiveDomainStreamTranscodeDataResult()
{}
void DescribeLiveDomainStreamTranscodeDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTranscodeDataListNode = value["TranscodeDataList"]["TranscodeData"];
for (auto valueTranscodeDataListTranscodeData : allTranscodeDataListNode)
{
TranscodeData transcodeDataListObject;
if(!valueTranscodeDataListTranscodeData["TimeStamp"].isNull())
transcodeDataListObject.timeStamp = valueTranscodeDataListTranscodeData["TimeStamp"].asString();
if(!valueTranscodeDataListTranscodeData["Domain"].isNull())
transcodeDataListObject.domain = valueTranscodeDataListTranscodeData["Domain"].asString();
if(!valueTranscodeDataListTranscodeData["Region"].isNull())
transcodeDataListObject.region = valueTranscodeDataListTranscodeData["Region"].asString();
if(!valueTranscodeDataListTranscodeData["TanscodeType"].isNull())
transcodeDataListObject.tanscodeType = valueTranscodeDataListTranscodeData["TanscodeType"].asString();
if(!valueTranscodeDataListTranscodeData["Resolution"].isNull())
transcodeDataListObject.resolution = valueTranscodeDataListTranscodeData["Resolution"].asString();
if(!valueTranscodeDataListTranscodeData["Fps"].isNull())
transcodeDataListObject.fps = valueTranscodeDataListTranscodeData["Fps"].asString();
if(!valueTranscodeDataListTranscodeData["Duration"].isNull())
transcodeDataListObject.duration = std::stoi(valueTranscodeDataListTranscodeData["Duration"].asString());
transcodeDataList_.push_back(transcodeDataListObject);
}
}
std::vector<DescribeLiveDomainStreamTranscodeDataResult::TranscodeData> DescribeLiveDomainStreamTranscodeDataResult::getTranscodeDataList()const
{
return transcodeDataList_;
}

View File

@@ -27,6 +27,17 @@ DescribeLiveRecordNotifyConfigRequest::DescribeLiveRecordNotifyConfigRequest() :
DescribeLiveRecordNotifyConfigRequest::~DescribeLiveRecordNotifyConfigRequest()
{}
std::string DescribeLiveRecordNotifyConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeLiveRecordNotifyConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeLiveRecordNotifyConfigRequest::getDomainName()const
{
return domainName_;
@@ -49,14 +60,3 @@ void DescribeLiveRecordNotifyConfigRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeLiveRecordNotifyConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeLiveRecordNotifyConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DescribeLiveShiftConfigsRequest.h>
using AlibabaCloud::Live::Model::DescribeLiveShiftConfigsRequest;
DescribeLiveShiftConfigsRequest::DescribeLiveShiftConfigsRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeLiveShiftConfigs")
{
setMethod(HttpRequest::Method::Post);
}
DescribeLiveShiftConfigsRequest::~DescribeLiveShiftConfigsRequest()
{}
std::string DescribeLiveShiftConfigsRequest::getDomainName()const
{
return domainName_;
}
void DescribeLiveShiftConfigsRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeLiveShiftConfigsRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeLiveShiftConfigsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -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.
*/
#include <alibabacloud/live/model/DescribeLiveShiftConfigsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveShiftConfigsResult::DescribeLiveShiftConfigsResult() :
ServiceResult()
{}
DescribeLiveShiftConfigsResult::DescribeLiveShiftConfigsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveShiftConfigsResult::~DescribeLiveShiftConfigsResult()
{}
void DescribeLiveShiftConfigsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allContentNode = value["Content"]["Config"];
for (auto valueContentConfig : allContentNode)
{
Config contentObject;
if(!valueContentConfig["DomainName"].isNull())
contentObject.domainName = valueContentConfig["DomainName"].asString();
if(!valueContentConfig["AppName"].isNull())
contentObject.appName = valueContentConfig["AppName"].asString();
if(!valueContentConfig["StreamName"].isNull())
contentObject.streamName = valueContentConfig["StreamName"].asString();
if(!valueContentConfig["Vision"].isNull())
contentObject.vision = std::stoi(valueContentConfig["Vision"].asString());
content_.push_back(contentObject);
}
}
std::vector<DescribeLiveShiftConfigsResult::Config> DescribeLiveShiftConfigsResult::getContent()const
{
return content_;
}

View File

@@ -55,6 +55,8 @@ void DescribeLiveStreamsOnlineListResult::parse(const std::string &payload)
onlineInfoObject.publishUrl = valueOnlineInfoLiveStreamOnlineInfo["PublishUrl"].asString();
if(!valueOnlineInfoLiveStreamOnlineInfo["PublishDomain"].isNull())
onlineInfoObject.publishDomain = valueOnlineInfoLiveStreamOnlineInfo["PublishDomain"].asString();
if(!valueOnlineInfoLiveStreamOnlineInfo["StreamUrlArgs"].isNull())
onlineInfoObject.streamUrlArgs = valueOnlineInfoLiveStreamOnlineInfo["StreamUrlArgs"].asString();
if(!valueOnlineInfoLiveStreamOnlineInfo["PublishType"].isNull())
onlineInfoObject.publishType = valueOnlineInfoLiveStreamOnlineInfo["PublishType"].asString();
if(!valueOnlineInfoLiveStreamOnlineInfo["Transcoded"].isNull())

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DescribeStudioLayoutsRequest.h>
using AlibabaCloud::Live::Model::DescribeStudioLayoutsRequest;
DescribeStudioLayoutsRequest::DescribeStudioLayoutsRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeStudioLayouts")
{
setMethod(HttpRequest::Method::Post);
}
DescribeStudioLayoutsRequest::~DescribeStudioLayoutsRequest()
{}
std::string DescribeStudioLayoutsRequest::getLayoutId()const
{
return layoutId_;
}
void DescribeStudioLayoutsRequest::setLayoutId(const std::string& layoutId)
{
layoutId_ = layoutId;
setParameter("LayoutId", layoutId);
}
std::string DescribeStudioLayoutsRequest::getCasterId()const
{
return casterId_;
}
void DescribeStudioLayoutsRequest::setCasterId(const std::string& casterId)
{
casterId_ = casterId;
setParameter("CasterId", casterId);
}
long DescribeStudioLayoutsRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeStudioLayoutsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,141 @@
/*
* 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/DescribeStudioLayoutsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeStudioLayoutsResult::DescribeStudioLayoutsResult() :
ServiceResult()
{}
DescribeStudioLayoutsResult::DescribeStudioLayoutsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeStudioLayoutsResult::~DescribeStudioLayoutsResult()
{}
void DescribeStudioLayoutsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allStudioLayoutsNode = value["StudioLayouts"]["StudioLayout"];
for (auto valueStudioLayoutsStudioLayout : allStudioLayoutsNode)
{
StudioLayout studioLayoutsObject;
if(!valueStudioLayoutsStudioLayout["LayoutId"].isNull())
studioLayoutsObject.layoutId = valueStudioLayoutsStudioLayout["LayoutId"].asString();
if(!valueStudioLayoutsStudioLayout["LayoutName"].isNull())
studioLayoutsObject.layoutName = valueStudioLayoutsStudioLayout["LayoutName"].asString();
if(!valueStudioLayoutsStudioLayout["LayoutType"].isNull())
studioLayoutsObject.layoutType = valueStudioLayoutsStudioLayout["LayoutType"].asString();
auto allScreenInputConfigListNode = valueStudioLayoutsStudioLayout["ScreenInputConfigList"]["ScreenInputConfig"];
for (auto valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig : allScreenInputConfigListNode)
{
StudioLayout::ScreenInputConfig screenInputConfigListObject;
if(!valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["Id"].isNull())
screenInputConfigListObject.id = valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["Id"].asString();
if(!valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["Index"].isNull())
screenInputConfigListObject.index = std::stoi(valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["Index"].asString());
if(!valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["ChannelId"].isNull())
screenInputConfigListObject.channelId = valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["ChannelId"].asString();
if(!valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["VideoResourceId"].isNull())
screenInputConfigListObject.videoResourceId = valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["VideoResourceId"].asString();
if(!valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["Color"].isNull())
screenInputConfigListObject.color = valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["Color"].asString();
if(!valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["PositionX"].isNull())
screenInputConfigListObject.positionX = valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["PositionX"].asString();
if(!valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["PositionY"].isNull())
screenInputConfigListObject.positionY = valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["PositionY"].asString();
if(!valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["HeightNormalized"].isNull())
screenInputConfigListObject.heightNormalized = std::stof(valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["HeightNormalized"].asString());
if(!valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["PortraitType"].isNull())
screenInputConfigListObject.portraitType = std::stoi(valueStudioLayoutsStudioLayoutScreenInputConfigListScreenInputConfig["PortraitType"].asString());
studioLayoutsObject.screenInputConfigList.push_back(screenInputConfigListObject);
}
auto allMediaInputConfigListNode = valueStudioLayoutsStudioLayout["MediaInputConfigList"]["MediaInputConfig"];
for (auto valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig : allMediaInputConfigListNode)
{
StudioLayout::MediaInputConfig mediaInputConfigListObject;
if(!valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["Id"].isNull())
mediaInputConfigListObject.id = valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["Id"].asString();
if(!valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["Index"].isNull())
mediaInputConfigListObject.index = std::stoi(valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["Index"].asString());
if(!valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["ChannelId"].isNull())
mediaInputConfigListObject.channelId = valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["ChannelId"].asString();
if(!valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["VideoResourceId"].isNull())
mediaInputConfigListObject.videoResourceId = valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["VideoResourceId"].asString();
if(!valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["ImageMaterialId"].isNull())
mediaInputConfigListObject.imageMaterialId = valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["ImageMaterialId"].asString();
if(!valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["FillMode"].isNull())
mediaInputConfigListObject.fillMode = valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["FillMode"].asString();
if(!valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["PositionRefer"].isNull())
mediaInputConfigListObject.positionRefer = valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["PositionRefer"].asString();
if(!valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["WidthNormalized"].isNull())
mediaInputConfigListObject.widthNormalized = std::stof(valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["WidthNormalized"].asString());
if(!valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["HeightNormalized"].isNull())
mediaInputConfigListObject.heightNormalized = std::stof(valueStudioLayoutsStudioLayoutMediaInputConfigListMediaInputConfig["HeightNormalized"].asString());
auto allPositionNormalized = value["PositionNormalized"]["Position"];
for (auto value : allPositionNormalized)
mediaInputConfigListObject.positionNormalized.push_back(value.asString());
studioLayoutsObject.mediaInputConfigList.push_back(mediaInputConfigListObject);
}
auto allLayerOrderConfigListNode = valueStudioLayoutsStudioLayout["LayerOrderConfigList"]["LayerOrderConfig"];
for (auto valueStudioLayoutsStudioLayoutLayerOrderConfigListLayerOrderConfig : allLayerOrderConfigListNode)
{
StudioLayout::LayerOrderConfig layerOrderConfigListObject;
if(!valueStudioLayoutsStudioLayoutLayerOrderConfigListLayerOrderConfig["Id"].isNull())
layerOrderConfigListObject.id = valueStudioLayoutsStudioLayoutLayerOrderConfigListLayerOrderConfig["Id"].asString();
if(!valueStudioLayoutsStudioLayoutLayerOrderConfigListLayerOrderConfig["Type"].isNull())
layerOrderConfigListObject.type = valueStudioLayoutsStudioLayoutLayerOrderConfigListLayerOrderConfig["Type"].asString();
studioLayoutsObject.layerOrderConfigList.push_back(layerOrderConfigListObject);
}
auto commonConfigNode = value["CommonConfig"];
if(!commonConfigNode["VideoResourceId"].isNull())
studioLayoutsObject.commonConfig.videoResourceId = commonConfigNode["VideoResourceId"].asString();
if(!commonConfigNode["ChannelId"].isNull())
studioLayoutsObject.commonConfig.channelId = commonConfigNode["ChannelId"].asString();
auto bgImageConfigNode = value["BgImageConfig"];
if(!bgImageConfigNode["Id"].isNull())
studioLayoutsObject.bgImageConfig.id = bgImageConfigNode["Id"].asString();
if(!bgImageConfigNode["MaterialId"].isNull())
studioLayoutsObject.bgImageConfig.materialId = bgImageConfigNode["MaterialId"].asString();
if(!bgImageConfigNode["ImageUrl"].isNull())
studioLayoutsObject.bgImageConfig.imageUrl = bgImageConfigNode["ImageUrl"].asString();
studioLayouts_.push_back(studioLayoutsObject);
}
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
}
std::vector<DescribeStudioLayoutsResult::StudioLayout> DescribeStudioLayoutsResult::getStudioLayouts()const
{
return studioLayouts_;
}
int DescribeStudioLayoutsResult::getTotal()const
{
return total_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/EditPlaylistRequest.h>
using AlibabaCloud::Live::Model::EditPlaylistRequest;
EditPlaylistRequest::EditPlaylistRequest() :
RpcServiceRequest("live", "2016-11-01", "EditPlaylist")
{
setMethod(HttpRequest::Method::Post);
}
EditPlaylistRequest::~EditPlaylistRequest()
{}
std::string EditPlaylistRequest::getProgramItems()const
{
return programItems_;
}
void EditPlaylistRequest::setProgramItems(const std::string& programItems)
{
programItems_ = programItems;
setParameter("ProgramItems", programItems);
}
std::string EditPlaylistRequest::getProgramId()const
{
return programId_;
}
void EditPlaylistRequest::setProgramId(const std::string& programId)
{
programId_ = programId;
setParameter("ProgramId", programId);
}
long EditPlaylistRequest::getOwnerId()const
{
return ownerId_;
}
void EditPlaylistRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string EditPlaylistRequest::getProgramConfig()const
{
return programConfig_;
}
void EditPlaylistRequest::setProgramConfig(const std::string& programConfig)
{
programConfig_ = programConfig;
setParameter("ProgramConfig", programConfig);
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/EditPlaylistResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
EditPlaylistResult::EditPlaylistResult() :
ServiceResult()
{}
EditPlaylistResult::EditPlaylistResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EditPlaylistResult::~EditPlaylistResult()
{}
void EditPlaylistResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto itemsNode = value["Items"];
auto allSuccessItemsNode = itemsNode["SuccessItems"]["SuccessItem"];
for (auto itemsNodeSuccessItemsSuccessItem : allSuccessItemsNode)
{
Items::SuccessItem successItemObject;
if(!itemsNodeSuccessItemsSuccessItem["ItemId"].isNull())
successItemObject.itemId = itemsNodeSuccessItemsSuccessItem["ItemId"].asString();
if(!itemsNodeSuccessItemsSuccessItem["ItemName"].isNull())
successItemObject.itemName = itemsNodeSuccessItemsSuccessItem["ItemName"].asString();
items_.successItems.push_back(successItemObject);
}
auto allFailedItemsNode = itemsNode["FailedItems"]["FailedItem"];
for (auto itemsNodeFailedItemsFailedItem : allFailedItemsNode)
{
Items::FailedItem failedItemObject;
if(!itemsNodeFailedItemsFailedItem["ItemId"].isNull())
failedItemObject.itemId = itemsNodeFailedItemsFailedItem["ItemId"].asString();
if(!itemsNodeFailedItemsFailedItem["ItemName"].isNull())
failedItemObject.itemName = itemsNodeFailedItemsFailedItem["ItemName"].asString();
items_.failedItems.push_back(failedItemObject);
}
if(!value["ProgramId"].isNull())
programId_ = value["ProgramId"].asString();
if(!value["CasterId"].isNull())
casterId_ = value["CasterId"].asString();
}
EditPlaylistResult::Items EditPlaylistResult::getItems()const
{
return items_;
}
std::string EditPlaylistResult::getProgramId()const
{
return programId_;
}
std::string EditPlaylistResult::getCasterId()const
{
return casterId_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/GetMultiRateConfigListRequest.h>
using AlibabaCloud::Live::Model::GetMultiRateConfigListRequest;
GetMultiRateConfigListRequest::GetMultiRateConfigListRequest() :
RpcServiceRequest("live", "2016-11-01", "GetMultiRateConfigList")
{
setMethod(HttpRequest::Method::Post);
}
GetMultiRateConfigListRequest::~GetMultiRateConfigListRequest()
{}
std::string GetMultiRateConfigListRequest::getDomainName()const
{
return domainName_;
}
void GetMultiRateConfigListRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long GetMultiRateConfigListRequest::getOwnerId()const
{
return ownerId_;
}
void GetMultiRateConfigListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,77 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/GetMultiRateConfigListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
GetMultiRateConfigListResult::GetMultiRateConfigListResult() :
ServiceResult()
{}
GetMultiRateConfigListResult::GetMultiRateConfigListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMultiRateConfigListResult::~GetMultiRateConfigListResult()
{}
void GetMultiRateConfigListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGroupInfoNode = value["GroupInfo"]["Info"];
for (auto valueGroupInfoInfo : allGroupInfoNode)
{
Info groupInfoObject;
if(!valueGroupInfoInfo["App"].isNull())
groupInfoObject.app = valueGroupInfoInfo["App"].asString();
if(!valueGroupInfoInfo["AvFormat"].isNull())
groupInfoObject.avFormat = valueGroupInfoInfo["AvFormat"].asString();
if(!valueGroupInfoInfo["GroupId"].isNull())
groupInfoObject.groupId = valueGroupInfoInfo["GroupId"].asString();
if(!valueGroupInfoInfo["Count"].isNull())
groupInfoObject.count = std::stoi(valueGroupInfoInfo["Count"].asString());
groupInfo_.push_back(groupInfoObject);
}
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
}
std::string GetMultiRateConfigListResult::getMessage()const
{
return message_;
}
std::vector<GetMultiRateConfigListResult::Info> GetMultiRateConfigListResult::getGroupInfo()const
{
return groupInfo_;
}
int GetMultiRateConfigListResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/GetMultiRateConfigRequest.h>
using AlibabaCloud::Live::Model::GetMultiRateConfigRequest;
GetMultiRateConfigRequest::GetMultiRateConfigRequest() :
RpcServiceRequest("live", "2016-11-01", "GetMultiRateConfig")
{
setMethod(HttpRequest::Method::Post);
}
GetMultiRateConfigRequest::~GetMultiRateConfigRequest()
{}
std::string GetMultiRateConfigRequest::getApp()const
{
return app_;
}
void GetMultiRateConfigRequest::setApp(const std::string& app)
{
app_ = app;
setParameter("App", app);
}
std::string GetMultiRateConfigRequest::getGroupId()const
{
return groupId_;
}
void GetMultiRateConfigRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string GetMultiRateConfigRequest::getDomainName()const
{
return domainName_;
}
void GetMultiRateConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long GetMultiRateConfigRequest::getOwnerId()const
{
return ownerId_;
}
void GetMultiRateConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,146 @@
/*
* 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/GetMultiRateConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
GetMultiRateConfigResult::GetMultiRateConfigResult() :
ServiceResult()
{}
GetMultiRateConfigResult::GetMultiRateConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMultiRateConfigResult::~GetMultiRateConfigResult()
{}
void GetMultiRateConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTemplatesInfoNode = value["TemplatesInfo"]["Detail"];
for (auto valueTemplatesInfoDetail : allTemplatesInfoNode)
{
Detail templatesInfoObject;
if(!valueTemplatesInfoDetail["Template"].isNull())
templatesInfoObject._template = valueTemplatesInfoDetail["Template"].asString();
if(!valueTemplatesInfoDetail["TemplateType"].isNull())
templatesInfoObject.templateType = valueTemplatesInfoDetail["TemplateType"].asString();
if(!valueTemplatesInfoDetail["Height"].isNull())
templatesInfoObject.height = std::stoi(valueTemplatesInfoDetail["Height"].asString());
if(!valueTemplatesInfoDetail["Width"].isNull())
templatesInfoObject.width = std::stoi(valueTemplatesInfoDetail["Width"].asString());
if(!valueTemplatesInfoDetail["Fps"].isNull())
templatesInfoObject.fps = std::stoi(valueTemplatesInfoDetail["Fps"].asString());
if(!valueTemplatesInfoDetail["Gop"].isNull())
templatesInfoObject.gop = valueTemplatesInfoDetail["Gop"].asString();
if(!valueTemplatesInfoDetail["VideoBitrate"].isNull())
templatesInfoObject.videoBitrate = std::stoi(valueTemplatesInfoDetail["VideoBitrate"].asString());
if(!valueTemplatesInfoDetail["Profile"].isNull())
templatesInfoObject.profile = std::stoi(valueTemplatesInfoDetail["Profile"].asString());
if(!valueTemplatesInfoDetail["AudioProfile"].isNull())
templatesInfoObject.audioProfile = valueTemplatesInfoDetail["AudioProfile"].asString();
if(!valueTemplatesInfoDetail["AudioCodec"].isNull())
templatesInfoObject.audioCodec = valueTemplatesInfoDetail["AudioCodec"].asString();
if(!valueTemplatesInfoDetail["AudioRate"].isNull())
templatesInfoObject.audioRate = std::stoi(valueTemplatesInfoDetail["AudioRate"].asString());
if(!valueTemplatesInfoDetail["AudioBitrate"].isNull())
templatesInfoObject.audioBitrate = std::stoi(valueTemplatesInfoDetail["AudioBitrate"].asString());
if(!valueTemplatesInfoDetail["AudioChannelNum"].isNull())
templatesInfoObject.audioChannelNum = std::stoi(valueTemplatesInfoDetail["AudioChannelNum"].asString());
if(!valueTemplatesInfoDetail["BandWidth"].isNull())
templatesInfoObject.bandWidth = std::stoi(valueTemplatesInfoDetail["BandWidth"].asString());
templatesInfo_.push_back(templatesInfoObject);
}
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Domain"].isNull())
domain_ = value["Domain"].asString();
if(!value["App"].isNull())
app_ = value["App"].asString();
if(!value["Stream"].isNull())
stream_ = value["Stream"].asString();
if(!value["AvFormat"].isNull())
avFormat_ = value["AvFormat"].asString();
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
if(!value["IsLazy"].isNull())
isLazy_ = value["IsLazy"].asString();
if(!value["IsTimeAlign"].isNull())
isTimeAlign_ = value["IsTimeAlign"].asString();
}
std::string GetMultiRateConfigResult::getApp()const
{
return app_;
}
std::string GetMultiRateConfigResult::getMessage()const
{
return message_;
}
std::string GetMultiRateConfigResult::getIsLazy()const
{
return isLazy_;
}
std::string GetMultiRateConfigResult::getIsTimeAlign()const
{
return isTimeAlign_;
}
std::string GetMultiRateConfigResult::getStream()const
{
return stream_;
}
std::string GetMultiRateConfigResult::getDomain()const
{
return domain_;
}
std::string GetMultiRateConfigResult::getAvFormat()const
{
return avFormat_;
}
std::vector<GetMultiRateConfigResult::Detail> GetMultiRateConfigResult::getTemplatesInfo()const
{
return templatesInfo_;
}
int GetMultiRateConfigResult::getCode()const
{
return code_;
}
std::string GetMultiRateConfigResult::getGroupId()const
{
return groupId_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/ListPlaylistItemsRequest.h>
using AlibabaCloud::Live::Model::ListPlaylistItemsRequest;
ListPlaylistItemsRequest::ListPlaylistItemsRequest() :
RpcServiceRequest("live", "2016-11-01", "ListPlaylistItems")
{
setMethod(HttpRequest::Method::Post);
}
ListPlaylistItemsRequest::~ListPlaylistItemsRequest()
{}
std::string ListPlaylistItemsRequest::getProgramItemIds()const
{
return programItemIds_;
}
void ListPlaylistItemsRequest::setProgramItemIds(const std::string& programItemIds)
{
programItemIds_ = programItemIds;
setParameter("ProgramItemIds", programItemIds);
}
std::string ListPlaylistItemsRequest::getProgramId()const
{
return programId_;
}
void ListPlaylistItemsRequest::setProgramId(const std::string& programId)
{
programId_ = programId;
setParameter("ProgramId", programId);
}
long ListPlaylistItemsRequest::getOwnerId()const
{
return ownerId_;
}
void ListPlaylistItemsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,74 @@
/*
* 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/ListPlaylistItemsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
ListPlaylistItemsResult::ListPlaylistItemsResult() :
ServiceResult()
{}
ListPlaylistItemsResult::ListPlaylistItemsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPlaylistItemsResult::~ListPlaylistItemsResult()
{}
void ListPlaylistItemsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allProgramItemsNode = value["ProgramItems"]["ProgramItem"];
for (auto valueProgramItemsProgramItem : allProgramItemsNode)
{
ProgramItem programItemsObject;
if(!valueProgramItemsProgramItem["ProgramId"].isNull())
programItemsObject.programId = valueProgramItemsProgramItem["ProgramId"].asString();
if(!valueProgramItemsProgramItem["ProgramItemId"].isNull())
programItemsObject.programItemId = valueProgramItemsProgramItem["ProgramItemId"].asString();
if(!valueProgramItemsProgramItem["ProgramItemName"].isNull())
programItemsObject.programItemName = valueProgramItemsProgramItem["ProgramItemName"].asString();
if(!valueProgramItemsProgramItem["ResourceType"].isNull())
programItemsObject.resourceType = valueProgramItemsProgramItem["ResourceType"].asString();
if(!valueProgramItemsProgramItem["ResourceValue"].isNull())
programItemsObject.resourceValue = valueProgramItemsProgramItem["ResourceValue"].asString();
if(!valueProgramItemsProgramItem["Index"].isNull())
programItemsObject.index = std::stoi(valueProgramItemsProgramItem["Index"].asString());
programItems_.push_back(programItemsObject);
}
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
}
std::vector<ListPlaylistItemsResult::ProgramItem> ListPlaylistItemsResult::getProgramItems()const
{
return programItems_;
}
int ListPlaylistItemsResult::getTotal()const
{
return total_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/ListPlaylistRequest.h>
using AlibabaCloud::Live::Model::ListPlaylistRequest;
ListPlaylistRequest::ListPlaylistRequest() :
RpcServiceRequest("live", "2016-11-01", "ListPlaylist")
{
setMethod(HttpRequest::Method::Post);
}
ListPlaylistRequest::~ListPlaylistRequest()
{}
int ListPlaylistRequest::getPageSize()const
{
return pageSize_;
}
void ListPlaylistRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListPlaylistRequest::getProgramId()const
{
return programId_;
}
void ListPlaylistRequest::setProgramId(const std::string& programId)
{
programId_ = programId;
setParameter("ProgramId", programId);
}
long ListPlaylistRequest::getOwnerId()const
{
return ownerId_;
}
void ListPlaylistRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int ListPlaylistRequest::getPage()const
{
return page_;
}
void ListPlaylistRequest::setPage(int page)
{
page_ = page;
setParameter("Page", std::to_string(page));
}

View File

@@ -0,0 +1,74 @@
/*
* 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/ListPlaylistResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
ListPlaylistResult::ListPlaylistResult() :
ServiceResult()
{}
ListPlaylistResult::ListPlaylistResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPlaylistResult::~ListPlaylistResult()
{}
void ListPlaylistResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allProgramListNode = value["ProgramList"]["ProgramInfo"];
for (auto valueProgramListProgramInfo : allProgramListNode)
{
ProgramInfo programListObject;
if(!valueProgramListProgramInfo["ProgramId"].isNull())
programListObject.programId = valueProgramListProgramInfo["ProgramId"].asString();
if(!valueProgramListProgramInfo["ProgramName"].isNull())
programListObject.programName = valueProgramListProgramInfo["ProgramName"].asString();
if(!valueProgramListProgramInfo["CasterId"].isNull())
programListObject.casterId = valueProgramListProgramInfo["CasterId"].asString();
if(!valueProgramListProgramInfo["DomainName"].isNull())
programListObject.domainName = valueProgramListProgramInfo["DomainName"].asString();
if(!valueProgramListProgramInfo["RepeatNumber"].isNull())
programListObject.repeatNumber = std::stoi(valueProgramListProgramInfo["RepeatNumber"].asString());
if(!valueProgramListProgramInfo["Status"].isNull())
programListObject.status = std::stoi(valueProgramListProgramInfo["Status"].asString());
programList_.push_back(programListObject);
}
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
}
std::vector<ListPlaylistResult::ProgramInfo> ListPlaylistResult::getProgramList()const
{
return programList_;
}
int ListPlaylistResult::getTotal()const
{
return total_;
}

View File

@@ -0,0 +1,128 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/ModifyStudioLayoutRequest.h>
using AlibabaCloud::Live::Model::ModifyStudioLayoutRequest;
ModifyStudioLayoutRequest::ModifyStudioLayoutRequest() :
RpcServiceRequest("live", "2016-11-01", "ModifyStudioLayout")
{
setMethod(HttpRequest::Method::Post);
}
ModifyStudioLayoutRequest::~ModifyStudioLayoutRequest()
{}
std::string ModifyStudioLayoutRequest::getScreenInputConfigList()const
{
return screenInputConfigList_;
}
void ModifyStudioLayoutRequest::setScreenInputConfigList(const std::string& screenInputConfigList)
{
screenInputConfigList_ = screenInputConfigList;
setParameter("ScreenInputConfigList", screenInputConfigList);
}
std::string ModifyStudioLayoutRequest::getLayoutId()const
{
return layoutId_;
}
void ModifyStudioLayoutRequest::setLayoutId(const std::string& layoutId)
{
layoutId_ = layoutId;
setParameter("LayoutId", layoutId);
}
std::string ModifyStudioLayoutRequest::getLayoutName()const
{
return layoutName_;
}
void ModifyStudioLayoutRequest::setLayoutName(const std::string& layoutName)
{
layoutName_ = layoutName;
setParameter("LayoutName", layoutName);
}
std::string ModifyStudioLayoutRequest::getLayerOrderConfigList()const
{
return layerOrderConfigList_;
}
void ModifyStudioLayoutRequest::setLayerOrderConfigList(const std::string& layerOrderConfigList)
{
layerOrderConfigList_ = layerOrderConfigList;
setParameter("LayerOrderConfigList", layerOrderConfigList);
}
std::string ModifyStudioLayoutRequest::getMediaInputConfigList()const
{
return mediaInputConfigList_;
}
void ModifyStudioLayoutRequest::setMediaInputConfigList(const std::string& mediaInputConfigList)
{
mediaInputConfigList_ = mediaInputConfigList;
setParameter("MediaInputConfigList", mediaInputConfigList);
}
std::string ModifyStudioLayoutRequest::getCasterId()const
{
return casterId_;
}
void ModifyStudioLayoutRequest::setCasterId(const std::string& casterId)
{
casterId_ = casterId;
setParameter("CasterId", casterId);
}
std::string ModifyStudioLayoutRequest::getBgImageConfig()const
{
return bgImageConfig_;
}
void ModifyStudioLayoutRequest::setBgImageConfig(const std::string& bgImageConfig)
{
bgImageConfig_ = bgImageConfig;
setParameter("BgImageConfig", bgImageConfig);
}
long ModifyStudioLayoutRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyStudioLayoutRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ModifyStudioLayoutRequest::getCommonConfig()const
{
return commonConfig_;
}
void ModifyStudioLayoutRequest::setCommonConfig(const std::string& commonConfig)
{
commonConfig_ = commonConfig;
setParameter("CommonConfig", commonConfig);
}

View 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/ModifyStudioLayoutResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
ModifyStudioLayoutResult::ModifyStudioLayoutResult() :
ServiceResult()
{}
ModifyStudioLayoutResult::ModifyStudioLayoutResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyStudioLayoutResult::~ModifyStudioLayoutResult()
{}
void ModifyStudioLayoutResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/OpenLiveShiftRequest.h>
using AlibabaCloud::Live::Model::OpenLiveShiftRequest;
OpenLiveShiftRequest::OpenLiveShiftRequest() :
RpcServiceRequest("live", "2016-11-01", "OpenLiveShift")
{
setMethod(HttpRequest::Method::Post);
}
OpenLiveShiftRequest::~OpenLiveShiftRequest()
{}
int OpenLiveShiftRequest::getDuration()const
{
return duration_;
}
void OpenLiveShiftRequest::setDuration(int duration)
{
duration_ = duration;
setParameter("Duration", std::to_string(duration));
}
std::string OpenLiveShiftRequest::getAppName()const
{
return appName_;
}
void OpenLiveShiftRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string OpenLiveShiftRequest::getStreamName()const
{
return streamName_;
}
void OpenLiveShiftRequest::setStreamName(const std::string& streamName)
{
streamName_ = streamName;
setParameter("StreamName", streamName);
}
std::string OpenLiveShiftRequest::getDomainName()const
{
return domainName_;
}
void OpenLiveShiftRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long OpenLiveShiftRequest::getOwnerId()const
{
return ownerId_;
}
void OpenLiveShiftRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int OpenLiveShiftRequest::getVision()const
{
return vision_;
}
void OpenLiveShiftRequest::setVision(int vision)
{
vision_ = vision;
setParameter("Vision", std::to_string(vision));
}

View 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/OpenLiveShiftResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
OpenLiveShiftResult::OpenLiveShiftResult() :
ServiceResult()
{}
OpenLiveShiftResult::OpenLiveShiftResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
OpenLiveShiftResult::~OpenLiveShiftResult()
{}
void OpenLiveShiftResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/StartPlaylistRequest.h>
using AlibabaCloud::Live::Model::StartPlaylistRequest;
StartPlaylistRequest::StartPlaylistRequest() :
RpcServiceRequest("live", "2016-11-01", "StartPlaylist")
{
setMethod(HttpRequest::Method::Post);
}
StartPlaylistRequest::~StartPlaylistRequest()
{}
std::string StartPlaylistRequest::getResumeMode()const
{
return resumeMode_;
}
void StartPlaylistRequest::setResumeMode(const std::string& resumeMode)
{
resumeMode_ = resumeMode;
setParameter("ResumeMode", resumeMode);
}
std::string StartPlaylistRequest::getStartItemId()const
{
return startItemId_;
}
void StartPlaylistRequest::setStartItemId(const std::string& startItemId)
{
startItemId_ = startItemId;
setParameter("StartItemId", startItemId);
}
std::string StartPlaylistRequest::getProgramId()const
{
return programId_;
}
void StartPlaylistRequest::setProgramId(const std::string& programId)
{
programId_ = programId;
setParameter("ProgramId", programId);
}
int StartPlaylistRequest::getOffset()const
{
return offset_;
}
void StartPlaylistRequest::setOffset(int offset)
{
offset_ = offset;
setParameter("Offset", std::to_string(offset));
}
long StartPlaylistRequest::getOwnerId()const
{
return ownerId_;
}
void StartPlaylistRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,77 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/StartPlaylistResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
StartPlaylistResult::StartPlaylistResult() :
ServiceResult()
{}
StartPlaylistResult::StartPlaylistResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartPlaylistResult::~StartPlaylistResult()
{}
void StartPlaylistResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto streamInfoNode = value["StreamInfo"];
if(!streamInfoNode["DomainName"].isNull())
streamInfo_.domainName = streamInfoNode["DomainName"].asString();
if(!streamInfoNode["AppName"].isNull())
streamInfo_.appName = streamInfoNode["AppName"].asString();
if(!streamInfoNode["StreamName"].isNull())
streamInfo_.streamName = streamInfoNode["StreamName"].asString();
auto allStreamsNode = streamInfoNode["Streams"]["Stream"];
for (auto streamInfoNodeStreamsStream : allStreamsNode)
{
StreamInfo::Stream streamObject;
if(!streamInfoNodeStreamsStream["PullFlvUrl"].isNull())
streamObject.pullFlvUrl = streamInfoNodeStreamsStream["PullFlvUrl"].asString();
if(!streamInfoNodeStreamsStream["PullRtmpUrl"].isNull())
streamObject.pullRtmpUrl = streamInfoNodeStreamsStream["PullRtmpUrl"].asString();
if(!streamInfoNodeStreamsStream["PullM3U8Url"].isNull())
streamObject.pullM3U8Url = streamInfoNodeStreamsStream["PullM3U8Url"].asString();
if(!streamInfoNodeStreamsStream["Quality"].isNull())
streamObject.quality = streamInfoNodeStreamsStream["Quality"].asString();
streamInfo_.streams.push_back(streamObject);
}
if(!value["ProgramId"].isNull())
programId_ = value["ProgramId"].asString();
}
StartPlaylistResult::StreamInfo StartPlaylistResult::getStreamInfo()const
{
return streamInfo_;
}
std::string StartPlaylistResult::getProgramId()const
{
return programId_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/StopPlaylistRequest.h>
using AlibabaCloud::Live::Model::StopPlaylistRequest;
StopPlaylistRequest::StopPlaylistRequest() :
RpcServiceRequest("live", "2016-11-01", "StopPlaylist")
{
setMethod(HttpRequest::Method::Post);
}
StopPlaylistRequest::~StopPlaylistRequest()
{}
std::string StopPlaylistRequest::getProgramId()const
{
return programId_;
}
void StopPlaylistRequest::setProgramId(const std::string& programId)
{
programId_ = programId;
setParameter("ProgramId", programId);
}
long StopPlaylistRequest::getOwnerId()const
{
return ownerId_;
}
void StopPlaylistRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/StopPlaylistResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
StopPlaylistResult::StopPlaylistResult() :
ServiceResult()
{}
StopPlaylistResult::StopPlaylistResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StopPlaylistResult::~StopPlaylistResult()
{}
void StopPlaylistResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ProgramId"].isNull())
programId_ = value["ProgramId"].asString();
}
std::string StopPlaylistResult::getProgramId()const
{
return programId_;
}

View File

@@ -27,28 +27,6 @@ UpdateLiveDetectNotifyConfigRequest::UpdateLiveDetectNotifyConfigRequest() :
UpdateLiveDetectNotifyConfigRequest::~UpdateLiveDetectNotifyConfigRequest()
{}
std::string UpdateLiveDetectNotifyConfigRequest::getDomainName()const
{
return domainName_;
}
void UpdateLiveDetectNotifyConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long UpdateLiveDetectNotifyConfigRequest::getOwnerId()const
{
return ownerId_;
}
void UpdateLiveDetectNotifyConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string UpdateLiveDetectNotifyConfigRequest::getSecurityToken()const
{
return securityToken_;
@@ -71,3 +49,25 @@ void UpdateLiveDetectNotifyConfigRequest::setNotifyUrl(const std::string& notify
setParameter("NotifyUrl", notifyUrl);
}
std::string UpdateLiveDetectNotifyConfigRequest::getDomainName()const
{
return domainName_;
}
void UpdateLiveDetectNotifyConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long UpdateLiveDetectNotifyConfigRequest::getOwnerId()const
{
return ownerId_;
}
void UpdateLiveDetectNotifyConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}