Skip to content

Commit 1699519

Browse files
committed
Renamed AuthenticationFactory to WebApiFactory (better description of what the class does...)
1 parent f13ac73 commit 1699519

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

‎SpotifyAPI.Example/WebControl.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ private void authButton_Click(object sender, EventArgs e)
128128

129129
private async void RunAuthentication()
130130
{
131-
AuthenticationFactory authenticationFactory = new AuthenticationFactory(
131+
WebApiFactory webApiFactory = new WebApiFactory(
132132
"http://localhost",
133133
8000,
134134
"26d287105e31491889f3cd293d85bfea",
@@ -138,7 +138,7 @@ private async void RunAuthentication()
138138

139139
try
140140
{
141-
_spotify = await authenticationFactory.GetWebApi();
141+
_spotify = await webApiFactory.GetWebApi();
142142
}
143143
catch (Exception ex)
144144
{

‎SpotifyAPI/SpotifyAPI.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
</Compile>
5959
<Compile Include="Local\Models\SpotifyUri.cs" />
6060
<Compile Include="Local\VolumeMixerControl.cs" />
61-
<Compile Include="Web\Auth\AuthenticationFactory.cs" />
61+
<Compile Include="Web\Auth\WebApiFactory.cs" />
6262
<Compile Include="Web\Enums\TimeRangeType.cs" />
6363
<Compile Include="Web\IClient.cs" />
6464
<Compile Include="Local\Models\CFID.cs" />

SpotifyAPI/Web/Auth/AuthenticationFactory.cs renamed to SpotifyAPI/Web/Auth/WebApiFactory.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
52
using System.Threading;
63
using System.Threading.Tasks;
74
using SpotifyAPI.Web.Enums;
85
using SpotifyAPI.Web.Models;
96

107
namespace SpotifyAPI.Web.Auth
118
{
12-
public class AuthenticationFactory
9+
public class WebApiFactory
1310
{
1411
private readonly string m_RedirectUrl;
1512
private readonly int m_ListeningPort;
1613
private readonly string m_ClientId;
1714
private readonly TimeSpan m_Timeout;
1815
private Scope m_Scope;
1916

20-
public AuthenticationFactory(string redirectUrl, int listeningPort, string clientId, Scope scope, TimeSpan timeout)
17+
public WebApiFactory(string redirectUrl, int listeningPort, string clientId, Scope scope, TimeSpan timeout)
2118
{
2219
m_RedirectUrl = redirectUrl;
2320
m_ListeningPort = listeningPort;

0 commit comments

Comments
 (0)