diff --git a/SpotifyAPI.Web.Auth/BrowserUtil.cs b/SpotifyAPI.Web.Auth/BrowserUtil.cs index b8cda771..6e535ecb 100644 --- a/SpotifyAPI.Web.Auth/BrowserUtil.cs +++ b/SpotifyAPI.Web.Auth/BrowserUtil.cs @@ -1,6 +1,6 @@ +using System; using System.Diagnostics; using System.Runtime.InteropServices; -using System; namespace SpotifyAPI.Web.Auth { diff --git a/SpotifyAPI.Web.Auth/EmbedIOAuthServer.cs b/SpotifyAPI.Web.Auth/EmbedIOAuthServer.cs index 90cce5b4..7f6a8c8c 100644 --- a/SpotifyAPI.Web.Auth/EmbedIOAuthServer.cs +++ b/SpotifyAPI.Web.Auth/EmbedIOAuthServer.cs @@ -1,10 +1,10 @@ -using System.Reflection; -using System.Threading; -using System.Web; -using System.Globalization; -using System.Text; using System; +using System.Globalization; +using System.Reflection; +using System.Text; +using System.Threading; using System.Threading.Tasks; +using System.Web; using EmbedIO; using EmbedIO.Actions; diff --git a/SpotifyAPI.Web.Examples/Example.ASP/Pages/Index.cshtml.cs b/SpotifyAPI.Web.Examples/Example.ASP/Pages/Index.cshtml.cs index fb0d8db7..a957fc15 100644 --- a/SpotifyAPI.Web.Examples/Example.ASP/Pages/Index.cshtml.cs +++ b/SpotifyAPI.Web.Examples/Example.ASP/Pages/Index.cshtml.cs @@ -1,4 +1,4 @@ -using System.Threading.Tasks; +using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using SpotifyAPI.Web; diff --git a/SpotifyAPI.Web.Examples/Example.ASP/Pages/Profile.cs b/SpotifyAPI.Web.Examples/Example.ASP/Pages/Profile.cs index a75f7d3d..4ff2ff79 100644 --- a/SpotifyAPI.Web.Examples/Example.ASP/Pages/Profile.cs +++ b/SpotifyAPI.Web.Examples/Example.ASP/Pages/Profile.cs @@ -1,4 +1,4 @@ -using System.Threading.Tasks; +using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/SpotifyAPI.Web.Examples/Example.ASPBlazor/Data/WeatherForecast.cs b/SpotifyAPI.Web.Examples/Example.ASPBlazor/Data/WeatherForecast.cs index ab497b21..7c0ed054 100644 --- a/SpotifyAPI.Web.Examples/Example.ASPBlazor/Data/WeatherForecast.cs +++ b/SpotifyAPI.Web.Examples/Example.ASPBlazor/Data/WeatherForecast.cs @@ -2,14 +2,14 @@ using System; namespace Example.ASPBlazor.Data { - public class WeatherForecast - { - public DateTime Date { get; set; } + public class WeatherForecast + { + public DateTime Date { get; set; } - public int TemperatureC { get; set; } + public int TemperatureC { get; set; } - public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); + public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); - public string Summary { get; set; } - } + public string Summary { get; set; } + } } diff --git a/SpotifyAPI.Web.Examples/Example.ASPBlazor/Data/WeatherForecastService.cs b/SpotifyAPI.Web.Examples/Example.ASPBlazor/Data/WeatherForecastService.cs index 5c574a1f..73b983a4 100644 --- a/SpotifyAPI.Web.Examples/Example.ASPBlazor/Data/WeatherForecastService.cs +++ b/SpotifyAPI.Web.Examples/Example.ASPBlazor/Data/WeatherForecastService.cs @@ -4,22 +4,22 @@ using System.Threading.Tasks; namespace Example.ASPBlazor.Data { - public class WeatherForecastService + public class WeatherForecastService + { + private static readonly string[] Summaries = new[] { - private static readonly string[] Summaries = new[] - { "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" }; - public Task GetForecastAsync(DateTime startDate) - { - var rng = new Random(); - return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast - { - Date = startDate.AddDays(index), - TemperatureC = rng.Next(-20, 55), - Summary = Summaries[rng.Next(Summaries.Length)] - }).ToArray()); - } + public Task GetForecastAsync(DateTime startDate) + { + var rng = new Random(); + return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast + { + Date = startDate.AddDays(index), + TemperatureC = rng.Next(-20, 55), + Summary = Summaries[rng.Next(Summaries.Length)] + }).ToArray()); } + } } diff --git a/SpotifyAPI.Web.Examples/Example.ASPBlazor/Program.cs b/SpotifyAPI.Web.Examples/Example.ASPBlazor/Program.cs index 3d140592..264df646 100644 --- a/SpotifyAPI.Web.Examples/Example.ASPBlazor/Program.cs +++ b/SpotifyAPI.Web.Examples/Example.ASPBlazor/Program.cs @@ -4,17 +4,17 @@ using Microsoft.Extensions.Hosting; namespace Example.ASPBlazor { public class Program + { + public static void Main(string[] args) { - public static void Main(string[] args) - { - CreateHostBuilder(args).Build().Run(); - } - - public static IHostBuilder CreateHostBuilder(string[] args) => - Host.CreateDefaultBuilder(args) - .ConfigureWebHostDefaults(webBuilder => - { - webBuilder.UseStartup(); - }); + CreateHostBuilder(args).Build().Run(); } + + public static IHostBuilder CreateHostBuilder(string[] args) => + Host.CreateDefaultBuilder(args) + .ConfigureWebHostDefaults(webBuilder => + { + webBuilder.UseStartup(); + }); + } } diff --git a/SpotifyAPI.Web.Examples/Example.ASPBlazor/Startup.cs b/SpotifyAPI.Web.Examples/Example.ASPBlazor/Startup.cs index 4cff7c18..f1d3a466 100644 --- a/SpotifyAPI.Web.Examples/Example.ASPBlazor/Startup.cs +++ b/SpotifyAPI.Web.Examples/Example.ASPBlazor/Startup.cs @@ -2,6 +2,7 @@ using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Example.ASPBlazor.Data; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Hosting; @@ -9,52 +10,51 @@ using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using Example.ASPBlazor.Data; namespace Example.ASPBlazor { - public class Startup + public class Startup + { + public Startup(IConfiguration configuration) { - public Startup(IConfiguration configuration) - { - Configuration = configuration; - } - - public IConfiguration Configuration { get; } - - // This method gets called by the runtime. Use this method to add services to the container. - // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 - public void ConfigureServices(IServiceCollection services) - { - services.AddRazorPages(); - services.AddServerSideBlazor(); - services.AddSingleton(); - } - - // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. - public void Configure(IApplicationBuilder app, IWebHostEnvironment env) - { - if (env.IsDevelopment()) - { - app.UseDeveloperExceptionPage(); - } - else - { - app.UseExceptionHandler("/Error"); - // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. - app.UseHsts(); - } - - app.UseHttpsRedirection(); - app.UseStaticFiles(); - - app.UseRouting(); - - app.UseEndpoints(endpoints => - { - endpoints.MapBlazorHub(); - endpoints.MapFallbackToPage("/_Host"); - }); - } + Configuration = configuration; } + + public IConfiguration Configuration { get; } + + // This method gets called by the runtime. Use this method to add services to the container. + // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 + public void ConfigureServices(IServiceCollection services) + { + services.AddRazorPages(); + services.AddServerSideBlazor(); + services.AddSingleton(); + } + + // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. + public void Configure(IApplicationBuilder app, IWebHostEnvironment env) + { + if (env.IsDevelopment()) + { + app.UseDeveloperExceptionPage(); + } + else + { + app.UseExceptionHandler("/Error"); + // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. + app.UseHsts(); + } + + app.UseHttpsRedirection(); + app.UseStaticFiles(); + + app.UseRouting(); + + app.UseEndpoints(endpoints => + { + endpoints.MapBlazorHub(); + endpoints.MapFallbackToPage("/_Host"); + }); + } + } } diff --git a/SpotifyAPI.Web.Examples/Example.CLI.CustomHTML/Program.cs b/SpotifyAPI.Web.Examples/Example.CLI.CustomHTML/Program.cs index b5daf38e..7727e96c 100644 --- a/SpotifyAPI.Web.Examples/Example.CLI.CustomHTML/Program.cs +++ b/SpotifyAPI.Web.Examples/Example.CLI.CustomHTML/Program.cs @@ -1,6 +1,6 @@ -using System.Reflection; using System; using System.Collections.Generic; +using System.Reflection; using System.Threading.Tasks; using SpotifyAPI.Web; using SpotifyAPI.Web.Auth; diff --git a/SpotifyAPI.Web.Examples/Example.CLI.PersistentConfig/Program.cs b/SpotifyAPI.Web.Examples/Example.CLI.PersistentConfig/Program.cs index 5daca3cd..eb230cdd 100644 --- a/SpotifyAPI.Web.Examples/Example.CLI.PersistentConfig/Program.cs +++ b/SpotifyAPI.Web.Examples/Example.CLI.PersistentConfig/Program.cs @@ -1,12 +1,12 @@ +using System; +using System.Collections.Generic; using System.IO; using System.Threading.Tasks; -using System; -using SpotifyAPI.Web.Auth; -using SpotifyAPI.Web; -using System.Collections.Generic; using Newtonsoft.Json; -using static SpotifyAPI.Web.Scopes; +using SpotifyAPI.Web; +using SpotifyAPI.Web.Auth; using Swan.Logging; +using static SpotifyAPI.Web.Scopes; namespace Example.CLI.PersistentConfig { diff --git a/SpotifyAPI.Web.Examples/Example.TokenSwap/Client/Program.cs b/SpotifyAPI.Web.Examples/Example.TokenSwap/Client/Program.cs index 3e69cac0..4b28910f 100644 --- a/SpotifyAPI.Web.Examples/Example.TokenSwap/Client/Program.cs +++ b/SpotifyAPI.Web.Examples/Example.TokenSwap/Client/Program.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Threading.Tasks; using SpotifyAPI.Web; diff --git a/SpotifyAPI.Web.Tests/Clients/SpotifyClientTest.cs b/SpotifyAPI.Web.Tests/Clients/SpotifyClientTest.cs index a47d1c62..d99d3fee 100644 --- a/SpotifyAPI.Web.Tests/Clients/SpotifyClientTest.cs +++ b/SpotifyAPI.Web.Tests/Clients/SpotifyClientTest.cs @@ -1,10 +1,10 @@ -using System.Reflection; using System.Collections.Generic; +using System.Reflection; +using System.Threading; using System.Threading.Tasks; using Moq; using NUnit.Framework; using SpotifyAPI.Web.Http; -using System.Threading; namespace SpotifyAPI.Web.Tests { diff --git a/SpotifyAPI.Web.Tests/Http/NewtonsoftJSONSerializerTest.cs b/SpotifyAPI.Web.Tests/Http/NewtonsoftJSONSerializerTest.cs index c51fd953..71a85423 100644 --- a/SpotifyAPI.Web.Tests/Http/NewtonsoftJSONSerializerTest.cs +++ b/SpotifyAPI.Web.Tests/Http/NewtonsoftJSONSerializerTest.cs @@ -1,10 +1,10 @@ using System.Collections.Generic; -using System.Text; using System.IO; +using System.Net.Http; +using System.Text; using Moq; using NUnit.Framework; using SpotifyAPI.Web.Http; -using System.Net.Http; namespace SpotifyAPI.Web.Tests { diff --git a/SpotifyAPI.Web.Tests/UtilTests/URIExtensionTest.cs b/SpotifyAPI.Web.Tests/UtilTests/URIExtensionTest.cs index 6b3d7a2d..45f24159 100644 --- a/SpotifyAPI.Web.Tests/UtilTests/URIExtensionTest.cs +++ b/SpotifyAPI.Web.Tests/UtilTests/URIExtensionTest.cs @@ -1,5 +1,5 @@ -using System.Collections.Generic; using System; +using System.Collections.Generic; using NUnit.Framework; namespace SpotifyAPI.Web.Tests diff --git a/SpotifyAPI.Web.Tests/UtilTests/URIParameterFormatProviderTest.cs b/SpotifyAPI.Web.Tests/UtilTests/URIParameterFormatProviderTest.cs index 9e6c5221..ce8ce89d 100644 --- a/SpotifyAPI.Web.Tests/UtilTests/URIParameterFormatProviderTest.cs +++ b/SpotifyAPI.Web.Tests/UtilTests/URIParameterFormatProviderTest.cs @@ -1,5 +1,5 @@ -using System.Collections.Generic; using System; +using System.Collections.Generic; using NUnit.Framework; namespace SpotifyAPI.Web.Tests diff --git a/SpotifyAPI.Web/Clients/AlbumsClient.cs b/SpotifyAPI.Web/Clients/AlbumsClient.cs index d6231a5b..d8d4789b 100644 --- a/SpotifyAPI.Web/Clients/AlbumsClient.cs +++ b/SpotifyAPI.Web/Clients/AlbumsClient.cs @@ -13,7 +13,7 @@ namespace SpotifyAPI.Web { Ensure.ArgumentNotNullOrEmptyString(albumId, nameof(albumId)); - return API.Get(URLs.Album(albumId),cancel); + return API.Get(URLs.Album(albumId), cancel); } public Task Get(string albumId, AlbumRequest request, CancellationToken cancel = default) diff --git a/SpotifyAPI.Web/Clients/FollowClient.cs b/SpotifyAPI.Web/Clients/FollowClient.cs index 6f1e2c69..204aab5a 100644 --- a/SpotifyAPI.Web/Clients/FollowClient.cs +++ b/SpotifyAPI.Web/Clients/FollowClient.cs @@ -1,9 +1,9 @@ -using System.Net; using System.Collections.Generic; +using System.Net; +using System.Threading; using System.Threading.Tasks; using SpotifyAPI.Web.Http; using URLs = SpotifyAPI.Web.SpotifyUrls; -using System.Threading; namespace SpotifyAPI.Web { diff --git a/SpotifyAPI.Web/Clients/Interfaces/IPaginator.cs b/SpotifyAPI.Web/Clients/Interfaces/IPaginator.cs index e5d29f60..007343e7 100644 --- a/SpotifyAPI.Web/Clients/Interfaces/IPaginator.cs +++ b/SpotifyAPI.Web/Clients/Interfaces/IPaginator.cs @@ -1,9 +1,9 @@ -using System.Threading; using System; using System.Collections.Generic; +using System.Threading; using System.Threading.Tasks; -using SpotifyAPI.Web.Http; using SpotifyAPI.Web; +using SpotifyAPI.Web.Http; namespace SpotifyAPI.Web { diff --git a/SpotifyAPI.Web/Clients/Interfaces/ISpotifyClient.cs b/SpotifyAPI.Web/Clients/Interfaces/ISpotifyClient.cs index fab6e1c6..4dca71c0 100644 --- a/SpotifyAPI.Web/Clients/Interfaces/ISpotifyClient.cs +++ b/SpotifyAPI.Web/Clients/Interfaces/ISpotifyClient.cs @@ -1,6 +1,6 @@ -using System.Threading; using System; using System.Collections.Generic; +using System.Threading; using System.Threading.Tasks; using SpotifyAPI.Web.Http; diff --git a/SpotifyAPI.Web/Clients/LibraryClient.cs b/SpotifyAPI.Web/Clients/LibraryClient.cs index 01333c45..5afc957d 100644 --- a/SpotifyAPI.Web/Clients/LibraryClient.cs +++ b/SpotifyAPI.Web/Clients/LibraryClient.cs @@ -1,8 +1,8 @@ -using System.Net; using System.Collections.Generic; +using System.Net; +using System.Threading; using System.Threading.Tasks; using SpotifyAPI.Web.Http; -using System.Threading; namespace SpotifyAPI.Web { diff --git a/SpotifyAPI.Web/Clients/OAuthClient.cs b/SpotifyAPI.Web/Clients/OAuthClient.cs index fb81e734..7fb36b5d 100644 --- a/SpotifyAPI.Web/Clients/OAuthClient.cs +++ b/SpotifyAPI.Web/Clients/OAuthClient.cs @@ -1,10 +1,10 @@ -using System.Text; using System; -using System.Net.Http; using System.Collections.Generic; +using System.Net.Http; +using System.Text; +using System.Threading; using System.Threading.Tasks; using SpotifyAPI.Web.Http; -using System.Threading; namespace SpotifyAPI.Web { diff --git a/SpotifyAPI.Web/Clients/SimplePaginator.cs b/SpotifyAPI.Web/Clients/SimplePaginator.cs index 4c16e0b2..6defa01d 100644 --- a/SpotifyAPI.Web/Clients/SimplePaginator.cs +++ b/SpotifyAPI.Web/Clients/SimplePaginator.cs @@ -1,9 +1,9 @@ -using System.Threading; using System; using System.Collections.Generic; +using System.Runtime.CompilerServices; +using System.Threading; using System.Threading.Tasks; using SpotifyAPI.Web.Http; -using System.Runtime.CompilerServices; namespace SpotifyAPI.Web { diff --git a/SpotifyAPI.Web/Clients/SpotifyClient.cs b/SpotifyAPI.Web/Clients/SpotifyClient.cs index 39523591..d291a261 100644 --- a/SpotifyAPI.Web/Clients/SpotifyClient.cs +++ b/SpotifyAPI.Web/Clients/SpotifyClient.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; -using System.Threading.Tasks; -using SpotifyAPI.Web.Http; using System.Runtime.CompilerServices; using System.Threading; +using System.Threading.Tasks; +using SpotifyAPI.Web.Http; namespace SpotifyAPI.Web { diff --git a/SpotifyAPI.Web/Clients/SpotifyClientConfig.cs b/SpotifyAPI.Web/Clients/SpotifyClientConfig.cs index 56a419cd..4fc4da03 100644 --- a/SpotifyAPI.Web/Clients/SpotifyClientConfig.cs +++ b/SpotifyAPI.Web/Clients/SpotifyClientConfig.cs @@ -1,5 +1,5 @@ -using System.Net.Http; using System; +using System.Net.Http; using SpotifyAPI.Web.Http; namespace SpotifyAPI.Web diff --git a/SpotifyAPI.Web/Exceptions/APIException.cs b/SpotifyAPI.Web/Exceptions/APIException.cs index 071fe160..9ddcd879 100644 --- a/SpotifyAPI.Web/Exceptions/APIException.cs +++ b/SpotifyAPI.Web/Exceptions/APIException.cs @@ -1,8 +1,8 @@ +using System; +using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using SpotifyAPI.Web.Http; -using System; -using System.Runtime.Serialization; namespace SpotifyAPI.Web { diff --git a/SpotifyAPI.Web/Exceptions/APIPagingException.cs b/SpotifyAPI.Web/Exceptions/APIPagingException.cs index b5fd5c47..4b8480f0 100644 --- a/SpotifyAPI.Web/Exceptions/APIPagingException.cs +++ b/SpotifyAPI.Web/Exceptions/APIPagingException.cs @@ -1,6 +1,6 @@ +using System; using System.Globalization; using System.Runtime.Serialization; -using System; using SpotifyAPI.Web.Http; namespace SpotifyAPI.Web diff --git a/SpotifyAPI.Web/Exceptions/APITooManyRequestsException.cs b/SpotifyAPI.Web/Exceptions/APITooManyRequestsException.cs index 2ea206dd..37984442 100644 --- a/SpotifyAPI.Web/Exceptions/APITooManyRequestsException.cs +++ b/SpotifyAPI.Web/Exceptions/APITooManyRequestsException.cs @@ -1,6 +1,6 @@ +using System; using System.Globalization; using System.Runtime.Serialization; -using System; using SpotifyAPI.Web.Http; namespace SpotifyAPI.Web diff --git a/SpotifyAPI.Web/Exceptions/APIUnauthorizedException.cs b/SpotifyAPI.Web/Exceptions/APIUnauthorizedException.cs index 0bd0b402..f6811395 100644 --- a/SpotifyAPI.Web/Exceptions/APIUnauthorizedException.cs +++ b/SpotifyAPI.Web/Exceptions/APIUnauthorizedException.cs @@ -1,5 +1,5 @@ -using System.Runtime.Serialization; using System; +using System.Runtime.Serialization; using SpotifyAPI.Web.Http; namespace SpotifyAPI.Web diff --git a/SpotifyAPI.Web/Http/APIConnector.cs b/SpotifyAPI.Web/Http/APIConnector.cs index 3fd78c2b..43fd6dd2 100644 --- a/SpotifyAPI.Web/Http/APIConnector.cs +++ b/SpotifyAPI.Web/Http/APIConnector.cs @@ -1,9 +1,9 @@ -using System.Net.Http; using System; using System.Collections.Generic; -using System.Threading.Tasks; using System.Net; +using System.Net.Http; using System.Threading; +using System.Threading.Tasks; namespace SpotifyAPI.Web.Http { diff --git a/SpotifyAPI.Web/Http/Interfaces/IAPIConnector.cs b/SpotifyAPI.Web/Http/Interfaces/IAPIConnector.cs index 4582f052..db016613 100644 --- a/SpotifyAPI.Web/Http/Interfaces/IAPIConnector.cs +++ b/SpotifyAPI.Web/Http/Interfaces/IAPIConnector.cs @@ -1,9 +1,9 @@ -using System.Net; using System; using System.Collections.Generic; +using System.Net; using System.Net.Http; -using System.Threading.Tasks; using System.Threading; +using System.Threading.Tasks; namespace SpotifyAPI.Web.Http { diff --git a/SpotifyAPI.Web/Http/NetHttpClient.cs b/SpotifyAPI.Web/Http/NetHttpClient.cs index f9192f45..1730ea55 100644 --- a/SpotifyAPI.Web/Http/NetHttpClient.cs +++ b/SpotifyAPI.Web/Http/NetHttpClient.cs @@ -1,11 +1,11 @@ -using System.Net; -using System.Text; using System; using System.IO; using System.Linq; +using System.Net; using System.Net.Http; -using System.Threading.Tasks; +using System.Text; using System.Threading; +using System.Threading.Tasks; namespace SpotifyAPI.Web.Http { diff --git a/SpotifyAPI.Web/Http/NewtonsoftJSONSerializer.cs b/SpotifyAPI.Web/Http/NewtonsoftJSONSerializer.cs index 2db938ab..8169473d 100644 --- a/SpotifyAPI.Web/Http/NewtonsoftJSONSerializer.cs +++ b/SpotifyAPI.Web/Http/NewtonsoftJSONSerializer.cs @@ -1,8 +1,8 @@ -using System.Collections.Generic; -using System.Reflection; using System; +using System.Collections.Generic; using System.IO; using System.Net.Http; +using System.Reflection; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; diff --git a/SpotifyAPI.Web/Http/SimpleConsoleHTTPLogger.cs b/SpotifyAPI.Web/Http/SimpleConsoleHTTPLogger.cs index f401c6bc..5732b543 100644 --- a/SpotifyAPI.Web/Http/SimpleConsoleHTTPLogger.cs +++ b/SpotifyAPI.Web/Http/SimpleConsoleHTTPLogger.cs @@ -1,5 +1,5 @@ -using System.Linq; using System; +using System.Linq; namespace SpotifyAPI.Web.Http { diff --git a/SpotifyAPI.Web/Models/Request/FeaturedPlaylistsRequest.cs b/SpotifyAPI.Web/Models/Request/FeaturedPlaylistsRequest.cs index 6aeab6db..49fac77e 100644 --- a/SpotifyAPI.Web/Models/Request/FeaturedPlaylistsRequest.cs +++ b/SpotifyAPI.Web/Models/Request/FeaturedPlaylistsRequest.cs @@ -1,5 +1,5 @@ -using System.Globalization; using System; +using System.Globalization; namespace SpotifyAPI.Web { public class FeaturedPlaylistsRequest : RequestParams diff --git a/SpotifyAPI.Web/Models/Request/LoginRequest.cs b/SpotifyAPI.Web/Models/Request/LoginRequest.cs index 40a9fa90..4d1bca56 100644 --- a/SpotifyAPI.Web/Models/Request/LoginRequest.cs +++ b/SpotifyAPI.Web/Models/Request/LoginRequest.cs @@ -1,6 +1,6 @@ -using System.Globalization; using System; using System.Collections.Generic; +using System.Globalization; using System.Text; using System.Web; diff --git a/SpotifyAPI.Web/Models/Request/RequestParams.cs b/SpotifyAPI.Web/Models/Request/RequestParams.cs index 564ffdd6..4a34c85e 100644 --- a/SpotifyAPI.Web/Models/Request/RequestParams.cs +++ b/SpotifyAPI.Web/Models/Request/RequestParams.cs @@ -1,9 +1,9 @@ -using System.Collections.Concurrent; -using System.Reflection; using System; -using System.Linq; -using System.Collections.Generic; using System.Collections; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; using Newtonsoft.Json.Linq; namespace SpotifyAPI.Web diff --git a/SpotifyAPI.Web/Models/Response/AuthorizationCodeRefreshResponse.cs b/SpotifyAPI.Web/Models/Response/AuthorizationCodeRefreshResponse.cs index 0dfe84d6..82c01483 100644 --- a/SpotifyAPI.Web/Models/Response/AuthorizationCodeRefreshResponse.cs +++ b/SpotifyAPI.Web/Models/Response/AuthorizationCodeRefreshResponse.cs @@ -2,7 +2,7 @@ using System; namespace SpotifyAPI.Web { - public class AuthorizationCodeRefreshResponse: IRefreshableToken + public class AuthorizationCodeRefreshResponse : IRefreshableToken { public string AccessToken { get; set; } = default!; public string TokenType { get; set; } = default!; diff --git a/SpotifyAPI.Web/Models/Response/AuthorizationCodeTokenResponse.cs b/SpotifyAPI.Web/Models/Response/AuthorizationCodeTokenResponse.cs index 3c7f5874..7e4d4c96 100644 --- a/SpotifyAPI.Web/Models/Response/AuthorizationCodeTokenResponse.cs +++ b/SpotifyAPI.Web/Models/Response/AuthorizationCodeTokenResponse.cs @@ -2,7 +2,7 @@ using System; namespace SpotifyAPI.Web { - public class AuthorizationCodeTokenResponse: IRefreshableToken + public class AuthorizationCodeTokenResponse : IRefreshableToken { public string AccessToken { get; set; } = default!; public string TokenType { get; set; } = default!; diff --git a/SpotifyAPI.Web/Models/Response/ClientCredentialsTokenResponse.cs b/SpotifyAPI.Web/Models/Response/ClientCredentialsTokenResponse.cs index 3261c44c..7be439d1 100644 --- a/SpotifyAPI.Web/Models/Response/ClientCredentialsTokenResponse.cs +++ b/SpotifyAPI.Web/Models/Response/ClientCredentialsTokenResponse.cs @@ -2,7 +2,7 @@ using System; namespace SpotifyAPI.Web { - public class ClientCredentialsTokenResponse: IToken + public class ClientCredentialsTokenResponse : IToken { public string AccessToken { get; set; } = default!; public string TokenType { get; set; } = default!; diff --git a/SpotifyAPI.Web/Models/Response/PKCETokenResponse.cs b/SpotifyAPI.Web/Models/Response/PKCETokenResponse.cs index d2748586..34416c93 100644 --- a/SpotifyAPI.Web/Models/Response/PKCETokenResponse.cs +++ b/SpotifyAPI.Web/Models/Response/PKCETokenResponse.cs @@ -2,7 +2,7 @@ using System; namespace SpotifyAPI.Web { - public class PKCETokenResponse: IRefreshableToken + public class PKCETokenResponse : IRefreshableToken { public string AccessToken { get; set; } = default!; public string TokenType { get; set; } = default!; diff --git a/SpotifyAPI.Web/RetryHandlers/SimpleRetryHandler.cs b/SpotifyAPI.Web/RetryHandlers/SimpleRetryHandler.cs index 2ac7e4d0..96f849c3 100644 --- a/SpotifyAPI.Web/RetryHandlers/SimpleRetryHandler.cs +++ b/SpotifyAPI.Web/RetryHandlers/SimpleRetryHandler.cs @@ -1,10 +1,10 @@ +using System; +using System.Collections.Generic; using System.Linq; using System.Net; -using System; -using System.Threading.Tasks; -using System.Collections.Generic; -using SpotifyAPI.Web.Http; using System.Threading; +using System.Threading.Tasks; +using SpotifyAPI.Web.Http; namespace SpotifyAPI.Web { diff --git a/SpotifyAPI.Web/Util/PKCEUtil.cs b/SpotifyAPI.Web/Util/PKCEUtil.cs index 14900ec9..02eec991 100644 --- a/SpotifyAPI.Web/Util/PKCEUtil.cs +++ b/SpotifyAPI.Web/Util/PKCEUtil.cs @@ -55,7 +55,7 @@ namespace SpotifyAPI.Web var bit_count = length * 6; var byte_count = (bit_count + 7) / 8; // rounded up var bytes = new byte[byte_count]; - + using var generator = RandomNumberGenerator.Create(); generator.GetBytes(bytes); return Base64Util.UrlEncode(bytes); diff --git a/SpotifyAPI.Web/Util/StringAttribute.cs b/SpotifyAPI.Web/Util/StringAttribute.cs index 2d1cf372..aa53556d 100644 --- a/SpotifyAPI.Web/Util/StringAttribute.cs +++ b/SpotifyAPI.Web/Util/StringAttribute.cs @@ -1,7 +1,7 @@ using System; -using System.Reflection; -using System.Linq; using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Reflection; namespace SpotifyAPI.Web { diff --git a/SpotifyAPI.Web/Util/URIExtension.cs b/SpotifyAPI.Web/Util/URIExtension.cs index eae2e87d..618a9b7b 100644 --- a/SpotifyAPI.Web/Util/URIExtension.cs +++ b/SpotifyAPI.Web/Util/URIExtension.cs @@ -1,8 +1,8 @@ -using System.Web; -using System.Linq; using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Linq; +using System.Web; namespace SpotifyAPI.Web { diff --git a/SpotifyAPI.Web/Util/URIParameterFormatProvider.cs b/SpotifyAPI.Web/Util/URIParameterFormatProvider.cs index 3fb91a1f..ad72d32e 100644 --- a/SpotifyAPI.Web/Util/URIParameterFormatProvider.cs +++ b/SpotifyAPI.Web/Util/URIParameterFormatProvider.cs @@ -1,5 +1,5 @@ -using System.Web; using System; +using System.Web; namespace SpotifyAPI.Web { public class URIParameterFormatProvider : IFormatProvider