seal up unsealed classes, clean up using statements
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using Moq;
|
||||
using Newtonsoft.Json;
|
||||
using NUnit.Framework;
|
||||
using RestSharp;
|
||||
using Untappd.Net.Request;
|
||||
using Untappd.Net.Responses.BeerInfo;
|
||||
using Untappd.Net.Responses.Actions;
|
||||
using System.IO;
|
||||
using Untappd.Net.Authentication;
|
||||
using Untappd.Net.Request;
|
||||
using Untappd.Net.Responses.Actions;
|
||||
using Untappd.Net.Responses.BeerInfo;
|
||||
|
||||
namespace Untappd.Net.UnitTests.Request
|
||||
{
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using NUnit.Framework;
|
||||
using Untappd.Net.Responses.Actions;
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using NUnit.Framework;
|
||||
using Untappd.Net.Responses.Actions;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Collections.ObjectModel;
|
||||
|
||||
namespace Untappd.Net.Authentication
|
||||
{
|
||||
public class AuthenticatedUntappdCredentials : UntappdCredentials, IAuthenticatedUntappdCredentials
|
||||
public sealed class AuthenticatedUntappdCredentials : UntappdCredentials, IAuthenticatedUntappdCredentials
|
||||
{
|
||||
/// <summary>
|
||||
/// Pass your authenticated access token
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Collections.ObjectModel;
|
||||
|
||||
namespace Untappd.Net.Authentication
|
||||
{
|
||||
public class UnAuthenticatedUntappdCredentials : UntappdCredentials, IUnAuthenticatedUntappdCredentials
|
||||
public sealed class UnAuthenticatedUntappdCredentials : UntappdCredentials, IUnAuthenticatedUntappdCredentials
|
||||
{
|
||||
/// <summary>
|
||||
/// UnAuthenticated request. Pass your API id and secret
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace Untappd.Net.Exception
|
||||
{
|
||||
[Serializable]
|
||||
public class EndpointConfigurationException : BaseUntappdException
|
||||
public sealed class EndpointConfigurationException : BaseUntappdException
|
||||
{
|
||||
/// <summary>
|
||||
/// Called when a class has an empty endpoint
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Newtonsoft.Json;
|
||||
using RestSharp;
|
||||
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using RestSharp;
|
||||
using Untappd.Net.Exception;
|
||||
using System;
|
||||
using Untappd.Net.Authentication;
|
||||
using Untappd.Net.Exception;
|
||||
|
||||
namespace Untappd.Net.Request
|
||||
{
|
||||
public partial class Repository
|
||||
public sealed partial class Repository
|
||||
{
|
||||
internal IRestClient Client;
|
||||
internal IRestRequest Request;
|
||||
|
||||
@@ -5,7 +5,7 @@ using Untappd.Net.Exception;
|
||||
|
||||
namespace Untappd.Net.Request
|
||||
{
|
||||
public partial class Repository
|
||||
public sealed partial class Repository
|
||||
{
|
||||
/// <summary>
|
||||
/// Get the things!
|
||||
|
||||
@@ -3,7 +3,7 @@ using Untappd.Net.Authentication;
|
||||
|
||||
namespace Untappd.Net.Request
|
||||
{
|
||||
public partial class Repository
|
||||
public sealed partial class Repository
|
||||
{
|
||||
/// <summary>
|
||||
/// do a post with actions
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Collections.Generic;
|
||||
using RestSharp;
|
||||
using Untappd.Net.Request;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Untappd.Net
|
||||
/// Deserialize json as T if json schema defines an object.
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
internal class SingleObjectArrayConverter<T> : JsonConverter
|
||||
internal sealed class SingleObjectArrayConverter<T> : JsonConverter
|
||||
where T : new()
|
||||
{
|
||||
public override bool CanConvert(Type objectType)
|
||||
|
||||
Reference in New Issue
Block a user