Merge pull request #37 from tparnell8/master

seal up unsealed classes, clean up using statements
This commit is contained in:
Tommy Parnell
2015-05-11 21:26:35 -04:00
12 changed files with 15 additions and 34 deletions

View File

@@ -1,15 +1,14 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.IO;
using System.Threading.Tasks; using System.Threading.Tasks;
using Moq; using Moq;
using Newtonsoft.Json;
using NUnit.Framework; using NUnit.Framework;
using RestSharp; 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.Authentication;
using Untappd.Net.Request;
using Untappd.Net.Responses.Actions;
using Untappd.Net.Responses.BeerInfo;
namespace Untappd.Net.UnitTests.Request namespace Untappd.Net.UnitTests.Request
{ {

View File

@@ -1,8 +1,4 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework; using NUnit.Framework;
using Untappd.Net.Responses.Actions; using Untappd.Net.Responses.Actions;

View File

@@ -1,8 +1,4 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework; using NUnit.Framework;
using Untappd.Net.Responses.Actions; using Untappd.Net.Responses.Actions;

View File

@@ -4,7 +4,7 @@ using System.Collections.ObjectModel;
namespace Untappd.Net.Authentication namespace Untappd.Net.Authentication
{ {
public class AuthenticatedUntappdCredentials : UntappdCredentials, IAuthenticatedUntappdCredentials public sealed class AuthenticatedUntappdCredentials : UntappdCredentials, IAuthenticatedUntappdCredentials
{ {
/// <summary> /// <summary>
/// Pass your authenticated access token /// Pass your authenticated access token

View File

@@ -4,7 +4,7 @@ using System.Collections.ObjectModel;
namespace Untappd.Net.Authentication namespace Untappd.Net.Authentication
{ {
public class UnAuthenticatedUntappdCredentials : UntappdCredentials, IUnAuthenticatedUntappdCredentials public sealed class UnAuthenticatedUntappdCredentials : UntappdCredentials, IUnAuthenticatedUntappdCredentials
{ {
/// <summary> /// <summary>
/// UnAuthenticated request. Pass your API id and secret /// UnAuthenticated request. Pass your API id and secret

View File

@@ -3,7 +3,7 @@
namespace Untappd.Net.Exception namespace Untappd.Net.Exception
{ {
[Serializable] [Serializable]
public class EndpointConfigurationException : BaseUntappdException public sealed class EndpointConfigurationException : BaseUntappdException
{ {
/// <summary> /// <summary>
/// Called when a class has an empty endpoint /// Called when a class has an empty endpoint

View File

@@ -1,9 +1,4 @@
using System; using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json; using Newtonsoft.Json;
using RestSharp; using RestSharp;

View File

@@ -1,16 +1,15 @@
using System.Collections.Generic; using System;
using System.Collections.Generic;
using System.Net; using System.Net;
using System.Threading.Tasks; using System.Threading.Tasks;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using RestSharp; using RestSharp;
using Untappd.Net.Exception;
using System;
using Untappd.Net.Authentication; using Untappd.Net.Authentication;
using Untappd.Net.Exception;
namespace Untappd.Net.Request namespace Untappd.Net.Request
{ {
public partial class Repository public sealed partial class Repository
{ {
internal IRestClient Client; internal IRestClient Client;
internal IRestRequest Request; internal IRestRequest Request;

View File

@@ -5,7 +5,7 @@ using Untappd.Net.Exception;
namespace Untappd.Net.Request namespace Untappd.Net.Request
{ {
public partial class Repository public sealed partial class Repository
{ {
/// <summary> /// <summary>
/// Get the things! /// Get the things!

View File

@@ -3,7 +3,7 @@ using Untappd.Net.Authentication;
namespace Untappd.Net.Request namespace Untappd.Net.Request
{ {
public partial class Repository public sealed partial class Repository
{ {
/// <summary> /// <summary>
/// do a post with actions /// do a post with actions

View File

@@ -1,8 +1,4 @@
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RestSharp; using RestSharp;
using Untappd.Net.Request; using Untappd.Net.Request;

View File

@@ -10,7 +10,7 @@ namespace Untappd.Net
/// Deserialize json as T if json schema defines an object. /// Deserialize json as T if json schema defines an object.
/// </summary> /// </summary>
/// <typeparam name="T"></typeparam> /// <typeparam name="T"></typeparam>
internal class SingleObjectArrayConverter<T> : JsonConverter internal sealed class SingleObjectArrayConverter<T> : JsonConverter
where T : new() where T : new()
{ {
public override bool CanConvert(Type objectType) public override bool CanConvert(Type objectType)