Remove PresetReference struct.
This commit is contained in:
@@ -108,11 +108,6 @@ public:
|
||||
};
|
||||
Subtitle subtitle;
|
||||
bool stripMetadata;
|
||||
struct Preset {
|
||||
std::string name;
|
||||
std::string type;
|
||||
};
|
||||
Preset preset;
|
||||
struct Video {
|
||||
struct FilterVideo {
|
||||
struct DelogosItem {
|
||||
@@ -233,6 +228,8 @@ public:
|
||||
void setNotification(const Notification ¬ification);
|
||||
std::string getNotifyEndpoint() const;
|
||||
void setNotifyEndpoint(const std::string ¬ifyEndpoint);
|
||||
int getAlignmentIndex() const;
|
||||
void setAlignmentIndex(int alignmentIndex);
|
||||
std::string getProjectName() const;
|
||||
void setProjectName(const std::string &projectName);
|
||||
std::string getNotifyTopicName() const;
|
||||
@@ -248,6 +245,7 @@ private:
|
||||
std::string userData_;
|
||||
Notification notification_;
|
||||
std::string notifyEndpoint_;
|
||||
int alignmentIndex_;
|
||||
std::string projectName_;
|
||||
std::string notifyTopicName_;
|
||||
CredentialConfig credentialConfig_;
|
||||
|
||||
@@ -45,15 +45,12 @@ public:
|
||||
void setProjectName(const std::string &projectName);
|
||||
CredentialConfig getCredentialConfig() const;
|
||||
void setCredentialConfig(const CredentialConfig &credentialConfig);
|
||||
std::string getToken() const;
|
||||
void setToken(const std::string &token);
|
||||
std::string getSourceURI() const;
|
||||
void setSourceURI(const std::string &sourceURI);
|
||||
|
||||
private:
|
||||
std::string projectName_;
|
||||
CredentialConfig credentialConfig_;
|
||||
std::string token_;
|
||||
std::string sourceURI_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -97,8 +97,6 @@ void CreateMediaConvertTaskRequest::setTargets(const std::vector<CreateMediaConv
|
||||
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Subtitle.ExtractSubtitle.Format", targets[dep1].subtitle.extractSubtitle.format);
|
||||
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Subtitle.ExtractSubtitle.URI", targets[dep1].subtitle.extractSubtitle.uRI);
|
||||
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".StripMetadata", targets[dep1].stripMetadata ? "true" : "false");
|
||||
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Preset.Name", targets[dep1].preset.name);
|
||||
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Preset.Type", targets[dep1].preset.type);
|
||||
for(int dep2 = 0; dep2 != targets[dep1].video.filterVideo.delogos.size(); dep2++) {
|
||||
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Delogos." + std::to_string(dep2 + 1) + ".Duration", std::to_string(targets[dep1].video.filterVideo.delogos[dep2].duration));
|
||||
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Delogos." + std::to_string(dep2 + 1) + ".Dx", std::to_string(targets[dep1].video.filterVideo.delogos[dep2].dx));
|
||||
@@ -196,6 +194,15 @@ void CreateMediaConvertTaskRequest::setNotifyEndpoint(const std::string ¬ifyE
|
||||
setParameter(std::string("NotifyEndpoint"), notifyEndpoint);
|
||||
}
|
||||
|
||||
int CreateMediaConvertTaskRequest::getAlignmentIndex() const {
|
||||
return alignmentIndex_;
|
||||
}
|
||||
|
||||
void CreateMediaConvertTaskRequest::setAlignmentIndex(int alignmentIndex) {
|
||||
alignmentIndex_ = alignmentIndex;
|
||||
setParameter(std::string("AlignmentIndex"), std::to_string(alignmentIndex));
|
||||
}
|
||||
|
||||
std::string CreateMediaConvertTaskRequest::getProjectName() const {
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
@@ -49,15 +49,6 @@ void LiveTranscodingRequest::setCredentialConfig(const LiveTranscodingRequest::C
|
||||
setParameter(std::string("CredentialConfig") + ".Policy", credentialConfig.policy);
|
||||
}
|
||||
|
||||
std::string LiveTranscodingRequest::getToken() const {
|
||||
return token_;
|
||||
}
|
||||
|
||||
void LiveTranscodingRequest::setToken(const std::string &token) {
|
||||
token_ = token;
|
||||
setParameter(std::string("Token"), token);
|
||||
}
|
||||
|
||||
std::string LiveTranscodingRequest::getSourceURI() const {
|
||||
return sourceURI_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user