missing files
This commit is contained in:
12
src/Untappd.Net/Client/IUnAuthenticadedUntappdCredentials.cs
Normal file
12
src/Untappd.Net/Client/IUnAuthenticadedUntappdCredentials.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Untappd.Net.Client
|
||||
{
|
||||
public interface IUnAuthenticadedUntappdCredentials : IUntappdCredentials
|
||||
{
|
||||
}
|
||||
}
|
||||
33
src/Untappd.Net/Client/UntappdCredentials.cs
Normal file
33
src/Untappd.Net/Client/UntappdCredentials.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Untappd.Net.Client
|
||||
{
|
||||
public abstract class UntappdCredentials : IUntappdCredentials
|
||||
{
|
||||
public string ClientId { get; private set; }
|
||||
public string ClientSecret { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// UnAuthenticated request. Pass your API id and secret
|
||||
/// </summary>
|
||||
/// <param name="clientId"></param>
|
||||
/// <param name="clientSecret"></param>
|
||||
public UntappdCredentials(string clientId, string clientSecret)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(clientId))
|
||||
{
|
||||
throw new ArgumentNullException("clientId");
|
||||
}
|
||||
if (string.IsNullOrWhiteSpace(clientSecret))
|
||||
{
|
||||
throw new ArgumentNullException("clientSecret");
|
||||
}
|
||||
ClientId = string.Copy(clientId);
|
||||
ClientSecret = string.Copy(clientSecret);
|
||||
}
|
||||
}
|
||||
}
|
||||
12
src/Untappd.Net/Request/IAuthenticatedRequest.cs
Normal file
12
src/Untappd.Net/Request/IAuthenticatedRequest.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Untappd.Net.Request
|
||||
{
|
||||
public interface IAuthenticatedRequest : IRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user