Skip to content

Commit e168771

Browse files
Add subtitle in video creation payload
1 parent d6fcde9 commit e168771

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5f3de7eed3d5a2900fd1d2d119c814cf00ac4e957ba0388f06acaf22f51e8e62
1+
5ec6b63f3aacb48fd403e5ff1ba7674b60e65b4581e31d3b33fb0aa0a7fe6f01

docs/VideoCreationPayload.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**Title** | **string** | The title of your new video. |
8+
**Subtitle** | **string** | A subtitle for your video. | [optional]
89
**Description** | **string** | A brief description of your video. | [optional]
910
**Source** | **string** | You can either add a video already on the web, by entering the URL of the video, or you can also enter the `videoId` of one of the videos you already have on your api.video acccount, and this will generate a copy of your video. Creating a copy of a video can be especially useful if you want to keep your original video and trim or apply a watermark onto the copy you would create. | [optional]
1011
**Public** | **bool** | Default: True. If set to `false` the video will become private. More information on private videos can be found [here](https://docs.api.video/delivery/video-privacy-access-management) | [optional] [default to true]

src/Api/VideosApi.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public Task<ApiResponse<Video>> createWithHttpInfoAsync(VideoCreationPayload vid
8585
if (videoCreationPayload != null && videoCreationPayload.title == null) {
8686
throw new ApiException(400,"Missing required parameter 'videoCreationPayload.Title' when calling VideosApi->create");
8787
}
88-
88+
8989
// verify the required parameter 'videoCreationPayload' is set
9090
if (videoCreationPayload == null)
9191
throw new ApiException(400, "Missing required parameter 'videoCreationPayload' when calling VideosApi->create");
@@ -157,7 +157,7 @@ public ApiResponse<Video> createWithHttpInfo(VideoCreationPayload videoCreationP
157157
if (videoCreationPayload != null && videoCreationPayload.title == null) {
158158
throw new ApiException(400,"Missing required parameter 'videoCreationPayload.Title' when calling VideosApi->create");
159159
}
160-
160+
161161
// verify the required parameter 'videoCreationPayload' is set
162162
if (videoCreationPayload == null)
163163
throw new ApiException(400, "Missing required parameter 'videoCreationPayload' when calling VideosApi->create");

src/Model/VideoCreationPayload.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ public class VideoCreationPayload: DeepObject {
2020
[JsonProperty(PropertyName = "title")]
2121
public string title { get; set; }
2222
/// <summary>
23+
/// A subtitle for your video.
24+
/// </summary>
25+
/// <value>A subtitle for your video.</value>
26+
[DataMember(Name="subtitle", EmitDefaultValue=false)]
27+
[JsonProperty(PropertyName = "subtitle")]
28+
public string subtitle { get; set; }
29+
/// <summary>
2330
/// A brief description of your video.
2431
/// </summary>
2532
/// <value>A brief description of your video.</value>
@@ -135,6 +142,7 @@ public override string ToString() {
135142
var sb = new StringBuilder();
136143
sb.Append("class VideoCreationPayload {\n");
137144
sb.Append(" Title: ").Append(title).Append("\n");
145+
sb.Append(" Subtitle: ").Append(subtitle).Append("\n");
138146
sb.Append(" Description: ").Append(description).Append("\n");
139147
sb.Append(" Source: ").Append(source).Append("\n");
140148
sb.Append(" Public: ").Append(_public).Append("\n");

0 commit comments

Comments
 (0)