|
| 1 | +using Newtonsoft.Json; |
| 2 | +using Newtonsoft.Json.Converters; |
| 3 | +using System.Collections.Generic; |
| 4 | +using CloudConvert.API.Models.Enums; |
| 5 | + |
| 6 | +namespace CloudConvert.API.Models.TaskOperations |
| 7 | +{ |
| 8 | + public class WatermarkCreateRequest |
| 9 | + { |
| 10 | + [JsonProperty("operation")] |
| 11 | + public static string Operation = "watermark"; |
| 12 | + |
| 13 | + /// <summary> |
| 14 | + /// The input task name(s) for this task. |
| 15 | + /// input: string | string[]; |
| 16 | + /// </summary> |
| 17 | + [JsonProperty("input")] |
| 18 | + public dynamic Input { get; set; } |
| 19 | + |
| 20 | + /// <summary> |
| 21 | + /// If not set, the extension of the input file is used as input format |
| 22 | + /// </summary> |
| 23 | + [JsonProperty("input_format", NullValueHandling = NullValueHandling.Ignore)] |
| 24 | + public string Input_Format { get; set; } |
| 25 | + |
| 26 | + |
| 27 | + [JsonProperty("engine", NullValueHandling = NullValueHandling.Ignore)] |
| 28 | + public string Engine { get; set; } |
| 29 | + |
| 30 | + [JsonProperty("engine_version", NullValueHandling = NullValueHandling.Ignore)] |
| 31 | + public string Engine_Version { get; set; } |
| 32 | + |
| 33 | + /// <summary> |
| 34 | + /// Choose a filename (including extension) for the output file. |
| 35 | + /// </summary> |
| 36 | + [JsonProperty("filename", NullValueHandling = NullValueHandling.Ignore)] |
| 37 | + public string Filename { get; set; } |
| 38 | + |
| 39 | + /// <summary> |
| 40 | + /// Timeout in seconds after the task will be cancelled. |
| 41 | + /// </summary> |
| 42 | + [JsonProperty("timeout", NullValueHandling = NullValueHandling.Ignore)] |
| 43 | + public int? Timeout { get; set; } |
| 44 | + |
| 45 | + /// <summary> |
| 46 | + /// Conversion and engine specific options. Depends on input_format and output_format. |
| 47 | + /// Select input and output format above to show additional conversion options. |
| 48 | + /// </summary> |
| 49 | + [JsonExtensionData] |
| 50 | + [JsonProperty("options", NullValueHandling = NullValueHandling.Ignore)] |
| 51 | + public Dictionary<string, object> Options { get; set; } |
| 52 | + |
| 53 | + } |
| 54 | +} |
0 commit comments