Skip to content

Add subtitle in video creation payload #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .openapi-generator/oas_apivideo.yaml-defaut-cli.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5f3de7eed3d5a2900fd1d2d119c814cf00ac4e957ba0388f06acaf22f51e8e62
5ec6b63f3aacb48fd403e5ff1ba7674b60e65b4581e31d3b33fb0aa0a7fe6f01
1 change: 1 addition & 0 deletions docs/VideoCreationPayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Title** | **string** | The title of your new video. |
**Subtitle** | **string** | A subtitle for your video. | [optional]
**Description** | **string** | A brief description of your video. | [optional]
**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]
**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]
Expand Down
4 changes: 2 additions & 2 deletions src/Api/VideosApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public Task<ApiResponse<Video>> createWithHttpInfoAsync(VideoCreationPayload vid
if (videoCreationPayload != null && videoCreationPayload.title == null) {
throw new ApiException(400,"Missing required parameter 'videoCreationPayload.Title' when calling VideosApi->create");
}

// verify the required parameter 'videoCreationPayload' is set
if (videoCreationPayload == null)
throw new ApiException(400, "Missing required parameter 'videoCreationPayload' when calling VideosApi->create");
Expand Down Expand Up @@ -157,7 +157,7 @@ public ApiResponse<Video> createWithHttpInfo(VideoCreationPayload videoCreationP
if (videoCreationPayload != null && videoCreationPayload.title == null) {
throw new ApiException(400,"Missing required parameter 'videoCreationPayload.Title' when calling VideosApi->create");
}

// verify the required parameter 'videoCreationPayload' is set
if (videoCreationPayload == null)
throw new ApiException(400, "Missing required parameter 'videoCreationPayload' when calling VideosApi->create");
Expand Down
8 changes: 8 additions & 0 deletions src/Model/VideoCreationPayload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ public class VideoCreationPayload: DeepObject {
[JsonProperty(PropertyName = "title")]
public string title { get; set; }
/// <summary>
/// A subtitle for your video.
/// </summary>
/// <value>A subtitle for your video.</value>
[DataMember(Name="subtitle", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "subtitle")]
public string subtitle { get; set; }
/// <summary>
/// A brief description of your video.
/// </summary>
/// <value>A brief description of your video.</value>
Expand Down Expand Up @@ -135,6 +142,7 @@ public override string ToString() {
var sb = new StringBuilder();
sb.Append("class VideoCreationPayload {\n");
sb.Append(" Title: ").Append(title).Append("\n");
sb.Append(" Subtitle: ").Append(subtitle).Append("\n");
sb.Append(" Description: ").Append(description).Append("\n");
sb.Append(" Source: ").Append(source).Append("\n");
sb.Append(" Public: ").Append(_public).Append("\n");
Expand Down
Loading