Live sdk update.
This commit is contained in:
@@ -483,6 +483,42 @@ LiveClient::AddLiveAudioAuditNotifyConfigOutcomeCallable LiveClient::addLiveAudi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::AddLiveCenterTransferOutcome LiveClient::addLiveCenterTransfer(const AddLiveCenterTransferRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddLiveCenterTransferOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddLiveCenterTransferOutcome(AddLiveCenterTransferResult(outcome.result()));
|
||||
else
|
||||
return AddLiveCenterTransferOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::addLiveCenterTransferAsync(const AddLiveCenterTransferRequest& request, const AddLiveCenterTransferAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addLiveCenterTransfer(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::AddLiveCenterTransferOutcomeCallable LiveClient::addLiveCenterTransferCallable(const AddLiveCenterTransferRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddLiveCenterTransferOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addLiveCenterTransfer(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::AddLiveDetectNotifyConfigOutcome LiveClient::addLiveDetectNotifyConfig(const AddLiveDetectNotifyConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
Reference in New Issue
Block a user