All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.byteplus.model.beans.Functions Maven / Gradle / Ivy
package com.byteplus.model.beans;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Functions {
@JSONField(name = "Name")
String name;
@JSONField(name = "Input")
Object input;
public static Functions GetMetaFunction() {
return new Functions("GetMeta", null);
}
public static Functions SnapShotFunction(double snapShot) {
return new Functions("Snapshot", new FunctionsSnapshotInput(snapShot));
}
public static Functions AddOptionInfoFunction(String title, String tags, String description) {
return new Functions("AddOptionInfo", new FunctionsOptionInfo(title, tags, description, "", 1, "", 0, false));
}
public static Functions AddOptionInfoFunction(String title, String tags, String description, long classificationId) {
return new Functions("AddOptionInfo", new FunctionsOptionInfo(title, tags, description, "", 1, "", classificationId, false));
}
public static Functions AddOptionInfoFunction(String title, String tags, String description, long classificationId, boolean isHlsIndexOnly) {
return new Functions("AddOptionInfo", new FunctionsOptionInfo(title, tags, description, "", 1, "", classificationId, isHlsIndexOnly));
}
public static Functions AddOptionInfoFunction(String title, String tags, String description, String category, String format) {
return new Functions("AddOptionInfo", new FunctionsOptionInfo(title, tags, description, category, 2, format, 0, false));
}
public static Functions StartWorkFlowFunction(String templateId) {
return new Functions("StartWorkflow", new FunctionsWorkflowInput(templateId, new String[]{}));
}
public static Functions StartWorkFlowFunction(String[] templateIds) {
return new Functions("StartWorkflow", new FunctionsWorkflowInput("", templateIds));
}
public static Functions CaptionUploadFunction(FunctionsCaptionInput input) {
return new Functions("CaptionUpload", input);
}
}