Skip to content

Commit

Permalink
feat(csharp) .Net 5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierapivideo authored Jun 12, 2024
1 parent 8d40f6b commit 66d5b2d
Show file tree
Hide file tree
Showing 23 changed files with 203 additions and 234 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [ '3.1.x' ]
dotnet: [ '5.x' ]
steps:
- uses: actions/checkout@v2
- name: Setup Dotnet ${{ matrix.dotnet }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [ '3.1.x' ]
dotnet: [ '5.x' ]
steps:
- uses: actions/checkout@v2
- name: Setup Dotnet ${{ matrix.dotnet }}
Expand Down
13 changes: 8 additions & 5 deletions ApiVideo.sln
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
VisualStudioVersion = 12.0.0.0
MinimumVisualStudioVersion = 10.0.0.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApiVideo", "src\ApiVideo.csproj", "{47CD76E4-3F74-3BC2-A1BA-AF194D07E1FA}"
# Visual Studio Version 17
VisualStudioVersion = 17.8.34511.84
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApiVideo", "src\ApiVideo.csproj", "{47CD76E4-3F74-3BC2-A1BA-AF194D07E1FA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApiVideo.Test", "tests\ApiVideoTests.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApiVideoTests", "tests\ApiVideoTests.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
ProjectSection(ProjectDependencies) = postProject
{47CD76E4-3F74-3BC2-A1BA-AF194D07E1FA} = {47CD76E4-3F74-3BC2-A1BA-AF194D07E1FA}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
All changes to this project will be documented in this file.

## [1.4.0] - 2024-06-11
- .net 5.0 support

## [1.3.1] - 2024-02-19
- Update VideoStatusIngest enum

Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,14 @@ api.video's C# API client streamlines the coding process. Chunking files is hand
#### Frameworks supported


- .NET 4.0 or later
- Windows Phone 7.1 (Mango)
- .NET 5.0 or later

#### Dependencies


- [RestSharp](https://www.nuget.org/packages/RestSharp) - 105.1.0
- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 7.0.0 or later
- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.2.0 or later
- [RestSharp](https://www.nuget.org/packages/RestSharp) - 111.2.0
- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.3
- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.8.0

We recommend using [NuGet](https://docs.nuget.org/consume/installing-nuget) to obtain the packages:

Expand Down
8 changes: 4 additions & 4 deletions src/Api/AdvancedAuthenticationApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ public ApiResponse<AccessToken> authenticateWithHttpInfo(AuthenticatePayload aut


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down Expand Up @@ -189,8 +189,8 @@ public ApiResponse<AccessToken> refreshWithHttpInfo(RefreshTokenPayload refreshT


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down
8 changes: 4 additions & 4 deletions src/Api/AnalyticsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ public ApiResponse<AnalyticsPlaysResponse> getLiveStreamsPlaysWithHttpInfo(DateT


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down Expand Up @@ -308,8 +308,8 @@ public ApiResponse<AnalyticsPlaysResponse> getVideosPlaysWithHttpInfo(DateTime f


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down
20 changes: 10 additions & 10 deletions src/Api/CaptionsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public ApiResponse<Caption> uploadWithHttpInfo(string videoId, string language,


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down Expand Up @@ -190,8 +190,8 @@ public ApiResponse<Caption> getWithHttpInfo(string videoId, string language)


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down Expand Up @@ -288,8 +288,8 @@ public ApiResponse<Caption> updateWithHttpInfo(string videoId, string language,


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Patch, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down Expand Up @@ -361,8 +361,8 @@ public ApiResponse<Object> deleteWithHttpInfo(string videoId, string language)


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down Expand Up @@ -436,8 +436,8 @@ public ApiResponse<CaptionsListResponse> listWithHttpInfo(string videoId, int? c


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down
16 changes: 8 additions & 8 deletions src/Api/ChaptersApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public ApiResponse<Chapter> uploadWithHttpInfo(string videoId, string language,


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down Expand Up @@ -186,8 +186,8 @@ public ApiResponse<Chapter> getWithHttpInfo(string videoId, string language)


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down Expand Up @@ -259,8 +259,8 @@ public ApiResponse<Object> deleteWithHttpInfo(string videoId, string language)


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down Expand Up @@ -334,8 +334,8 @@ public ApiResponse<ChaptersListResponse> listWithHttpInfo(string videoId, int? c


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down
28 changes: 14 additions & 14 deletions src/Api/LiveStreamsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ public ApiResponse<LiveStream> createWithHttpInfo(LiveStreamCreationPayload live


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down Expand Up @@ -175,8 +175,8 @@ public ApiResponse<LiveStream> getWithHttpInfo(string liveStreamId)


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down Expand Up @@ -263,8 +263,8 @@ public ApiResponse<LiveStream> updateWithHttpInfo(string liveStreamId, LiveStrea


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Patch, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down Expand Up @@ -329,8 +329,8 @@ public ApiResponse<Object> deleteWithHttpInfo(string liveStreamId)


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down Expand Up @@ -413,8 +413,8 @@ public ApiResponse<LiveStreamListResponse> listWithHttpInfo(string streamKey = d


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down Expand Up @@ -608,8 +608,8 @@ public ApiResponse<LiveStream> uploadThumbnailWithHttpInfo(string liveStreamId,


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down Expand Up @@ -675,8 +675,8 @@ public ApiResponse<LiveStream> deleteThumbnailWithHttpInfo(string liveStreamId)


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath,
Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
RestResponse localVarResponse = (RestResponse) this.ApiClient.CallApi(localVarPath,
Method.Delete, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;
Expand Down
Loading

0 comments on commit 66d5b2d

Please sign in to comment.