Skip to content

Commit

Permalink
Add a new swift5/ios client
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierapivideo authored Dec 6, 2021
1 parent faac97c commit c7f093f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ All changes to this project will be documented in this file.
- Add `name` attribute in player themes

## [1.0.0] - 2021-11-15
- Add support of `progressive uploads`
- Add support of `progressive uploads`
1 change: 0 additions & 1 deletion api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8414,7 +8414,6 @@ components:
example: true
type: boolean
required:
- title
- videoId
title: Video
type: object
Expand Down
6 changes: 3 additions & 3 deletions api_videos_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ var videoJSONResponses = []string{`{
var videoStructs = []Video{
{
VideoId: "vi4k0jvEUuaTdRAEjQ4Jfagz",
Title: "Maths video",
Title: PtrString("Maths video"),
Description: PtrString("An amazing video explaining the string theory"),
PublishedAt: PtrString("2019-07-14T23:36:18.598Z"),
UpdatedAt: PtrString("2019-07-14T23:49:18.598Z"),
Expand Down Expand Up @@ -113,7 +113,7 @@ var videoStructs = []Video{
},
{
VideoId: "vi6HangYsow3vXxwdx3YMlAb",
Title: "Maths video 2",
Title: PtrString("Maths video 2"),
Description: PtrString("An amazing video explaining the string theory 2"),
PublishedAt: PtrString("2019-07-16T23:36:18.598Z"),
UpdatedAt: PtrString("2019-07-16T23:49:18.598Z"),
Expand Down Expand Up @@ -518,7 +518,7 @@ func TestVideos_Integration_CreateUploadWithUploadTokenStream(t *testing.T) {
}
}

if lastPart.Title != "10m.mp4.part.a" {
if *lastPart.Title != "10m.mp4.part.a" {
t.Fatalf("invalid title in result: %v != 10m.mp4.part.a", lastPart.Title)
}
}
Expand Down
9 changes: 7 additions & 2 deletions docs/Video.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**VideoId** | **string** | The unique identifier of the video object. |
**CreatedAt** | Pointer to **string** | When a video was created, presented in ISO-8601 format. | [optional]
**Title** | **string** | The title of the video content. |
**Title** | Pointer to **string** | The title of the video content. | [optional]
**Description** | Pointer to **string** | A description for the video content. | [optional]
**PublishedAt** | Pointer to **string** | The date and time the API created the video. Date and time are provided using ISO-8601 UTC format. | [optional]
**UpdatedAt** | Pointer to **string** | The date and time the video was updated. Date and time are provided using ISO-8601 UTC format. | [optional]
Expand All @@ -23,7 +23,7 @@ Name | Type | Description | Notes

### NewVideo

`func NewVideo(videoId string, title string, ) *Video`
`func NewVideo(videoId string, ) *Video`

NewVideo instantiates a new Video object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -102,6 +102,11 @@ and a boolean to check if the value has been set.

SetTitle sets Title field to given value.

### HasTitle

`func (o *Video) HasTitle() bool`

HasTitle returns a boolean if a field has been set.

### GetDescription

Expand Down
31 changes: 19 additions & 12 deletions model_video.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c7f093f

Please sign in to comment.