Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public partial interface IPlaylistsClient
/// <exception cref="global::SoundCloud.ApiException"></exception>
global::System.Threading.Tasks.Task<global::SoundCloud.Playlist> CreatesAPlaylistAsync(

global::SoundCloud.CreateUpdatePlaylistRequest request,
global::SoundCloud.AllOf<global::SoundCloud.CreateUpdatePlaylistFormRequest, object> request,
global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
Expand All @@ -25,18 +25,16 @@ public partial interface IPlaylistsClient
/// <exception cref="global::SoundCloud.ApiException"></exception>
global::System.Threading.Tasks.Task<global::SoundCloud.AutoSDKHttpResponse<global::SoundCloud.Playlist>> CreatesAPlaylistAsResponseAsync(

global::SoundCloud.CreateUpdatePlaylistRequest request,
global::SoundCloud.AllOf<global::SoundCloud.CreateUpdatePlaylistFormRequest, object> request,
global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Creates a playlist.
/// </summary>
/// <param name="playlist"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::SoundCloud.Playlist> CreatesAPlaylistAsync(
global::SoundCloud.CreateUpdatePlaylistRequestPlaylist? playlist = default,
global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,22 @@ public partial interface ITracksClient
/// Returns the newly created comment on success
/// </summary>
/// <param name="trackUrn"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::SoundCloud.ApiException"></exception>
global::System.Threading.Tasks.Task<global::SoundCloud.Comment> ReturnsTheNewlyCreatedCommentOnSuccessAsync(
string trackUrn,

global::SoundCloud.CreateTracksCommentsRequest request,
global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Returns the newly created comment on success
/// </summary>
/// <param name="trackUrn"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::SoundCloud.ApiException"></exception>
global::System.Threading.Tasks.Task<global::SoundCloud.AutoSDKHttpResponse<global::SoundCloud.Comment>> ReturnsTheNewlyCreatedCommentOnSuccessAsResponseAsync(
string trackUrn,

global::SoundCloud.CreateTracksCommentsRequest request,
global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Returns the newly created comment on success
/// </summary>
/// <param name="trackUrn"></param>
/// <param name="comment"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::SoundCloud.Comment> ReturnsTheNewlyCreatedCommentOnSuccessAsync(
string trackUrn,
global::SoundCloud.CreateTracksCommentsRequestComment? comment = default,
global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ public partial class PlaylistsClient
};
partial void PrepareCreatesAPlaylistArguments(
global::System.Net.Http.HttpClient httpClient,
global::SoundCloud.CreateUpdatePlaylistRequest request);
global::SoundCloud.AllOf<global::SoundCloud.CreateUpdatePlaylistFormRequest, object> request);
partial void PrepareCreatesAPlaylistRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
global::SoundCloud.CreateUpdatePlaylistRequest request);
global::SoundCloud.AllOf<global::SoundCloud.CreateUpdatePlaylistFormRequest, object> request);
partial void ProcessCreatesAPlaylistResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -50,7 +50,7 @@ partial void ProcessCreatesAPlaylistResponseContent(
/// <exception cref="global::SoundCloud.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::SoundCloud.Playlist> CreatesAPlaylistAsync(

global::SoundCloud.CreateUpdatePlaylistRequest request,
global::SoundCloud.AllOf<global::SoundCloud.CreateUpdatePlaylistFormRequest, object> request,
global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand All @@ -72,12 +72,10 @@ partial void ProcessCreatesAPlaylistResponseContent(
/// <exception cref="global::SoundCloud.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::SoundCloud.AutoSDKHttpResponse<global::SoundCloud.Playlist>> CreatesAPlaylistAsResponseAsync(

global::SoundCloud.CreateUpdatePlaylistRequest request,
global::SoundCloud.AllOf<global::SoundCloud.CreateUpdatePlaylistFormRequest, object> request,
global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));

