Generated 2018-01-11 for rtc.
This commit is contained in:
@@ -31,26 +31,62 @@ RtcClient::RtcClient(const Credentials &credentials, const ClientConfiguration &
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "rtc");
|
||||
}
|
||||
|
||||
RtcClient::RtcClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "rtc");
|
||||
}
|
||||
|
||||
RtcClient::RtcClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "rtc");
|
||||
}
|
||||
|
||||
RtcClient::~RtcClient()
|
||||
{}
|
||||
|
||||
RtcClient::AddRecordTemplateOutcome RtcClient::addRecordTemplate(const AddRecordTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddRecordTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddRecordTemplateOutcome(AddRecordTemplateResult(outcome.result()));
|
||||
else
|
||||
return AddRecordTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::addRecordTemplateAsync(const AddRecordTemplateRequest& request, const AddRecordTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addRecordTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::AddRecordTemplateOutcomeCallable RtcClient::addRecordTemplateCallable(const AddRecordTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddRecordTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addRecordTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::CreateChannelOutcome RtcClient::createChannel(const CreateChannelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -159,36 +195,108 @@ RtcClient::CreateMAURuleOutcomeCallable RtcClient::createMAURuleCallable(const C
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::CreateTemplateOutcome RtcClient::createTemplate(const CreateTemplateRequest &request) const
|
||||
RtcClient::CreateMPULayoutOutcome RtcClient::createMPULayout(const CreateMPULayoutRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateTemplateOutcome(endpointOutcome.error());
|
||||
return CreateMPULayoutOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateTemplateOutcome(CreateTemplateResult(outcome.result()));
|
||||
return CreateMPULayoutOutcome(CreateMPULayoutResult(outcome.result()));
|
||||
else
|
||||
return CreateTemplateOutcome(outcome.error());
|
||||
return CreateMPULayoutOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::createTemplateAsync(const CreateTemplateRequest& request, const CreateTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void RtcClient::createMPULayoutAsync(const CreateMPULayoutRequest& request, const CreateMPULayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createTemplate(request), context);
|
||||
handler(this, request, createMPULayout(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::CreateTemplateOutcomeCallable RtcClient::createTemplateCallable(const CreateTemplateRequest &request) const
|
||||
RtcClient::CreateMPULayoutOutcomeCallable RtcClient::createMPULayoutCallable(const CreateMPULayoutRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateTemplateOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<CreateMPULayoutOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createTemplate(request);
|
||||
return this->createMPULayout(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::CreateMPURuleOutcome RtcClient::createMPURule(const CreateMPURuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateMPURuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateMPURuleOutcome(CreateMPURuleResult(outcome.result()));
|
||||
else
|
||||
return CreateMPURuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::createMPURuleAsync(const CreateMPURuleRequest& request, const CreateMPURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createMPURule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::CreateMPURuleOutcomeCallable RtcClient::createMPURuleCallable(const CreateMPURuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateMPURuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createMPURule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::CreateServiceLinkedRoleForRtcOutcome RtcClient::createServiceLinkedRoleForRtc(const CreateServiceLinkedRoleForRtcRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateServiceLinkedRoleForRtcOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateServiceLinkedRoleForRtcOutcome(CreateServiceLinkedRoleForRtcResult(outcome.result()));
|
||||
else
|
||||
return CreateServiceLinkedRoleForRtcOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::createServiceLinkedRoleForRtcAsync(const CreateServiceLinkedRoleForRtcRequest& request, const CreateServiceLinkedRoleForRtcAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createServiceLinkedRoleForRtc(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::CreateServiceLinkedRoleForRtcOutcomeCallable RtcClient::createServiceLinkedRoleForRtcCallable(const CreateServiceLinkedRoleForRtcRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateServiceLinkedRoleForRtcOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createServiceLinkedRoleForRtc(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -303,36 +411,108 @@ RtcClient::DeleteMAURuleOutcomeCallable RtcClient::deleteMAURuleCallable(const D
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DeleteTemplateOutcome RtcClient::deleteTemplate(const DeleteTemplateRequest &request) const
|
||||
RtcClient::DeleteMPULayoutOutcome RtcClient::deleteMPULayout(const DeleteMPULayoutRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteTemplateOutcome(endpointOutcome.error());
|
||||
return DeleteMPULayoutOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteTemplateOutcome(DeleteTemplateResult(outcome.result()));
|
||||
return DeleteMPULayoutOutcome(DeleteMPULayoutResult(outcome.result()));
|
||||
else
|
||||
return DeleteTemplateOutcome(outcome.error());
|
||||
return DeleteMPULayoutOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::deleteTemplateAsync(const DeleteTemplateRequest& request, const DeleteTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void RtcClient::deleteMPULayoutAsync(const DeleteMPULayoutRequest& request, const DeleteMPULayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteTemplate(request), context);
|
||||
handler(this, request, deleteMPULayout(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DeleteTemplateOutcomeCallable RtcClient::deleteTemplateCallable(const DeleteTemplateRequest &request) const
|
||||
RtcClient::DeleteMPULayoutOutcomeCallable RtcClient::deleteMPULayoutCallable(const DeleteMPULayoutRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteTemplateOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<DeleteMPULayoutOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteTemplate(request);
|
||||
return this->deleteMPULayout(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DeleteMPURuleOutcome RtcClient::deleteMPURule(const DeleteMPURuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteMPURuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteMPURuleOutcome(DeleteMPURuleResult(outcome.result()));
|
||||
else
|
||||
return DeleteMPURuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::deleteMPURuleAsync(const DeleteMPURuleRequest& request, const DeleteMPURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteMPURule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DeleteMPURuleOutcomeCallable RtcClient::deleteMPURuleCallable(const DeleteMPURuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteMPURuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteMPURule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DeleteRecordTemplateOutcome RtcClient::deleteRecordTemplate(const DeleteRecordTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteRecordTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteRecordTemplateOutcome(DeleteRecordTemplateResult(outcome.result()));
|
||||
else
|
||||
return DeleteRecordTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::deleteRecordTemplateAsync(const DeleteRecordTemplateRequest& request, const DeleteRecordTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteRecordTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DeleteRecordTemplateOutcomeCallable RtcClient::deleteRecordTemplateCallable(const DeleteRecordTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteRecordTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteRecordTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -519,6 +699,150 @@ RtcClient::DescribeMAURuleOutcomeCallable RtcClient::describeMAURuleCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeMPULayoutInfoOutcome RtcClient::describeMPULayoutInfo(const DescribeMPULayoutInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeMPULayoutInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeMPULayoutInfoOutcome(DescribeMPULayoutInfoResult(outcome.result()));
|
||||
else
|
||||
return DescribeMPULayoutInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::describeMPULayoutInfoAsync(const DescribeMPULayoutInfoRequest& request, const DescribeMPULayoutInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeMPULayoutInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DescribeMPULayoutInfoOutcomeCallable RtcClient::describeMPULayoutInfoCallable(const DescribeMPULayoutInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeMPULayoutInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeMPULayoutInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeMPULayoutInfoListOutcome RtcClient::describeMPULayoutInfoList(const DescribeMPULayoutInfoListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeMPULayoutInfoListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeMPULayoutInfoListOutcome(DescribeMPULayoutInfoListResult(outcome.result()));
|
||||
else
|
||||
return DescribeMPULayoutInfoListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::describeMPULayoutInfoListAsync(const DescribeMPULayoutInfoListRequest& request, const DescribeMPULayoutInfoListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeMPULayoutInfoList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DescribeMPULayoutInfoListOutcomeCallable RtcClient::describeMPULayoutInfoListCallable(const DescribeMPULayoutInfoListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeMPULayoutInfoListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeMPULayoutInfoList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeMPULayoutListOutcome RtcClient::describeMPULayoutList(const DescribeMPULayoutListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeMPULayoutListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeMPULayoutListOutcome(DescribeMPULayoutListResult(outcome.result()));
|
||||
else
|
||||
return DescribeMPULayoutListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::describeMPULayoutListAsync(const DescribeMPULayoutListRequest& request, const DescribeMPULayoutListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeMPULayoutList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DescribeMPULayoutListOutcomeCallable RtcClient::describeMPULayoutListCallable(const DescribeMPULayoutListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeMPULayoutListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeMPULayoutList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeMPURuleOutcome RtcClient::describeMPURule(const DescribeMPURuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeMPURuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeMPURuleOutcome(DescribeMPURuleResult(outcome.result()));
|
||||
else
|
||||
return DescribeMPURuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::describeMPURuleAsync(const DescribeMPURuleRequest& request, const DescribeMPURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeMPURule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DescribeMPURuleOutcomeCallable RtcClient::describeMPURuleCallable(const DescribeMPURuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeMPURuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeMPURule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRTCAppKeyOutcome RtcClient::describeRTCAppKey(const DescribeRTCAppKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -555,6 +879,42 @@ RtcClient::DescribeRTCAppKeyOutcomeCallable RtcClient::describeRTCAppKeyCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRecordTemplatesOutcome RtcClient::describeRecordTemplates(const DescribeRecordTemplatesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRecordTemplatesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRecordTemplatesOutcome(DescribeRecordTemplatesResult(outcome.result()));
|
||||
else
|
||||
return DescribeRecordTemplatesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::describeRecordTemplatesAsync(const DescribeRecordTemplatesRequest& request, const DescribeRecordTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRecordTemplates(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DescribeRecordTemplatesOutcomeCallable RtcClient::describeRecordTemplatesCallable(const DescribeRecordTemplatesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRecordTemplatesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRecordTemplates(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRtcChannelCntDataOutcome RtcClient::describeRtcChannelCntData(const DescribeRtcChannelCntDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -987,6 +1347,42 @@ RtcClient::DisableMAURuleOutcomeCallable RtcClient::disableMAURuleCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DisableMPURuleOutcome RtcClient::disableMPURule(const DisableMPURuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DisableMPURuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DisableMPURuleOutcome(DisableMPURuleResult(outcome.result()));
|
||||
else
|
||||
return DisableMPURuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::disableMPURuleAsync(const DisableMPURuleRequest& request, const DisableMPURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, disableMPURule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DisableMPURuleOutcomeCallable RtcClient::disableMPURuleCallable(const DisableMPURuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DisableMPURuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->disableMPURule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::EnableMAURuleOutcome RtcClient::enableMAURule(const EnableMAURuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1023,6 +1419,42 @@ RtcClient::EnableMAURuleOutcomeCallable RtcClient::enableMAURuleCallable(const E
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::EnableMPURuleOutcome RtcClient::enableMPURule(const EnableMPURuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableMPURuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableMPURuleOutcome(EnableMPURuleResult(outcome.result()));
|
||||
else
|
||||
return EnableMPURuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::enableMPURuleAsync(const EnableMPURuleRequest& request, const EnableMPURuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableMPURule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::EnableMPURuleOutcomeCallable RtcClient::enableMPURuleCallable(const EnableMPURuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableMPURuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableMPURule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::GetMPUTaskStatusOutcome RtcClient::getMPUTaskStatus(const GetMPUTaskStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,42 +1491,6 @@ RtcClient::GetMPUTaskStatusOutcomeCallable RtcClient::getMPUTaskStatusCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::GetTaskStatusOutcome RtcClient::getTaskStatus(const GetTaskStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTaskStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTaskStatusOutcome(GetTaskStatusResult(outcome.result()));
|
||||
else
|
||||
return GetTaskStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::getTaskStatusAsync(const GetTaskStatusRequest& request, const GetTaskStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTaskStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::GetTaskStatusOutcomeCallable RtcClient::getTaskStatusCallable(const GetTaskStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTaskStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTaskStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::ModifyAppOutcome RtcClient::modifyApp(const ModifyAppRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1167,6 +1563,42 @@ RtcClient::ModifyConferenceOutcomeCallable RtcClient::modifyConferenceCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::ModifyMPULayoutOutcome RtcClient::modifyMPULayout(const ModifyMPULayoutRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyMPULayoutOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyMPULayoutOutcome(ModifyMPULayoutResult(outcome.result()));
|
||||
else
|
||||
return ModifyMPULayoutOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::modifyMPULayoutAsync(const ModifyMPULayoutRequest& request, const ModifyMPULayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyMPULayout(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::ModifyMPULayoutOutcomeCallable RtcClient::modifyMPULayoutCallable(const ModifyMPULayoutRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyMPULayoutOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyMPULayout(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::MuteAudioOutcome RtcClient::muteAudio(const MuteAudioRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1419,36 +1851,72 @@ RtcClient::StartMPUTaskOutcomeCallable RtcClient::startMPUTaskCallable(const Sta
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::StartTaskOutcome RtcClient::startTask(const StartTaskRequest &request) const
|
||||
RtcClient::StartRecordTaskOutcome RtcClient::startRecordTask(const StartRecordTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartTaskOutcome(endpointOutcome.error());
|
||||
return StartRecordTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartTaskOutcome(StartTaskResult(outcome.result()));
|
||||
return StartRecordTaskOutcome(StartRecordTaskResult(outcome.result()));
|
||||
else
|
||||
return StartTaskOutcome(outcome.error());
|
||||
return StartRecordTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::startTaskAsync(const StartTaskRequest& request, const StartTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void RtcClient::startRecordTaskAsync(const StartRecordTaskRequest& request, const StartRecordTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startTask(request), context);
|
||||
handler(this, request, startRecordTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::StartTaskOutcomeCallable RtcClient::startTaskCallable(const StartTaskRequest &request) const
|
||||
RtcClient::StartRecordTaskOutcomeCallable RtcClient::startRecordTaskCallable(const StartRecordTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartTaskOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<StartRecordTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startTask(request);
|
||||
return this->startRecordTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::StopChannelUserPublishOutcome RtcClient::stopChannelUserPublish(const StopChannelUserPublishRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopChannelUserPublishOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopChannelUserPublishOutcome(StopChannelUserPublishResult(outcome.result()));
|
||||
else
|
||||
return StopChannelUserPublishOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::stopChannelUserPublishAsync(const StopChannelUserPublishRequest& request, const StopChannelUserPublishAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopChannelUserPublish(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::StopChannelUserPublishOutcomeCallable RtcClient::stopChannelUserPublishCallable(const StopChannelUserPublishRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopChannelUserPublishOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopChannelUserPublish(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -1491,36 +1959,36 @@ RtcClient::StopMPUTaskOutcomeCallable RtcClient::stopMPUTaskCallable(const StopM
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::StopTaskOutcome RtcClient::stopTask(const StopTaskRequest &request) const
|
||||
RtcClient::StopRecordTaskOutcome RtcClient::stopRecordTask(const StopRecordTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopTaskOutcome(endpointOutcome.error());
|
||||
return StopRecordTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopTaskOutcome(StopTaskResult(outcome.result()));
|
||||
return StopRecordTaskOutcome(StopRecordTaskResult(outcome.result()));
|
||||
else
|
||||
return StopTaskOutcome(outcome.error());
|
||||
return StopRecordTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::stopTaskAsync(const StopTaskRequest& request, const StopTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void RtcClient::stopRecordTaskAsync(const StopRecordTaskRequest& request, const StopRecordTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopTask(request), context);
|
||||
handler(this, request, stopRecordTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::StopTaskOutcomeCallable RtcClient::stopTaskCallable(const StopTaskRequest &request) const
|
||||
RtcClient::StopRecordTaskOutcomeCallable RtcClient::stopRecordTaskCallable(const StopRecordTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopTaskOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<StopRecordTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopTask(request);
|
||||
return this->stopRecordTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -1671,3 +2139,39 @@ RtcClient::UpdateMPULayoutOutcomeCallable RtcClient::updateMPULayoutCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::UpdateRecordTemplateOutcome RtcClient::updateRecordTemplate(const UpdateRecordTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateRecordTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateRecordTemplateOutcome(UpdateRecordTemplateResult(outcome.result()));
|
||||
else
|
||||
return UpdateRecordTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::updateRecordTemplateAsync(const UpdateRecordTemplateRequest& request, const UpdateRecordTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateRecordTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::UpdateRecordTemplateOutcomeCallable RtcClient::updateRecordTemplateCallable(const UpdateRecordTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateRecordTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateRecordTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
176
rtc/src/model/AddRecordTemplateRequest.cc
Normal file
176
rtc/src/model/AddRecordTemplateRequest.cc
Normal file
@@ -0,0 +1,176 @@
|
||||
/*
|
||||
* 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/rtc/model/AddRecordTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::AddRecordTemplateRequest;
|
||||
|
||||
AddRecordTemplateRequest::AddRecordTemplateRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "AddRecordTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddRecordTemplateRequest::~AddRecordTemplateRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> AddRecordTemplateRequest::getFormats()const
|
||||
{
|
||||
return formats_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setFormats(const std::vector<std::string>& formats)
|
||||
{
|
||||
formats_ = formats;
|
||||
for(int dep1 = 0; dep1!= formats.size(); dep1++) {
|
||||
setParameter("Formats."+ std::to_string(dep1), formats.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string AddRecordTemplateRequest::getOssFilePrefix()const
|
||||
{
|
||||
return ossFilePrefix_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setOssFilePrefix(const std::string& ossFilePrefix)
|
||||
{
|
||||
ossFilePrefix_ = ossFilePrefix;
|
||||
setParameter("OssFilePrefix", ossFilePrefix);
|
||||
}
|
||||
|
||||
int AddRecordTemplateRequest::getBackgroundColor()const
|
||||
{
|
||||
return backgroundColor_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setBackgroundColor(int backgroundColor)
|
||||
{
|
||||
backgroundColor_ = backgroundColor;
|
||||
setParameter("BackgroundColor", std::to_string(backgroundColor));
|
||||
}
|
||||
|
||||
std::string AddRecordTemplateRequest::getTaskProfile()const
|
||||
{
|
||||
return taskProfile_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setTaskProfile(const std::string& taskProfile)
|
||||
{
|
||||
taskProfile_ = taskProfile;
|
||||
setParameter("TaskProfile", taskProfile);
|
||||
}
|
||||
|
||||
std::vector<long> AddRecordTemplateRequest::getLayoutIds()const
|
||||
{
|
||||
return layoutIds_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setLayoutIds(const std::vector<long>& layoutIds)
|
||||
{
|
||||
layoutIds_ = layoutIds;
|
||||
for(int dep1 = 0; dep1!= layoutIds.size(); dep1++) {
|
||||
setParameter("LayoutIds."+ std::to_string(dep1), std::to_string(layoutIds.at(dep1)));
|
||||
}
|
||||
}
|
||||
|
||||
std::string AddRecordTemplateRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string AddRecordTemplateRequest::getOssBucket()const
|
||||
{
|
||||
return ossBucket_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setOssBucket(const std::string& ossBucket)
|
||||
{
|
||||
ossBucket_ = ossBucket;
|
||||
setParameter("OssBucket", ossBucket);
|
||||
}
|
||||
|
||||
std::string AddRecordTemplateRequest::getMnsQueue()const
|
||||
{
|
||||
return mnsQueue_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setMnsQueue(const std::string& mnsQueue)
|
||||
{
|
||||
mnsQueue_ = mnsQueue;
|
||||
setParameter("MnsQueue", mnsQueue);
|
||||
}
|
||||
|
||||
int AddRecordTemplateRequest::getFileSplitInterval()const
|
||||
{
|
||||
return fileSplitInterval_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setFileSplitInterval(int fileSplitInterval)
|
||||
{
|
||||
fileSplitInterval_ = fileSplitInterval;
|
||||
setParameter("FileSplitInterval", std::to_string(fileSplitInterval));
|
||||
}
|
||||
|
||||
long AddRecordTemplateRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AddRecordTemplateRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string AddRecordTemplateRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int AddRecordTemplateRequest::getMediaEncode()const
|
||||
{
|
||||
return mediaEncode_;
|
||||
}
|
||||
|
||||
void AddRecordTemplateRequest::setMediaEncode(int mediaEncode)
|
||||
{
|
||||
mediaEncode_ = mediaEncode;
|
||||
setParameter("MediaEncode", std::to_string(mediaEncode));
|
||||
}
|
||||
|
||||
@@ -14,37 +14,37 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/CreateTemplateResult.h>
|
||||
#include <alibabacloud/rtc/model/AddRecordTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
CreateTemplateResult::CreateTemplateResult() :
|
||||
AddRecordTemplateResult::AddRecordTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTemplateResult::CreateTemplateResult(const std::string &payload) :
|
||||
AddRecordTemplateResult::AddRecordTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTemplateResult::~CreateTemplateResult()
|
||||
AddRecordTemplateResult::~AddRecordTemplateResult()
|
||||
{}
|
||||
|
||||
void CreateTemplateResult::parse(const std::string &payload)
|
||||
void AddRecordTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TemplateId"].isNull())
|
||||
templateId_ = std::stol(value["TemplateId"].asString());
|
||||
templateId_ = value["TemplateId"].asString();
|
||||
|
||||
}
|
||||
|
||||
long CreateTemplateResult::getTemplateId()const
|
||||
std::string AddRecordTemplateResult::getTemplateId()const
|
||||
{
|
||||
return templateId_;
|
||||
}
|
||||
@@ -27,6 +27,17 @@ CreateChannelRequest::CreateChannelRequest() :
|
||||
CreateChannelRequest::~CreateChannelRequest()
|
||||
{}
|
||||
|
||||
std::string CreateChannelRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long CreateChannelRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -71,6 +71,17 @@ void CreateConferenceRequest::setConferenceName(const std::string& conferenceNam
|
||||
setParameter("ConferenceName", conferenceName);
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateConferenceRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long CreateConferenceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -49,6 +49,17 @@ void CreateMAURuleRequest::setChannelPrefix(const std::string& channelPrefix)
|
||||
setParameter("ChannelPrefix", channelPrefix);
|
||||
}
|
||||
|
||||
std::string CreateMAURuleRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateMAURuleRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long CreateMAURuleRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
94
rtc/src/model/CreateMPULayoutRequest.cc
Normal file
94
rtc/src/model/CreateMPULayoutRequest.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/rtc/model/CreateMPULayoutRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::CreateMPULayoutRequest;
|
||||
|
||||
CreateMPULayoutRequest::CreateMPULayoutRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "CreateMPULayout")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMPULayoutRequest::~CreateMPULayoutRequest()
|
||||
{}
|
||||
|
||||
std::vector<CreateMPULayoutRequest::Panes> CreateMPULayoutRequest::getPanes()const
|
||||
{
|
||||
return panes_;
|
||||
}
|
||||
|
||||
void CreateMPULayoutRequest::setPanes(const std::vector<Panes>& panes)
|
||||
{
|
||||
panes_ = panes;
|
||||
for(int dep1 = 0; dep1!= panes.size(); dep1++) {
|
||||
auto panesObj = panes.at(dep1);
|
||||
std::string panesObjStr = "Panes." + std::to_string(dep1 + 1);
|
||||
setParameter(panesObjStr + ".PaneId", std::to_string(panesObj.paneId));
|
||||
setParameter(panesObjStr + ".MajorPane", std::to_string(panesObj.majorPane));
|
||||
setParameter(panesObjStr + ".X", std::to_string(panesObj.x));
|
||||
setParameter(panesObjStr + ".Y", std::to_string(panesObj.y));
|
||||
setParameter(panesObjStr + ".Width", std::to_string(panesObj.width));
|
||||
setParameter(panesObjStr + ".Height", std::to_string(panesObj.height));
|
||||
setParameter(panesObjStr + ".ZOrder", std::to_string(panesObj.zOrder));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateMPULayoutRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateMPULayoutRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long CreateMPULayoutRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateMPULayoutRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateMPULayoutRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void CreateMPULayoutRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
int CreateMPULayoutRequest::getAudioMixCount()const
|
||||
{
|
||||
return audioMixCount_;
|
||||
}
|
||||
|
||||
void CreateMPULayoutRequest::setAudioMixCount(int audioMixCount)
|
||||
{
|
||||
audioMixCount_ = audioMixCount;
|
||||
setParameter("AudioMixCount", std::to_string(audioMixCount));
|
||||
}
|
||||
|
||||
51
rtc/src/model/CreateMPULayoutResult.cc
Normal file
51
rtc/src/model/CreateMPULayoutResult.cc
Normal 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/rtc/model/CreateMPULayoutResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
CreateMPULayoutResult::CreateMPULayoutResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMPULayoutResult::CreateMPULayoutResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMPULayoutResult::~CreateMPULayoutResult()
|
||||
{}
|
||||
|
||||
void CreateMPULayoutResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["LayoutId"].isNull())
|
||||
layoutId_ = std::stol(value["LayoutId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CreateMPULayoutResult::getLayoutId()const
|
||||
{
|
||||
return layoutId_;
|
||||
}
|
||||
|
||||
152
rtc/src/model/CreateMPURuleRequest.cc
Normal file
152
rtc/src/model/CreateMPURuleRequest.cc
Normal file
@@ -0,0 +1,152 @@
|
||||
/*
|
||||
* 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/rtc/model/CreateMPURuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::CreateMPURuleRequest;
|
||||
|
||||
CreateMPURuleRequest::CreateMPURuleRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "CreateMPURule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMPURuleRequest::~CreateMPURuleRequest()
|
||||
{}
|
||||
|
||||
int CreateMPURuleRequest::getBackgroundColor()const
|
||||
{
|
||||
return backgroundColor_;
|
||||
}
|
||||
|
||||
void CreateMPURuleRequest::setBackgroundColor(int backgroundColor)
|
||||
{
|
||||
backgroundColor_ = backgroundColor;
|
||||
setParameter("BackgroundColor", std::to_string(backgroundColor));
|
||||
}
|
||||
|
||||
int CreateMPURuleRequest::getCropMode()const
|
||||
{
|
||||
return cropMode_;
|
||||
}
|
||||
|
||||
void CreateMPURuleRequest::setCropMode(int cropMode)
|
||||
{
|
||||
cropMode_ = cropMode;
|
||||
setParameter("CropMode", std::to_string(cropMode));
|
||||
}
|
||||
|
||||
std::string CreateMPURuleRequest::getChannelPrefix()const
|
||||
{
|
||||
return channelPrefix_;
|
||||
}
|
||||
|
||||
void CreateMPURuleRequest::setChannelPrefix(const std::string& channelPrefix)
|
||||
{
|
||||
channelPrefix_ = channelPrefix;
|
||||
setParameter("ChannelPrefix", channelPrefix);
|
||||
}
|
||||
|
||||
std::string CreateMPURuleRequest::getTaskProfile()const
|
||||
{
|
||||
return taskProfile_;
|
||||
}
|
||||
|
||||
void CreateMPURuleRequest::setTaskProfile(const std::string& taskProfile)
|
||||
{
|
||||
taskProfile_ = taskProfile;
|
||||
setParameter("TaskProfile", taskProfile);
|
||||
}
|
||||
|
||||
std::vector<long> CreateMPURuleRequest::getLayoutIds()const
|
||||
{
|
||||
return layoutIds_;
|
||||
}
|
||||
|
||||
void CreateMPURuleRequest::setLayoutIds(const std::vector<long>& layoutIds)
|
||||
{
|
||||
layoutIds_ = layoutIds;
|
||||
for(int dep1 = 0; dep1!= layoutIds.size(); dep1++) {
|
||||
setParameter("LayoutIds."+ std::to_string(dep1), std::to_string(layoutIds.at(dep1)));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateMPURuleRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateMPURuleRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string CreateMPURuleRequest::getPlayDomain()const
|
||||
{
|
||||
return playDomain_;
|
||||
}
|
||||
|
||||
void CreateMPURuleRequest::setPlayDomain(const std::string& playDomain)
|
||||
{
|
||||
playDomain_ = playDomain;
|
||||
setParameter("PlayDomain", playDomain);
|
||||
}
|
||||
|
||||
long CreateMPURuleRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateMPURuleRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateMPURuleRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void CreateMPURuleRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
int CreateMPURuleRequest::getMediaEncode()const
|
||||
{
|
||||
return mediaEncode_;
|
||||
}
|
||||
|
||||
void CreateMPURuleRequest::setMediaEncode(int mediaEncode)
|
||||
{
|
||||
mediaEncode_ = mediaEncode;
|
||||
setParameter("MediaEncode", std::to_string(mediaEncode));
|
||||
}
|
||||
|
||||
std::string CreateMPURuleRequest::getCallBack()const
|
||||
{
|
||||
return callBack_;
|
||||
}
|
||||
|
||||
void CreateMPURuleRequest::setCallBack(const std::string& callBack)
|
||||
{
|
||||
callBack_ = callBack;
|
||||
setParameter("CallBack", callBack);
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/GetTaskStatusResult.h>
|
||||
#include <alibabacloud/rtc/model/CreateMPURuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
GetTaskStatusResult::GetTaskStatusResult() :
|
||||
CreateMPURuleResult::CreateMPURuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTaskStatusResult::GetTaskStatusResult(const std::string &payload) :
|
||||
CreateMPURuleResult::CreateMPURuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTaskStatusResult::~GetTaskStatusResult()
|
||||
CreateMPURuleResult::~CreateMPURuleResult()
|
||||
{}
|
||||
|
||||
void GetTaskStatusResult::parse(const std::string &payload)
|
||||
void CreateMPURuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = std::stoi(value["Status"].asString());
|
||||
if(!value["RuleId"].isNull())
|
||||
ruleId_ = std::stol(value["RuleId"].asString());
|
||||
|
||||
}
|
||||
|
||||
int GetTaskStatusResult::getStatus()const
|
||||
long CreateMPURuleResult::getRuleId()const
|
||||
{
|
||||
return status_;
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
51
rtc/src/model/CreateServiceLinkedRoleForRtcRequest.cc
Normal file
51
rtc/src/model/CreateServiceLinkedRoleForRtcRequest.cc
Normal 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/rtc/model/CreateServiceLinkedRoleForRtcRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::CreateServiceLinkedRoleForRtcRequest;
|
||||
|
||||
CreateServiceLinkedRoleForRtcRequest::CreateServiceLinkedRoleForRtcRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "CreateServiceLinkedRoleForRtc")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateServiceLinkedRoleForRtcRequest::~CreateServiceLinkedRoleForRtcRequest()
|
||||
{}
|
||||
|
||||
std::string CreateServiceLinkedRoleForRtcRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateServiceLinkedRoleForRtcRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long CreateServiceLinkedRoleForRtcRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateServiceLinkedRoleForRtcRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
rtc/src/model/CreateServiceLinkedRoleForRtcResult.cc
Normal file
44
rtc/src/model/CreateServiceLinkedRoleForRtcResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/CreateServiceLinkedRoleForRtcResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
CreateServiceLinkedRoleForRtcResult::CreateServiceLinkedRoleForRtcResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateServiceLinkedRoleForRtcResult::CreateServiceLinkedRoleForRtcResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateServiceLinkedRoleForRtcResult::~CreateServiceLinkedRoleForRtcResult()
|
||||
{}
|
||||
|
||||
void CreateServiceLinkedRoleForRtcResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,158 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/CreateTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::CreateTemplateRequest;
|
||||
|
||||
CreateTemplateRequest::CreateTemplateRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "CreateTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTemplateRequest::~CreateTemplateRequest()
|
||||
{}
|
||||
|
||||
int CreateTemplateRequest::getServiceMode()const
|
||||
{
|
||||
return serviceMode_;
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setServiceMode(int serviceMode)
|
||||
{
|
||||
serviceMode_ = serviceMode;
|
||||
setParameter("ServiceMode", std::to_string(serviceMode));
|
||||
}
|
||||
|
||||
std::vector<CreateTemplateRequest::LiveConfig> CreateTemplateRequest::getLiveConfig()const
|
||||
{
|
||||
return liveConfig_;
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setLiveConfig(const std::vector<LiveConfig>& liveConfig)
|
||||
{
|
||||
liveConfig_ = liveConfig;
|
||||
for(int dep1 = 0; dep1!= liveConfig.size(); dep1++) {
|
||||
auto liveConfigObj = liveConfig.at(dep1);
|
||||
std::string liveConfigObjStr = "LiveConfig." + std::to_string(dep1 + 1);
|
||||
setParameter(liveConfigObjStr + ".DomainName", liveConfigObj.domainName);
|
||||
setParameter(liveConfigObjStr + ".AppName", liveConfigObj.appName);
|
||||
}
|
||||
}
|
||||
|
||||
int CreateTemplateRequest::getMediaConfig()const
|
||||
{
|
||||
return mediaConfig_;
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setMediaConfig(int mediaConfig)
|
||||
{
|
||||
mediaConfig_ = mediaConfig;
|
||||
setParameter("MediaConfig", std::to_string(mediaConfig));
|
||||
}
|
||||
|
||||
int CreateTemplateRequest::getMaxMixStreamCount()const
|
||||
{
|
||||
return maxMixStreamCount_;
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setMaxMixStreamCount(int maxMixStreamCount)
|
||||
{
|
||||
maxMixStreamCount_ = maxMixStreamCount;
|
||||
setParameter("MaxMixStreamCount", std::to_string(maxMixStreamCount));
|
||||
}
|
||||
|
||||
std::vector<CreateTemplateRequest::RecordConfig> CreateTemplateRequest::getRecordConfig()const
|
||||
{
|
||||
return recordConfig_;
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setRecordConfig(const std::vector<RecordConfig>& recordConfig)
|
||||
{
|
||||
recordConfig_ = recordConfig;
|
||||
for(int dep1 = 0; dep1!= recordConfig.size(); dep1++) {
|
||||
auto recordConfigObj = recordConfig.at(dep1);
|
||||
std::string recordConfigObjStr = "RecordConfig." + std::to_string(dep1 + 1);
|
||||
setParameter(recordConfigObjStr + ".StorageType", recordConfigObj.storageType);
|
||||
setParameter(recordConfigObjStr + ".FileFormat", std::to_string(recordConfigObj.fileFormat));
|
||||
setParameter(recordConfigObjStr + ".OssEndPoint", recordConfigObj.ossEndPoint);
|
||||
setParameter(recordConfigObjStr + ".OssBucket", recordConfigObj.ossBucket);
|
||||
setParameter(recordConfigObjStr + ".VodTransCodeGroupId", std::to_string(recordConfigObj.vodTransCodeGroupId));
|
||||
}
|
||||
}
|
||||
|
||||
long CreateTemplateRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::vector<CreateTemplateRequest::LayOut> CreateTemplateRequest::getLayOut()const
|
||||
{
|
||||
return layOut_;
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setLayOut(const std::vector<LayOut>& layOut)
|
||||
{
|
||||
layOut_ = layOut;
|
||||
for(int dep1 = 0; dep1!= layOut.size(); dep1++) {
|
||||
auto layOutObj = layOut.at(dep1);
|
||||
std::string layOutObjStr = "LayOut." + std::to_string(dep1 + 1);
|
||||
setParameter(layOutObjStr + ".Color", layOutObj.color);
|
||||
setParameter(layOutObjStr + ".CutMode", std::to_string(layOutObj.cutMode));
|
||||
setParameter(layOutObjStr + ".LayOutId", std::to_string(layOutObj.layOutId));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getCallBack()const
|
||||
{
|
||||
return callBack_;
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setCallBack(const std::string& callBack)
|
||||
{
|
||||
callBack_ = callBack;
|
||||
setParameter("CallBack", callBack);
|
||||
}
|
||||
|
||||
int CreateTemplateRequest::getMixMode()const
|
||||
{
|
||||
return mixMode_;
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setMixMode(int mixMode)
|
||||
{
|
||||
mixMode_ = mixMode;
|
||||
setParameter("MixMode", std::to_string(mixMode));
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ DeleteChannelRequest::DeleteChannelRequest() :
|
||||
DeleteChannelRequest::~DeleteChannelRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteChannelRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DeleteChannelRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -38,6 +38,17 @@ void DeleteConferenceRequest::setConferenceId(const std::string& conferenceId)
|
||||
setParameter("ConferenceId", conferenceId);
|
||||
}
|
||||
|
||||
std::string DeleteConferenceRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteConferenceRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DeleteConferenceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -27,6 +27,17 @@ DeleteMAURuleRequest::DeleteMAURuleRequest() :
|
||||
DeleteMAURuleRequest::~DeleteMAURuleRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteMAURuleRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteMAURuleRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DeleteMAURuleRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
73
rtc/src/model/DeleteMPULayoutRequest.cc
Normal file
73
rtc/src/model/DeleteMPULayoutRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/DeleteMPULayoutRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DeleteMPULayoutRequest;
|
||||
|
||||
DeleteMPULayoutRequest::DeleteMPULayoutRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DeleteMPULayout")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteMPULayoutRequest::~DeleteMPULayoutRequest()
|
||||
{}
|
||||
|
||||
long DeleteMPULayoutRequest::getLayoutId()const
|
||||
{
|
||||
return layoutId_;
|
||||
}
|
||||
|
||||
void DeleteMPULayoutRequest::setLayoutId(long layoutId)
|
||||
{
|
||||
layoutId_ = layoutId;
|
||||
setParameter("LayoutId", std::to_string(layoutId));
|
||||
}
|
||||
|
||||
std::string DeleteMPULayoutRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteMPULayoutRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DeleteMPULayoutRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteMPULayoutRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteMPULayoutRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteMPULayoutRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
44
rtc/src/model/DeleteMPULayoutResult.cc
Normal file
44
rtc/src/model/DeleteMPULayoutResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/DeleteMPULayoutResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DeleteMPULayoutResult::DeleteMPULayoutResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteMPULayoutResult::DeleteMPULayoutResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteMPULayoutResult::~DeleteMPULayoutResult()
|
||||
{}
|
||||
|
||||
void DeleteMPULayoutResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
73
rtc/src/model/DeleteMPURuleRequest.cc
Normal file
73
rtc/src/model/DeleteMPURuleRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/DeleteMPURuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DeleteMPURuleRequest;
|
||||
|
||||
DeleteMPURuleRequest::DeleteMPURuleRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DeleteMPURule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteMPURuleRequest::~DeleteMPURuleRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteMPURuleRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteMPURuleRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DeleteMPURuleRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteMPURuleRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteMPURuleRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteMPURuleRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
long DeleteMPURuleRequest::getRuleId()const
|
||||
{
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void DeleteMPURuleRequest::setRuleId(long ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setParameter("RuleId", std::to_string(ruleId));
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/StopTaskResult.h>
|
||||
#include <alibabacloud/rtc/model/DeleteMPURuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
StopTaskResult::StopTaskResult() :
|
||||
DeleteMPURuleResult::DeleteMPURuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopTaskResult::StopTaskResult(const std::string &payload) :
|
||||
DeleteMPURuleResult::DeleteMPURuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopTaskResult::~StopTaskResult()
|
||||
DeleteMPURuleResult::~DeleteMPURuleResult()
|
||||
{}
|
||||
|
||||
void StopTaskResult::parse(const std::string &payload)
|
||||
void DeleteMPURuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
73
rtc/src/model/DeleteRecordTemplateRequest.cc
Normal file
73
rtc/src/model/DeleteRecordTemplateRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/DeleteRecordTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DeleteRecordTemplateRequest;
|
||||
|
||||
DeleteRecordTemplateRequest::DeleteRecordTemplateRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DeleteRecordTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRecordTemplateRequest::~DeleteRecordTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteRecordTemplateRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteRecordTemplateRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DeleteRecordTemplateRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteRecordTemplateRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteRecordTemplateRequest::getTemplateId()const
|
||||
{
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void DeleteRecordTemplateRequest::setTemplateId(const std::string& templateId)
|
||||
{
|
||||
templateId_ = templateId;
|
||||
setParameter("TemplateId", templateId);
|
||||
}
|
||||
|
||||
std::string DeleteRecordTemplateRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteRecordTemplateRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
44
rtc/src/model/DeleteRecordTemplateResult.cc
Normal file
44
rtc/src/model/DeleteRecordTemplateResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/DeleteRecordTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DeleteRecordTemplateResult::DeleteRecordTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRecordTemplateResult::DeleteRecordTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRecordTemplateResult::~DeleteRecordTemplateResult()
|
||||
{}
|
||||
|
||||
void DeleteRecordTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -49,6 +49,17 @@ void DescribeAppsRequest::setPageSize(int pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeAppsRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getOrder()const
|
||||
{
|
||||
return order_;
|
||||
|
||||
@@ -49,6 +49,17 @@ void DescribeChannelParticipantsRequest::setPageSize(int pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getOrder()const
|
||||
{
|
||||
return order_;
|
||||
|
||||
@@ -27,6 +27,17 @@ DescribeChannelUsersRequest::DescribeChannelUsersRequest() :
|
||||
DescribeChannelUsersRequest::~DescribeChannelUsersRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeChannelUsersRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeChannelUsersRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeChannelUsersRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -27,17 +27,6 @@ DescribeConferenceAuthInfoRequest::DescribeConferenceAuthInfoRequest() :
|
||||
DescribeConferenceAuthInfoRequest::~DescribeConferenceAuthInfoRequest()
|
||||
{}
|
||||
|
||||
long DescribeConferenceAuthInfoRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeConferenceAuthInfoRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeConferenceAuthInfoRequest::getConferenceId()const
|
||||
{
|
||||
return conferenceId_;
|
||||
@@ -49,6 +38,28 @@ void DescribeConferenceAuthInfoRequest::setConferenceId(const std::string& confe
|
||||
setParameter("ConferenceId", conferenceId);
|
||||
}
|
||||
|
||||
std::string DescribeConferenceAuthInfoRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeConferenceAuthInfoRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeConferenceAuthInfoRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeConferenceAuthInfoRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeConferenceAuthInfoRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
|
||||
@@ -27,6 +27,17 @@ DescribeMAURuleRequest::DescribeMAURuleRequest() :
|
||||
DescribeMAURuleRequest::~DescribeMAURuleRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeMAURuleRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeMAURuleRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeMAURuleRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
106
rtc/src/model/DescribeMPULayoutInfoListRequest.cc
Normal file
106
rtc/src/model/DescribeMPULayoutInfoListRequest.cc
Normal 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/rtc/model/DescribeMPULayoutInfoListRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeMPULayoutInfoListRequest;
|
||||
|
||||
DescribeMPULayoutInfoListRequest::DescribeMPULayoutInfoListRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeMPULayoutInfoList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMPULayoutInfoListRequest::~DescribeMPULayoutInfoListRequest()
|
||||
{}
|
||||
|
||||
long DescribeMPULayoutInfoListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void DescribeMPULayoutInfoListRequest::setPageNum(long pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
long DescribeMPULayoutInfoListRequest::getLayoutId()const
|
||||
{
|
||||
return layoutId_;
|
||||
}
|
||||
|
||||
void DescribeMPULayoutInfoListRequest::setLayoutId(long layoutId)
|
||||
{
|
||||
layoutId_ = layoutId;
|
||||
setParameter("LayoutId", std::to_string(layoutId));
|
||||
}
|
||||
|
||||
long DescribeMPULayoutInfoListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeMPULayoutInfoListRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeMPULayoutInfoListRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeMPULayoutInfoListRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeMPULayoutInfoListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeMPULayoutInfoListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeMPULayoutInfoListRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeMPULayoutInfoListRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeMPULayoutInfoListRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeMPULayoutInfoListRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
95
rtc/src/model/DescribeMPULayoutInfoListResult.cc
Normal file
95
rtc/src/model/DescribeMPULayoutInfoListResult.cc
Normal 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/rtc/model/DescribeMPULayoutInfoListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeMPULayoutInfoListResult::DescribeMPULayoutInfoListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMPULayoutInfoListResult::DescribeMPULayoutInfoListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMPULayoutInfoListResult::~DescribeMPULayoutInfoListResult()
|
||||
{}
|
||||
|
||||
void DescribeMPULayoutInfoListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLayoutsNode = value["Layouts"]["Layout"];
|
||||
for (auto valueLayoutsLayout : allLayoutsNode)
|
||||
{
|
||||
Layout layoutsObject;
|
||||
if(!valueLayoutsLayout["LayoutId"].isNull())
|
||||
layoutsObject.layoutId = std::stol(valueLayoutsLayout["LayoutId"].asString());
|
||||
if(!valueLayoutsLayout["Name"].isNull())
|
||||
layoutsObject.name = valueLayoutsLayout["Name"].asString();
|
||||
if(!valueLayoutsLayout["AudioMixCount"].isNull())
|
||||
layoutsObject.audioMixCount = std::stoi(valueLayoutsLayout["AudioMixCount"].asString());
|
||||
auto allPanesNode = allLayoutsNode["Panes"]["PanesItem"];
|
||||
for (auto allLayoutsNodePanesPanesItem : allPanesNode)
|
||||
{
|
||||
Layout::PanesItem panesObject;
|
||||
if(!allLayoutsNodePanesPanesItem["PaneId"].isNull())
|
||||
panesObject.paneId = std::stoi(allLayoutsNodePanesPanesItem["PaneId"].asString());
|
||||
if(!allLayoutsNodePanesPanesItem["MajorPane"].isNull())
|
||||
panesObject.majorPane = std::stoi(allLayoutsNodePanesPanesItem["MajorPane"].asString());
|
||||
if(!allLayoutsNodePanesPanesItem["X"].isNull())
|
||||
panesObject.x = std::stof(allLayoutsNodePanesPanesItem["X"].asString());
|
||||
if(!allLayoutsNodePanesPanesItem["Y"].isNull())
|
||||
panesObject.y = std::stof(allLayoutsNodePanesPanesItem["Y"].asString());
|
||||
if(!allLayoutsNodePanesPanesItem["Width"].isNull())
|
||||
panesObject.width = std::stof(allLayoutsNodePanesPanesItem["Width"].asString());
|
||||
if(!allLayoutsNodePanesPanesItem["Height"].isNull())
|
||||
panesObject.height = std::stof(allLayoutsNodePanesPanesItem["Height"].asString());
|
||||
if(!allLayoutsNodePanesPanesItem["ZOrder"].isNull())
|
||||
panesObject.zOrder = std::stoi(allLayoutsNodePanesPanesItem["ZOrder"].asString());
|
||||
layoutsObject.panes.push_back(panesObject);
|
||||
}
|
||||
layouts_.push_back(layoutsObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stol(value["TotalNum"].asString());
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stol(value["TotalPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeMPULayoutInfoListResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
std::vector<DescribeMPULayoutInfoListResult::Layout> DescribeMPULayoutInfoListResult::getLayouts()const
|
||||
{
|
||||
return layouts_;
|
||||
}
|
||||
|
||||
long DescribeMPULayoutInfoListResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
73
rtc/src/model/DescribeMPULayoutInfoRequest.cc
Normal file
73
rtc/src/model/DescribeMPULayoutInfoRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/DescribeMPULayoutInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeMPULayoutInfoRequest;
|
||||
|
||||
DescribeMPULayoutInfoRequest::DescribeMPULayoutInfoRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeMPULayoutInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMPULayoutInfoRequest::~DescribeMPULayoutInfoRequest()
|
||||
{}
|
||||
|
||||
long DescribeMPULayoutInfoRequest::getLayoutId()const
|
||||
{
|
||||
return layoutId_;
|
||||
}
|
||||
|
||||
void DescribeMPULayoutInfoRequest::setLayoutId(long layoutId)
|
||||
{
|
||||
layoutId_ = layoutId;
|
||||
setParameter("LayoutId", std::to_string(layoutId));
|
||||
}
|
||||
|
||||
std::string DescribeMPULayoutInfoRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeMPULayoutInfoRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeMPULayoutInfoRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeMPULayoutInfoRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeMPULayoutInfoRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeMPULayoutInfoRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
74
rtc/src/model/DescribeMPULayoutInfoResult.cc
Normal file
74
rtc/src/model/DescribeMPULayoutInfoResult.cc
Normal 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/rtc/model/DescribeMPULayoutInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeMPULayoutInfoResult::DescribeMPULayoutInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMPULayoutInfoResult::DescribeMPULayoutInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMPULayoutInfoResult::~DescribeMPULayoutInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeMPULayoutInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto layoutNode = value["Layout"];
|
||||
if(!layoutNode["LayoutId"].isNull())
|
||||
layout_.layoutId = std::stol(layoutNode["LayoutId"].asString());
|
||||
if(!layoutNode["AudioMixCount"].isNull())
|
||||
layout_.audioMixCount = std::stoi(layoutNode["AudioMixCount"].asString());
|
||||
auto allPanesNode = layoutNode["Panes"]["PanesItem"];
|
||||
for (auto layoutNodePanesPanesItem : allPanesNode)
|
||||
{
|
||||
Layout::PanesItem panesItemObject;
|
||||
if(!layoutNodePanesPanesItem["PaneId"].isNull())
|
||||
panesItemObject.paneId = std::stoi(layoutNodePanesPanesItem["PaneId"].asString());
|
||||
if(!layoutNodePanesPanesItem["MajorPane"].isNull())
|
||||
panesItemObject.majorPane = std::stoi(layoutNodePanesPanesItem["MajorPane"].asString());
|
||||
if(!layoutNodePanesPanesItem["X"].isNull())
|
||||
panesItemObject.x = std::stof(layoutNodePanesPanesItem["X"].asString());
|
||||
if(!layoutNodePanesPanesItem["Y"].isNull())
|
||||
panesItemObject.y = std::stof(layoutNodePanesPanesItem["Y"].asString());
|
||||
if(!layoutNodePanesPanesItem["Width"].isNull())
|
||||
panesItemObject.width = std::stof(layoutNodePanesPanesItem["Width"].asString());
|
||||
if(!layoutNodePanesPanesItem["Height"].isNull())
|
||||
panesItemObject.height = std::stof(layoutNodePanesPanesItem["Height"].asString());
|
||||
if(!layoutNodePanesPanesItem["ZOrder"].isNull())
|
||||
panesItemObject.zOrder = std::stoi(layoutNodePanesPanesItem["ZOrder"].asString());
|
||||
layout_.panes.push_back(panesItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeMPULayoutInfoResult::Layout DescribeMPULayoutInfoResult::getLayout()const
|
||||
{
|
||||
return layout_;
|
||||
}
|
||||
|
||||
62
rtc/src/model/DescribeMPULayoutListRequest.cc
Normal file
62
rtc/src/model/DescribeMPULayoutListRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/DescribeMPULayoutListRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeMPULayoutListRequest;
|
||||
|
||||
DescribeMPULayoutListRequest::DescribeMPULayoutListRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeMPULayoutList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMPULayoutListRequest::~DescribeMPULayoutListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeMPULayoutListRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeMPULayoutListRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeMPULayoutListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeMPULayoutListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeMPULayoutListRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeMPULayoutListRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
52
rtc/src/model/DescribeMPULayoutListResult.cc
Normal file
52
rtc/src/model/DescribeMPULayoutListResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/DescribeMPULayoutListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeMPULayoutListResult::DescribeMPULayoutListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMPULayoutListResult::DescribeMPULayoutListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMPULayoutListResult::~DescribeMPULayoutListResult()
|
||||
{}
|
||||
|
||||
void DescribeMPULayoutListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLayoutIds = value["LayoutIds"]["LayoutId"];
|
||||
for (const auto &item : allLayoutIds)
|
||||
layoutIds_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeMPULayoutListResult::getLayoutIds()const
|
||||
{
|
||||
return layoutIds_;
|
||||
}
|
||||
|
||||
@@ -14,47 +14,47 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/DeleteTemplateRequest.h>
|
||||
#include <alibabacloud/rtc/model/DescribeMPURuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DeleteTemplateRequest;
|
||||
using AlibabaCloud::Rtc::Model::DescribeMPURuleRequest;
|
||||
|
||||
DeleteTemplateRequest::DeleteTemplateRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DeleteTemplate")
|
||||
DescribeMPURuleRequest::DescribeMPURuleRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeMPURule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTemplateRequest::~DeleteTemplateRequest()
|
||||
DescribeMPURuleRequest::~DescribeMPURuleRequest()
|
||||
{}
|
||||
|
||||
long DeleteTemplateRequest::getOwnerId()const
|
||||
std::string DescribeMPURuleRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeMPURuleRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeMPURuleRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteTemplateRequest::setOwnerId(long ownerId)
|
||||
void DescribeMPURuleRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long DeleteTemplateRequest::getTemplateId()const
|
||||
{
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void DeleteTemplateRequest::setTemplateId(long templateId)
|
||||
{
|
||||
templateId_ = templateId;
|
||||
setParameter("TemplateId", std::to_string(templateId));
|
||||
}
|
||||
|
||||
std::string DeleteTemplateRequest::getAppId()const
|
||||
std::string DescribeMPURuleRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteTemplateRequest::setAppId(const std::string& appId)
|
||||
void DescribeMPURuleRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
76
rtc/src/model/DescribeMPURuleResult.cc
Normal file
76
rtc/src/model/DescribeMPURuleResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeMPURuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeMPURuleResult::DescribeMPURuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMPURuleResult::DescribeMPURuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMPURuleResult::~DescribeMPURuleResult()
|
||||
{}
|
||||
|
||||
void DescribeMPURuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRulesNode = value["Rules"]["Rule"];
|
||||
for (auto valueRulesRule : allRulesNode)
|
||||
{
|
||||
Rule rulesObject;
|
||||
if(!valueRulesRule["RuleId"].isNull())
|
||||
rulesObject.ruleId = std::stol(valueRulesRule["RuleId"].asString());
|
||||
if(!valueRulesRule["ChannelPrefix"].isNull())
|
||||
rulesObject.channelPrefix = valueRulesRule["ChannelPrefix"].asString();
|
||||
if(!valueRulesRule["MediaEncode"].isNull())
|
||||
rulesObject.mediaEncode = std::stoi(valueRulesRule["MediaEncode"].asString());
|
||||
if(!valueRulesRule["BackgroudColor"].isNull())
|
||||
rulesObject.backgroudColor = std::stoi(valueRulesRule["BackgroudColor"].asString());
|
||||
if(!valueRulesRule["CropMode"].isNull())
|
||||
rulesObject.cropMode = std::stoi(valueRulesRule["CropMode"].asString());
|
||||
if(!valueRulesRule["TaskProfile"].isNull())
|
||||
rulesObject.taskProfile = valueRulesRule["TaskProfile"].asString();
|
||||
if(!valueRulesRule["PlayDomain"].isNull())
|
||||
rulesObject.playDomain = valueRulesRule["PlayDomain"].asString();
|
||||
if(!valueRulesRule["CallBack"].isNull())
|
||||
rulesObject.callBack = valueRulesRule["CallBack"].asString();
|
||||
if(!valueRulesRule["IsEnable"].isNull())
|
||||
rulesObject.isEnable = std::stoi(valueRulesRule["IsEnable"].asString());
|
||||
auto allLayoutIds = value["LayoutIds"]["LayoutId"];
|
||||
for (auto value : allLayoutIds)
|
||||
rulesObject.layoutIds.push_back(value.asString());
|
||||
rules_.push_back(rulesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeMPURuleResult::Rule> DescribeMPURuleResult::getRules()const
|
||||
{
|
||||
return rules_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ DescribeRTCAppKeyRequest::DescribeRTCAppKeyRequest() :
|
||||
DescribeRTCAppKeyRequest::~DescribeRTCAppKeyRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRTCAppKeyRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeRTCAppKeyRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeRTCAppKeyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
97
rtc/src/model/DescribeRecordTemplatesRequest.cc
Normal file
97
rtc/src/model/DescribeRecordTemplatesRequest.cc
Normal 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/rtc/model/DescribeRecordTemplatesRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeRecordTemplatesRequest;
|
||||
|
||||
DescribeRecordTemplatesRequest::DescribeRecordTemplatesRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeRecordTemplates")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRecordTemplatesRequest::~DescribeRecordTemplatesRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> DescribeRecordTemplatesRequest::getTemplateIds()const
|
||||
{
|
||||
return templateIds_;
|
||||
}
|
||||
|
||||
void DescribeRecordTemplatesRequest::setTemplateIds(const std::vector<std::string>& templateIds)
|
||||
{
|
||||
templateIds_ = templateIds;
|
||||
for(int dep1 = 0; dep1!= templateIds.size(); dep1++) {
|
||||
setParameter("TemplateIds."+ std::to_string(dep1), templateIds.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
int DescribeRecordTemplatesRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void DescribeRecordTemplatesRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
int DescribeRecordTemplatesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRecordTemplatesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRecordTemplatesRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeRecordTemplatesRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeRecordTemplatesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRecordTemplatesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRecordTemplatesRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeRecordTemplatesRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
95
rtc/src/model/DescribeRecordTemplatesResult.cc
Normal file
95
rtc/src/model/DescribeRecordTemplatesResult.cc
Normal 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/rtc/model/DescribeRecordTemplatesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeRecordTemplatesResult::DescribeRecordTemplatesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRecordTemplatesResult::DescribeRecordTemplatesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRecordTemplatesResult::~DescribeRecordTemplatesResult()
|
||||
{}
|
||||
|
||||
void DescribeRecordTemplatesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTemplatesNode = value["Templates"]["Template"];
|
||||
for (auto valueTemplatesTemplate : allTemplatesNode)
|
||||
{
|
||||
_Template templatesObject;
|
||||
if(!valueTemplatesTemplate["CreateTime"].isNull())
|
||||
templatesObject.createTime = valueTemplatesTemplate["CreateTime"].asString();
|
||||
if(!valueTemplatesTemplate["TemplateId"].isNull())
|
||||
templatesObject.templateId = valueTemplatesTemplate["TemplateId"].asString();
|
||||
if(!valueTemplatesTemplate["Name"].isNull())
|
||||
templatesObject.name = valueTemplatesTemplate["Name"].asString();
|
||||
if(!valueTemplatesTemplate["MediaEncode"].isNull())
|
||||
templatesObject.mediaEncode = std::stoi(valueTemplatesTemplate["MediaEncode"].asString());
|
||||
if(!valueTemplatesTemplate["BackgroundColor"].isNull())
|
||||
templatesObject.backgroundColor = std::stoi(valueTemplatesTemplate["BackgroundColor"].asString());
|
||||
if(!valueTemplatesTemplate["FileSplitInterval"].isNull())
|
||||
templatesObject.fileSplitInterval = std::stoi(valueTemplatesTemplate["FileSplitInterval"].asString());
|
||||
if(!valueTemplatesTemplate["TaskProfile"].isNull())
|
||||
templatesObject.taskProfile = valueTemplatesTemplate["TaskProfile"].asString();
|
||||
if(!valueTemplatesTemplate["OssBucket"].isNull())
|
||||
templatesObject.ossBucket = valueTemplatesTemplate["OssBucket"].asString();
|
||||
if(!valueTemplatesTemplate["OssFilePrefix"].isNull())
|
||||
templatesObject.ossFilePrefix = valueTemplatesTemplate["OssFilePrefix"].asString();
|
||||
if(!valueTemplatesTemplate["MnsQueue"].isNull())
|
||||
templatesObject.mnsQueue = valueTemplatesTemplate["MnsQueue"].asString();
|
||||
auto allLayoutIds = value["LayoutIds"]["LayoutId"];
|
||||
for (auto value : allLayoutIds)
|
||||
templatesObject.layoutIds.push_back(value.asString());
|
||||
auto allFormats = value["Formats"]["Format"];
|
||||
for (auto value : allFormats)
|
||||
templatesObject.formats.push_back(value.asString());
|
||||
templates_.push_back(templatesObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stol(value["TotalNum"].asString());
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stol(value["TotalPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeRecordTemplatesResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
long DescribeRecordTemplatesResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRecordTemplatesResult::_Template> DescribeRecordTemplatesResult::getTemplates()const
|
||||
{
|
||||
return templates_;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,17 @@ void DescribeRtcChannelCntDataRequest::setServiceArea(const std::string& service
|
||||
setParameter("ServiceArea", serviceArea);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
|
||||
@@ -71,6 +71,17 @@ void DescribeRtcChannelListRequest::setPageSize(long pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeRtcChannelListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -27,6 +27,17 @@ DescribeRtcChannelMetricRequest::DescribeRtcChannelMetricRequest() :
|
||||
DescribeRtcChannelMetricRequest::~DescribeRtcChannelMetricRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeRtcChannelMetricRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -38,6 +38,17 @@ void DescribeRtcChannelUserListRequest::setPageSize(long pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeRtcChannelUserListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -49,6 +49,17 @@ void DescribeRtcDurationDataRequest::setServiceArea(const std::string& serviceAr
|
||||
setParameter("ServiceArea", serviceArea);
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
|
||||
@@ -49,6 +49,17 @@ void DescribeRtcPeakChannelCntDataRequest::setServiceArea(const std::string& ser
|
||||
setParameter("ServiceArea", serviceArea);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
|
||||
@@ -49,6 +49,17 @@ void DescribeRtcPeakUserCntDataRequest::setServiceArea(const std::string& servic
|
||||
setParameter("ServiceArea", serviceArea);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
|
||||
@@ -38,6 +38,17 @@ void DescribeRtcQualityMetricRequest::setStartTime(const std::string& startTime)
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeRtcQualityMetricRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeRtcQualityMetricRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeRtcQualityMetricRequest::getSubUser()const
|
||||
{
|
||||
return subUser_;
|
||||
|
||||
@@ -49,6 +49,17 @@ void DescribeRtcUserCntDataRequest::setServiceArea(const std::string& serviceAre
|
||||
setParameter("ServiceArea", serviceArea);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
|
||||
@@ -38,6 +38,28 @@ void DescribeRtcUserListRequest::setStartTime(const std::string& startTime)
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserListRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserListRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserListRequest::getSubUser()const
|
||||
{
|
||||
return subUser_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserListRequest::setSubUser(const std::string& subUser)
|
||||
{
|
||||
subUser_ = subUser;
|
||||
setParameter("SubUser", subUser);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserListRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
@@ -60,6 +82,17 @@ void DescribeRtcUserListRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserListRequest::getPubUser()const
|
||||
{
|
||||
return pubUser_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserListRequest::setPubUser(const std::string& pubUser)
|
||||
{
|
||||
pubUser_ = pubUser;
|
||||
setParameter("PubUser", pubUser);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserListRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
|
||||
@@ -38,6 +38,17 @@ void DescribeUserInfoInChannelRequest::setUserId(const std::string& userId)
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string DescribeUserInfoInChannelRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeUserInfoInChannelRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DescribeUserInfoInChannelRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -27,6 +27,17 @@ DisableMAURuleRequest::DisableMAURuleRequest() :
|
||||
DisableMAURuleRequest::~DisableMAURuleRequest()
|
||||
{}
|
||||
|
||||
std::string DisableMAURuleRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DisableMAURuleRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DisableMAURuleRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
73
rtc/src/model/DisableMPURuleRequest.cc
Normal file
73
rtc/src/model/DisableMPURuleRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/DisableMPURuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DisableMPURuleRequest;
|
||||
|
||||
DisableMPURuleRequest::DisableMPURuleRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DisableMPURule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableMPURuleRequest::~DisableMPURuleRequest()
|
||||
{}
|
||||
|
||||
std::string DisableMPURuleRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DisableMPURuleRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long DisableMPURuleRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DisableMPURuleRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DisableMPURuleRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DisableMPURuleRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
long DisableMPURuleRequest::getRuleId()const
|
||||
{
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void DisableMPURuleRequest::setRuleId(long ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setParameter("RuleId", std::to_string(ruleId));
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/DeleteTemplateResult.h>
|
||||
#include <alibabacloud/rtc/model/DisableMPURuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DeleteTemplateResult::DeleteTemplateResult() :
|
||||
DisableMPURuleResult::DisableMPURuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTemplateResult::DeleteTemplateResult(const std::string &payload) :
|
||||
DisableMPURuleResult::DisableMPURuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTemplateResult::~DeleteTemplateResult()
|
||||
DisableMPURuleResult::~DisableMPURuleResult()
|
||||
{}
|
||||
|
||||
void DeleteTemplateResult::parse(const std::string &payload)
|
||||
void DisableMPURuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -27,6 +27,17 @@ EnableMAURuleRequest::EnableMAURuleRequest() :
|
||||
EnableMAURuleRequest::~EnableMAURuleRequest()
|
||||
{}
|
||||
|
||||
std::string EnableMAURuleRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void EnableMAURuleRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long EnableMAURuleRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
73
rtc/src/model/EnableMPURuleRequest.cc
Normal file
73
rtc/src/model/EnableMPURuleRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/EnableMPURuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::EnableMPURuleRequest;
|
||||
|
||||
EnableMPURuleRequest::EnableMPURuleRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "EnableMPURule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableMPURuleRequest::~EnableMPURuleRequest()
|
||||
{}
|
||||
|
||||
std::string EnableMPURuleRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void EnableMPURuleRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long EnableMPURuleRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void EnableMPURuleRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string EnableMPURuleRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void EnableMPURuleRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
long EnableMPURuleRequest::getRuleId()const
|
||||
{
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void EnableMPURuleRequest::setRuleId(long ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setParameter("RuleId", std::to_string(ruleId));
|
||||
}
|
||||
|
||||
44
rtc/src/model/EnableMPURuleResult.cc
Normal file
44
rtc/src/model/EnableMPURuleResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/EnableMPURuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
EnableMPURuleResult::EnableMPURuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableMPURuleResult::EnableMPURuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableMPURuleResult::~EnableMPURuleResult()
|
||||
{}
|
||||
|
||||
void EnableMPURuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -38,6 +38,17 @@ void GetMPUTaskStatusRequest::setTaskId(const std::string& taskId)
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
std::string GetMPUTaskStatusRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void GetMPUTaskStatusRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long GetMPUTaskStatusRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/GetTaskStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::GetTaskStatusRequest;
|
||||
|
||||
GetTaskStatusRequest::GetTaskStatusRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "GetTaskStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTaskStatusRequest::~GetTaskStatusRequest()
|
||||
{}
|
||||
|
||||
long GetTaskStatusRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void GetTaskStatusRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string GetTaskStatusRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void GetTaskStatusRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string GetTaskStatusRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void GetTaskStatusRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
long GetTaskStatusRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void GetTaskStatusRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
@@ -27,17 +27,6 @@ ModifyAppRequest::ModifyAppRequest() :
|
||||
ModifyAppRequest::~ModifyAppRequest()
|
||||
{}
|
||||
|
||||
long ModifyAppRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyAppRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
@@ -49,6 +38,28 @@ void ModifyAppRequest::setAppName(const std::string& appName)
|
||||
setParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void ModifyAppRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long ModifyAppRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyAppRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
|
||||
@@ -71,6 +71,17 @@ void ModifyConferenceRequest::setConferenceName(const std::string& conferenceNam
|
||||
setParameter("ConferenceName", conferenceName);
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void ModifyConferenceRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long ModifyConferenceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
116
rtc/src/model/ModifyMPULayoutRequest.cc
Normal file
116
rtc/src/model/ModifyMPULayoutRequest.cc
Normal file
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* 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/rtc/model/ModifyMPULayoutRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::ModifyMPULayoutRequest;
|
||||
|
||||
ModifyMPULayoutRequest::ModifyMPULayoutRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "ModifyMPULayout")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyMPULayoutRequest::~ModifyMPULayoutRequest()
|
||||
{}
|
||||
|
||||
long ModifyMPULayoutRequest::getLayoutId()const
|
||||
{
|
||||
return layoutId_;
|
||||
}
|
||||
|
||||
void ModifyMPULayoutRequest::setLayoutId(long layoutId)
|
||||
{
|
||||
layoutId_ = layoutId;
|
||||
setParameter("LayoutId", std::to_string(layoutId));
|
||||
}
|
||||
|
||||
std::vector<ModifyMPULayoutRequest::Panes> ModifyMPULayoutRequest::getPanes()const
|
||||
{
|
||||
return panes_;
|
||||
}
|
||||
|
||||
void ModifyMPULayoutRequest::setPanes(const std::vector<Panes>& panes)
|
||||
{
|
||||
panes_ = panes;
|
||||
for(int dep1 = 0; dep1!= panes.size(); dep1++) {
|
||||
auto panesObj = panes.at(dep1);
|
||||
std::string panesObjStr = "Panes." + std::to_string(dep1 + 1);
|
||||
setParameter(panesObjStr + ".PaneId", std::to_string(panesObj.paneId));
|
||||
setParameter(panesObjStr + ".MajorPane", std::to_string(panesObj.majorPane));
|
||||
setParameter(panesObjStr + ".X", std::to_string(panesObj.x));
|
||||
setParameter(panesObjStr + ".Y", std::to_string(panesObj.y));
|
||||
setParameter(panesObjStr + ".Width", std::to_string(panesObj.width));
|
||||
setParameter(panesObjStr + ".Height", std::to_string(panesObj.height));
|
||||
setParameter(panesObjStr + ".ZOrder", std::to_string(panesObj.zOrder));
|
||||
}
|
||||
}
|
||||
|
||||
std::string ModifyMPULayoutRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void ModifyMPULayoutRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long ModifyMPULayoutRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyMPULayoutRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyMPULayoutRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ModifyMPULayoutRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string ModifyMPULayoutRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ModifyMPULayoutRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int ModifyMPULayoutRequest::getAudioMixCount()const
|
||||
{
|
||||
return audioMixCount_;
|
||||
}
|
||||
|
||||
void ModifyMPULayoutRequest::setAudioMixCount(int audioMixCount)
|
||||
{
|
||||
audioMixCount_ = audioMixCount;
|
||||
setParameter("AudioMixCount", std::to_string(audioMixCount));
|
||||
}
|
||||
|
||||
44
rtc/src/model/ModifyMPULayoutResult.cc
Normal file
44
rtc/src/model/ModifyMPULayoutResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/ModifyMPULayoutResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
ModifyMPULayoutResult::ModifyMPULayoutResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyMPULayoutResult::ModifyMPULayoutResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyMPULayoutResult::~ModifyMPULayoutResult()
|
||||
{}
|
||||
|
||||
void ModifyMPULayoutResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -38,6 +38,17 @@ void MuteAudioAllRequest::setConferenceId(const std::string& conferenceId)
|
||||
setParameter("ConferenceId", conferenceId);
|
||||
}
|
||||
|
||||
std::string MuteAudioAllRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void MuteAudioAllRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long MuteAudioAllRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -51,6 +51,17 @@ void MuteAudioRequest::setConferenceId(const std::string& conferenceId)
|
||||
setParameter("ConferenceId", conferenceId);
|
||||
}
|
||||
|
||||
std::string MuteAudioRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void MuteAudioRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long MuteAudioRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -60,6 +60,17 @@ void ReceiveNotifyRequest::setEvent(const std::string& event)
|
||||
setParameter("Event", event);
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void ReceiveNotifyRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long ReceiveNotifyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -51,6 +51,17 @@ void RemoveParticipantsRequest::setConferenceId(const std::string& conferenceId)
|
||||
setParameter("ConferenceId", conferenceId);
|
||||
}
|
||||
|
||||
std::string RemoveParticipantsRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void RemoveParticipantsRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long RemoveParticipantsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -40,6 +40,17 @@ void RemoveTerminalsRequest::setTerminalIds(const std::vector<std::string>& term
|
||||
}
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void RemoveTerminalsRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long RemoveTerminalsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -60,6 +60,17 @@ void SetChannelPropertyRequest::setDuration(int duration)
|
||||
setParameter("Duration", std::to_string(duration));
|
||||
}
|
||||
|
||||
std::string SetChannelPropertyRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void SetChannelPropertyRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string SetChannelPropertyRequest::getTopics()const
|
||||
{
|
||||
return topics_;
|
||||
|
||||
@@ -27,6 +27,17 @@ StartMPUTaskRequest::StartMPUTaskRequest() :
|
||||
StartMPUTaskRequest::~StartMPUTaskRequest()
|
||||
{}
|
||||
|
||||
int StartMPUTaskRequest::getPayloadType()const
|
||||
{
|
||||
return payloadType_;
|
||||
}
|
||||
|
||||
void StartMPUTaskRequest::setPayloadType(int payloadType)
|
||||
{
|
||||
payloadType_ = payloadType;
|
||||
setParameter("PayloadType", std::to_string(payloadType));
|
||||
}
|
||||
|
||||
std::vector<StartMPUTaskRequest::UserPanes> StartMPUTaskRequest::getUserPanes()const
|
||||
{
|
||||
return userPanes_;
|
||||
@@ -44,6 +55,17 @@ void StartMPUTaskRequest::setUserPanes(const std::vector<UserPanes>& userPanes)
|
||||
}
|
||||
}
|
||||
|
||||
int StartMPUTaskRequest::getRtpExtInfo()const
|
||||
{
|
||||
return rtpExtInfo_;
|
||||
}
|
||||
|
||||
void StartMPUTaskRequest::setRtpExtInfo(int rtpExtInfo)
|
||||
{
|
||||
rtpExtInfo_ = rtpExtInfo;
|
||||
setParameter("RtpExtInfo", std::to_string(rtpExtInfo));
|
||||
}
|
||||
|
||||
int StartMPUTaskRequest::getBackgroundColor()const
|
||||
{
|
||||
return backgroundColor_;
|
||||
@@ -66,6 +88,17 @@ void StartMPUTaskRequest::setCropMode(int cropMode)
|
||||
setParameter("CropMode", std::to_string(cropMode));
|
||||
}
|
||||
|
||||
int StartMPUTaskRequest::getReportVad()const
|
||||
{
|
||||
return reportVad_;
|
||||
}
|
||||
|
||||
void StartMPUTaskRequest::setReportVad(int reportVad)
|
||||
{
|
||||
reportVad_ = reportVad;
|
||||
setParameter("ReportVad", std::to_string(reportVad));
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getTaskProfile()const
|
||||
{
|
||||
return taskProfile_;
|
||||
@@ -101,6 +134,17 @@ void StartMPUTaskRequest::setTaskId(const std::string& taskId)
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void StartMPUTaskRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getStreamURL()const
|
||||
{
|
||||
return streamURL_;
|
||||
@@ -112,6 +156,17 @@ void StartMPUTaskRequest::setStreamURL(const std::string& streamURL)
|
||||
setParameter("StreamURL", streamURL);
|
||||
}
|
||||
|
||||
long StartMPUTaskRequest::getVadInterval()const
|
||||
{
|
||||
return vadInterval_;
|
||||
}
|
||||
|
||||
void StartMPUTaskRequest::setVadInterval(long vadInterval)
|
||||
{
|
||||
vadInterval_ = vadInterval;
|
||||
setParameter("VadInterval", std::to_string(vadInterval));
|
||||
}
|
||||
|
||||
long StartMPUTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -147,6 +202,17 @@ void StartMPUTaskRequest::setAppId(const std::string& appId)
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
long StartMPUTaskRequest::getTimeStampRef()const
|
||||
{
|
||||
return timeStampRef_;
|
||||
}
|
||||
|
||||
void StartMPUTaskRequest::setTimeStampRef(long timeStampRef)
|
||||
{
|
||||
timeStampRef_ = timeStampRef;
|
||||
setParameter("TimeStampRef", std::to_string(timeStampRef));
|
||||
}
|
||||
|
||||
int StartMPUTaskRequest::getMediaEncode()const
|
||||
{
|
||||
return mediaEncode_;
|
||||
|
||||
125
rtc/src/model/StartRecordTaskRequest.cc
Normal file
125
rtc/src/model/StartRecordTaskRequest.cc
Normal file
@@ -0,0 +1,125 @@
|
||||
/*
|
||||
* 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/rtc/model/StartRecordTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::StartRecordTaskRequest;
|
||||
|
||||
StartRecordTaskRequest::StartRecordTaskRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "StartRecordTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartRecordTaskRequest::~StartRecordTaskRequest()
|
||||
{}
|
||||
|
||||
std::vector<StartRecordTaskRequest::UserPanes> StartRecordTaskRequest::getUserPanes()const
|
||||
{
|
||||
return userPanes_;
|
||||
}
|
||||
|
||||
void StartRecordTaskRequest::setUserPanes(const std::vector<UserPanes>& userPanes)
|
||||
{
|
||||
userPanes_ = userPanes;
|
||||
for(int dep1 = 0; dep1!= userPanes.size(); dep1++) {
|
||||
auto userPanesObj = userPanes.at(dep1);
|
||||
std::string userPanesObjStr = "UserPanes." + std::to_string(dep1 + 1);
|
||||
setParameter(userPanesObjStr + ".PaneId", std::to_string(userPanesObj.paneId));
|
||||
setParameter(userPanesObjStr + ".UserId", userPanesObj.userId);
|
||||
setParameter(userPanesObjStr + ".SourceType", userPanesObj.sourceType);
|
||||
}
|
||||
}
|
||||
|
||||
std::string StartRecordTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void StartRecordTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
std::string StartRecordTaskRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void StartRecordTaskRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long StartRecordTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StartRecordTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string StartRecordTaskRequest::getTemplateId()const
|
||||
{
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void StartRecordTaskRequest::setTemplateId(const std::string& templateId)
|
||||
{
|
||||
templateId_ = templateId;
|
||||
setParameter("TemplateId", templateId);
|
||||
}
|
||||
|
||||
std::vector<std::string> StartRecordTaskRequest::getSubSpecUsers()const
|
||||
{
|
||||
return subSpecUsers_;
|
||||
}
|
||||
|
||||
void StartRecordTaskRequest::setSubSpecUsers(const std::vector<std::string>& subSpecUsers)
|
||||
{
|
||||
subSpecUsers_ = subSpecUsers;
|
||||
for(int dep1 = 0; dep1!= subSpecUsers.size(); dep1++) {
|
||||
setParameter("SubSpecUsers."+ std::to_string(dep1), subSpecUsers.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string StartRecordTaskRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void StartRecordTaskRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string StartRecordTaskRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void StartRecordTaskRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
44
rtc/src/model/StartRecordTaskResult.cc
Normal file
44
rtc/src/model/StartRecordTaskResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/StartRecordTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
StartRecordTaskResult::StartRecordTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartRecordTaskResult::StartRecordTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartRecordTaskResult::~StartRecordTaskResult()
|
||||
{}
|
||||
|
||||
void StartRecordTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,101 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/StartTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::StartTaskRequest;
|
||||
|
||||
StartTaskRequest::StartTaskRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "StartTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartTaskRequest::~StartTaskRequest()
|
||||
{}
|
||||
|
||||
std::vector<StartTaskRequest::MixPanes> StartTaskRequest::getMixPanes()const
|
||||
{
|
||||
return mixPanes_;
|
||||
}
|
||||
|
||||
void StartTaskRequest::setMixPanes(const std::vector<MixPanes>& mixPanes)
|
||||
{
|
||||
mixPanes_ = mixPanes;
|
||||
for(int dep1 = 0; dep1!= mixPanes.size(); dep1++) {
|
||||
auto mixPanesObj = mixPanes.at(dep1);
|
||||
std::string mixPanesObjStr = "MixPanes." + std::to_string(dep1 + 1);
|
||||
setParameter(mixPanesObjStr + ".PaneId", std::to_string(mixPanesObj.paneId));
|
||||
setParameter(mixPanesObjStr + ".UserId", mixPanesObj.userId);
|
||||
setParameter(mixPanesObjStr + ".SourceType", mixPanesObj.sourceType);
|
||||
}
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getIdempotentId()const
|
||||
{
|
||||
return idempotentId_;
|
||||
}
|
||||
|
||||
void StartTaskRequest::setIdempotentId(const std::string& idempotentId)
|
||||
{
|
||||
idempotentId_ = idempotentId;
|
||||
setParameter("IdempotentId", idempotentId);
|
||||
}
|
||||
|
||||
long StartTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StartTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long StartTaskRequest::getTemplateId()const
|
||||
{
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void StartTaskRequest::setTemplateId(long templateId)
|
||||
{
|
||||
templateId_ = templateId;
|
||||
setParameter("TemplateId", std::to_string(templateId));
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void StartTaskRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void StartTaskRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
84
rtc/src/model/StopChannelUserPublishRequest.cc
Normal file
84
rtc/src/model/StopChannelUserPublishRequest.cc
Normal 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/rtc/model/StopChannelUserPublishRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::StopChannelUserPublishRequest;
|
||||
|
||||
StopChannelUserPublishRequest::StopChannelUserPublishRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "StopChannelUserPublish")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopChannelUserPublishRequest::~StopChannelUserPublishRequest()
|
||||
{}
|
||||
|
||||
std::string StopChannelUserPublishRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void StopChannelUserPublishRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string StopChannelUserPublishRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void StopChannelUserPublishRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long StopChannelUserPublishRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StopChannelUserPublishRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string StopChannelUserPublishRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void StopChannelUserPublishRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string StopChannelUserPublishRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void StopChannelUserPublishRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
@@ -14,38 +14,31 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/StartTaskResult.h>
|
||||
#include <alibabacloud/rtc/model/StopChannelUserPublishResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
StartTaskResult::StartTaskResult() :
|
||||
StopChannelUserPublishResult::StopChannelUserPublishResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartTaskResult::StartTaskResult(const std::string &payload) :
|
||||
StopChannelUserPublishResult::StopChannelUserPublishResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartTaskResult::~StartTaskResult()
|
||||
StopChannelUserPublishResult::~StopChannelUserPublishResult()
|
||||
{}
|
||||
|
||||
void StartTaskResult::parse(const std::string &payload)
|
||||
void StopChannelUserPublishResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long StartTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,28 @@ StopMPUTaskRequest::StopMPUTaskRequest() :
|
||||
StopMPUTaskRequest::~StopMPUTaskRequest()
|
||||
{}
|
||||
|
||||
std::string StopMPUTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void StopMPUTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
std::string StopMPUTaskRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void StopMPUTaskRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long StopMPUTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -49,14 +71,3 @@ void StopMPUTaskRequest::setAppId(const std::string& appId)
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string StopMPUTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void StopMPUTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -14,60 +14,60 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/StopTaskRequest.h>
|
||||
#include <alibabacloud/rtc/model/StopRecordTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::StopTaskRequest;
|
||||
using AlibabaCloud::Rtc::Model::StopRecordTaskRequest;
|
||||
|
||||
StopTaskRequest::StopTaskRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "StopTask")
|
||||
StopRecordTaskRequest::StopRecordTaskRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "StopRecordTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopTaskRequest::~StopTaskRequest()
|
||||
StopRecordTaskRequest::~StopRecordTaskRequest()
|
||||
{}
|
||||
|
||||
long StopTaskRequest::getOwnerId()const
|
||||
std::string StopRecordTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void StopRecordTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
std::string StopRecordTaskRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void StopRecordTaskRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long StopRecordTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StopTaskRequest::setOwnerId(long ownerId)
|
||||
void StopRecordTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string StopTaskRequest::getAppId()const
|
||||
std::string StopRecordTaskRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void StopTaskRequest::setAppId(const std::string& appId)
|
||||
void StopRecordTaskRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string StopTaskRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void StopTaskRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
long StopTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void StopTaskRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
44
rtc/src/model/StopRecordTaskResult.cc
Normal file
44
rtc/src/model/StopRecordTaskResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/StopRecordTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
StopRecordTaskResult::StopRecordTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopRecordTaskResult::StopRecordTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopRecordTaskResult::~StopRecordTaskResult()
|
||||
{}
|
||||
|
||||
void StopRecordTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -38,6 +38,17 @@ void UnmuteAudioAllRequest::setConferenceId(const std::string& conferenceId)
|
||||
setParameter("ConferenceId", conferenceId);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioAllRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void UnmuteAudioAllRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long UnmuteAudioAllRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -51,6 +51,17 @@ void UnmuteAudioRequest::setConferenceId(const std::string& conferenceId)
|
||||
setParameter("ConferenceId", conferenceId);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void UnmuteAudioRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long UnmuteAudioRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -27,6 +27,17 @@ UpdateChannelRequest::UpdateChannelRequest() :
|
||||
UpdateChannelRequest::~UpdateChannelRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateChannelRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void UpdateChannelRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long UpdateChannelRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -90,6 +90,17 @@ void UpdateMPULayoutRequest::setTaskId(const std::string& taskId)
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
std::string UpdateMPULayoutRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void UpdateMPULayoutRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
long UpdateMPULayoutRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
187
rtc/src/model/UpdateRecordTemplateRequest.cc
Normal file
187
rtc/src/model/UpdateRecordTemplateRequest.cc
Normal file
@@ -0,0 +1,187 @@
|
||||
/*
|
||||
* 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/rtc/model/UpdateRecordTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::UpdateRecordTemplateRequest;
|
||||
|
||||
UpdateRecordTemplateRequest::UpdateRecordTemplateRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "UpdateRecordTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateRecordTemplateRequest::~UpdateRecordTemplateRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> UpdateRecordTemplateRequest::getFormats()const
|
||||
{
|
||||
return formats_;
|
||||
}
|
||||
|
||||
void UpdateRecordTemplateRequest::setFormats(const std::vector<std::string>& formats)
|
||||
{
|
||||
formats_ = formats;
|
||||
for(int dep1 = 0; dep1!= formats.size(); dep1++) {
|
||||
setParameter("Formats."+ std::to_string(dep1), formats.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdateRecordTemplateRequest::getOssFilePrefix()const
|
||||
{
|
||||
return ossFilePrefix_;
|
||||
}
|
||||
|
||||
void UpdateRecordTemplateRequest::setOssFilePrefix(const std::string& ossFilePrefix)
|
||||
{
|
||||
ossFilePrefix_ = ossFilePrefix;
|
||||
setParameter("OssFilePrefix", ossFilePrefix);
|
||||
}
|
||||
|
||||
int UpdateRecordTemplateRequest::getBackgroundColor()const
|
||||
{
|
||||
return backgroundColor_;
|
||||
}
|
||||
|
||||
void UpdateRecordTemplateRequest::setBackgroundColor(int backgroundColor)
|
||||
{
|
||||
backgroundColor_ = backgroundColor;
|
||||
setParameter("BackgroundColor", std::to_string(backgroundColor));
|
||||
}
|
||||
|
||||
std::string UpdateRecordTemplateRequest::getTaskProfile()const
|
||||
{
|
||||
return taskProfile_;
|
||||
}
|
||||
|
||||
void UpdateRecordTemplateRequest::setTaskProfile(const std::string& taskProfile)
|
||||
{
|
||||
taskProfile_ = taskProfile;
|
||||
setParameter("TaskProfile", taskProfile);
|
||||
}
|
||||
|
||||
std::vector<long> UpdateRecordTemplateRequest::getLayoutIds()const
|
||||
{
|
||||
return layoutIds_;
|
||||
}
|
||||
|
||||
void UpdateRecordTemplateRequest::setLayoutIds(const std::vector<long>& layoutIds)
|
||||
{
|
||||
layoutIds_ = layoutIds;
|
||||
for(int dep1 = 0; dep1!= layoutIds.size(); dep1++) {
|
||||
setParameter("LayoutIds."+ std::to_string(dep1), std::to_string(layoutIds.at(dep1)));
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdateRecordTemplateRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void UpdateRecordTemplateRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string UpdateRecordTemplateRequest::getOssBucket()const
|
||||
{
|
||||
return ossBucket_;
|
||||
}
|
||||
|
||||
void UpdateRecordTemplateRequest::setOssBucket(const std::string& ossBucket)
|
||||
{
|
||||
ossBucket_ = ossBucket;
|
||||
setParameter("OssBucket", ossBucket);
|
||||
}
|
||||
|
||||
std::string UpdateRecordTemplateRequest::getMnsQueue()const
|
||||
{
|
||||
return mnsQueue_;
|
||||
}
|
||||
|
||||
void UpdateRecordTemplateRequest::setMnsQueue(const std::string& mnsQueue)
|
||||
{
|
||||
mnsQueue_ = mnsQueue;
|
||||
setParameter("MnsQueue", mnsQueue);
|
||||
}
|
||||
|
||||
int UpdateRecordTemplateRequest::getFileSplitInterval()const
|
||||
{
|
||||
return fileSplitInterval_;
|
||||
}
|
||||
|
||||
void UpdateRecordTemplateRequest::setFileSplitInterval(int fileSplitInterval)
|
||||
{
|
||||
fileSplitInterval_ = fileSplitInterval;
|
||||
setParameter("FileSplitInterval", std::to_string(fileSplitInterval));
|
||||
}
|
||||
|
||||
long UpdateRecordTemplateRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UpdateRecordTemplateRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UpdateRecordTemplateRequest::getTemplateId()const
|
||||
{
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void UpdateRecordTemplateRequest::setTemplateId(const std::string& templateId)
|
||||
{
|
||||
templateId_ = templateId;
|
||||
setParameter("TemplateId", templateId);
|
||||
}
|
||||
|
||||
std::string UpdateRecordTemplateRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void UpdateRecordTemplateRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string UpdateRecordTemplateRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateRecordTemplateRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int UpdateRecordTemplateRequest::getMediaEncode()const
|
||||
{
|
||||
return mediaEncode_;
|
||||
}
|
||||
|
||||
void UpdateRecordTemplateRequest::setMediaEncode(int mediaEncode)
|
||||
{
|
||||
mediaEncode_ = mediaEncode;
|
||||
setParameter("MediaEncode", std::to_string(mediaEncode));
|
||||
}
|
||||
|
||||
51
rtc/src/model/UpdateRecordTemplateResult.cc
Normal file
51
rtc/src/model/UpdateRecordTemplateResult.cc
Normal 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/rtc/model/UpdateRecordTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
UpdateRecordTemplateResult::UpdateRecordTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateRecordTemplateResult::UpdateRecordTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateRecordTemplateResult::~UpdateRecordTemplateResult()
|
||||
{}
|
||||
|
||||
void UpdateRecordTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TemplateId"].isNull())
|
||||
templateId_ = value["TemplateId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateRecordTemplateResult::getTemplateId()const
|
||||
{
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user