PrepareArguments(
client: HttpClient);
PrepareCreatesAPlaylistArguments(
Expand All @@ -102,7 +100,7 @@ partial void ProcessCreatesAPlaylistResponseContent(
var __maxAttempts = global::SoundCloud.AutoSDKRequestOptionsSupport.GetMaxAttempts(
clientOptions: Options,
requestOptions: requestOptions,
supportsRetry: true);
supportsRetry: false);

global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
{
Expand Down Expand Up @@ -139,12 +137,11 @@ partial void ProcessCreatesAPlaylistResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
mediaType: "application/json");

var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();

__httpRequest.Content = __httpRequestContent;

global::SoundCloud.AutoSDKRequestOptionsSupport.ApplyHeaders(
request: __httpRequest,
clientHeaders: Options.Headers,
Expand Down Expand Up @@ -508,18 +505,15 @@ partial void ProcessCreatesAPlaylistResponseContent(
/// <summary>
/// Creates a playlist.
/// </summary>
/// <param name="playlist"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::SoundCloud.Playlist> CreatesAPlaylistAsync(
global::SoundCloud.CreateUpdatePlaylistRequestPlaylist? playlist = default,
global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::SoundCloud.CreateUpdatePlaylistRequest
var __request = new global::SoundCloud.AllOf<global::SoundCloud.CreateUpdatePlaylistFormRequest, object>
{
Playlist = playlist,
};

return await CreatesAPlaylistAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ public partial class TracksClient
};
partial void PrepareReturnsTheNewlyCreatedCommentOnSuccessArguments(
global::System.Net.Http.HttpClient httpClient,
ref string trackUrn,
global::SoundCloud.CreateTracksCommentsRequest request);
ref string trackUrn);
partial void PrepareReturnsTheNewlyCreatedCommentOnSuccessRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string trackUrn,
global::SoundCloud.CreateTracksCommentsRequest request);
string trackUrn);
partial void ProcessReturnsTheNewlyCreatedCommentOnSuccessResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -47,21 +45,16 @@ partial void ProcessReturnsTheNewlyCreatedCommentOnSuccessResponseContent(
/// Returns the newly created comment on success
/// </summary>
/// <param name="trackUrn"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::SoundCloud.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::SoundCloud.Comment> ReturnsTheNewlyCreatedCommentOnSuccessAsync(
string trackUrn,

global::SoundCloud.CreateTracksCommentsRequest request,
global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __response = await ReturnsTheNewlyCreatedCommentOnSuccessAsResponseAsync(
trackUrn: trackUrn,

request: request,
requestOptions: requestOptions,
cancellationToken: cancellationToken
).ConfigureAwait(false);
Expand All @@ -72,25 +65,19 @@ partial void ProcessReturnsTheNewlyCreatedCommentOnSuccessResponseContent(
/// Returns the newly created comment on success
/// </summary>
/// <param name="trackUrn"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::SoundCloud.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::SoundCloud.AutoSDKHttpResponse<global::SoundCloud.Comment>> ReturnsTheNewlyCreatedCommentOnSuccessAsResponseAsync(
string trackUrn,

global::SoundCloud.CreateTracksCommentsRequest request,
global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));

PrepareArguments(
client: HttpClient);
PrepareReturnsTheNewlyCreatedCommentOnSuccessArguments(
httpClient: HttpClient,
trackUrn: ref trackUrn,
request: request);
trackUrn: ref trackUrn);


var __authorizations = global::SoundCloud.EndPointSecurityResolver.ResolveAuthorizations(
Expand Down Expand Up @@ -147,12 +134,6 @@ partial void ProcessReturnsTheNewlyCreatedCommentOnSuccessResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
mediaType: "application/json; charset=utf-8");
__httpRequest.Content = __httpRequestContent;
global::SoundCloud.AutoSDKRequestOptionsSupport.ApplyHeaders(
request: __httpRequest,
clientHeaders: Options.Headers,
Expand All @@ -164,8 +145,7 @@ partial void ProcessReturnsTheNewlyCreatedCommentOnSuccessResponseContent(
PrepareReturnsTheNewlyCreatedCommentOnSuccessRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
trackUrn: trackUrn!,
request: request);
trackUrn: trackUrn!);

return __httpRequest;
}
Expand Down Expand Up @@ -514,30 +494,5 @@ partial void ProcessReturnsTheNewlyCreatedCommentOnSuccessResponseContent(
__httpRequest?.Dispose();
}
}
/// <summary>
/// Returns the newly created comment on success
/// </summary>
/// <param name="trackUrn"></param>
/// <param name="comment"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::SoundCloud.Comment> ReturnsTheNewlyCreatedCommentOnSuccessAsync(
string trackUrn,
global::SoundCloud.CreateTracksCommentsRequestComment? comment = default,
global::SoundCloud.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::SoundCloud.CreateTracksCommentsRequest
{
Comment = comment,
};

return await ReturnsTheNewlyCreatedCommentOnSuccessAsync(
trackUrn: trackUrn,
request: __request,
requestOptions: requestOptions,
cancellationToken: cancellationToken).ConfigureAwait(false);
}
}
}
Loading