13 Commits

Author SHA1 Message Date
Tommy Parnell
0935963909 Merge pull request #46 from tparnell8/master
Releasing new code
2015-07-15 18:33:43 -04:00
Tommy Parnell
59a56dcb05 Merge pull request #41 from tparnell8/master
Release minor fix to event race conditions. Add CLS support
2015-06-19 21:25:46 -05:00
Tommy Parnell
a7a644282d Merge pull request #37 from tparnell8/master
seal up unsealed classes, clean up using statements
2015-05-11 21:26:35 -04:00
Tommy Parnell
fa7d5e0b2c Merge pull request #36 from tparnell8/master
Release failfast
2015-05-11 19:12:48 -04:00
Tommy Parnell
d5b6387abb Merge pull request #33 from tparnell8/master
json serialization fixes
2015-05-02 22:03:51 -04:00
Tommy Parnell
ae1d0763cb Merge pull request #32 from tparnell8/master
Release Actions
2015-05-02 10:55:09 -04:00
Tommy Parnell
5716546c58 Merge pull request #30 from tparnell8/master
Release more codez
2015-04-27 12:48:32 -04:00
Tommy Parnell
61f5f33231 Merge pull request #28 from tparnell8/master
Release Async Methods
2015-04-23 23:16:26 -04:00
Tommy Parnell
cd12db9469 Merge pull request #25 from tparnell8/master
minor improvements
2015-04-23 08:10:06 -04:00
Tommy Parnell
ae582d6fc2 Merge pull request #23 from tparnell8/master
Release new code
2015-04-22 16:51:10 -04:00
Tommy Parnell
280b392b3f Merge pull request #16 from tparnell8/master
Merging in latest code
2015-04-21 19:11:12 -04:00
Tommy Parnell
2fc6dd5690 Merge pull request #12 from tparnell8/master
minor changes
2015-04-20 20:01:58 -04:00
Tommy Parnell
40d48f80e6 Merge pull request #11 from tparnell8/master
minor release update
2015-04-20 19:06:54 -04:00
59 changed files with 5898 additions and 5565 deletions

View File

@@ -69,7 +69,7 @@ For Authenticated requests:
```csharp
var ts = new AuthenticatedUntappdCredentials("token");
var ts = new AuthenticatedUntappdCredentials("token", "key", "secret");
var t = new Repository().Get<ActivityFeed>(ts);
```
@@ -79,7 +79,7 @@ For Actions (usually post requests). Note: Actions return a dynamic object. Usua
```csharp
var ts = new AuthenticatedUntappdCredentials("token");
var ts = new AuthenticatedUntappdCredentials("token", "key", "secret");
var checkin = new CheckIn("-5", "EST", 1044097) { Shout = "Awesome Brew", Rating = 4 };
var response = repository.Post(ts, checkin);
@@ -96,4 +96,3 @@ var response = repository.Post(ts, checkin);
Current contributors:
* Tommy James Parnell (https://github.com/tparnell8)
* Rodrigo P Reis (https://github.com/rodkings)

View File

@@ -1,4 +1,4 @@
version: 0.5.{build}
version: 0.4.{build}
configuration: Release
notifications:
- provider: Webhook

View File

@@ -1,8 +1,5 @@
require 'openssl'
namespace :tools do
# If we don't have a copy of nuget, download it
# If we don't have a copy of nuget, download it
task :nuget_bootstrap do
puts 'Ensuring NuGet exists in tools/NuGet'
@@ -13,12 +10,12 @@ namespace :tools do
begin
FileUtils.mkdir_p("#{NUGET}")
File.open("#{NUGET}/nuget.exe", "wb") do |file|
file.write open('http://nuget.org/nuget.exe', {ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE}).read
file.write open('https://nuget.org/nuget.exe').read
end
rescue
FileUtils.rm_rf("#{NUGET}/nuget.exe")
File.open("#{NUGET}/nuget.exe", "wb") do |file|
file.write open('https://nuget.org/nuget.exe', {ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE}).read
file.write open('http://nuget.org/nuget.exe').read
end
end
end

View File

@@ -13,7 +13,6 @@ namespace Untappd.Net.UnitTests.Authentication
{
var t = new AuthenticatedUntappdCredentials(null);
}
[Test]
public void ExpectValid()
{

View File

@@ -12,49 +12,53 @@ namespace Untappd.Net.UnitTests.Authentication
[ExpectedException(typeof(ArgumentNullException))]
public void TestRedirectUserToException1()
{
AuthenticationHelper.RedirectUserTo(null, "url");
}
[Test]
[ExpectedException(typeof(ArgumentNullException))]
public void TestRedirectUserToException2()
{
AuthenticationHelper.RedirectUserTo(new UnAuthenticatedUntappdCredentials("d", "d"), string.Empty);
}
[Test]
[ExpectedException(typeof(ArgumentNullException))]
public void TestTokenUrlException1()
{
AuthenticationHelper.TokenUrl(null, "some", "code");
}
[Test]
[ExpectedException(typeof(ArgumentNullException))]
public void TestTokenUrlException2()
{
AuthenticationHelper.TokenUrl(new UnAuthenticatedUntappdCredentials("d", "d"), string.Empty, "code");
}
[Test]
[ExpectedException(typeof(ArgumentNullException))]
public void TestTokenUrlException3()
{
AuthenticationHelper.TokenUrl(new UnAuthenticatedUntappdCredentials("d", "d"), "ds", string.Empty);
}
[Test]
public void TestTokenUrl()
{
var s = AuthenticationHelper.TokenUrl(new UnAuthenticatedUntappdCredentials("d", "d"), "ds", "code");
Assert.AreEqual(s, Constants.OAuthTokenEndPoint + "/?client_id=d&client_secret=d&response_type=code&redirect_url=ds&code=code");
}
}
[Test]
public void TestRedirectUrl()
{
var s = AuthenticationHelper.RedirectUserTo(new UnAuthenticatedUntappdCredentials("d", "d"), "ds");
Assert.AreEqual(s, Constants.BaseRequestString + "/?client_id=d&response_type=code&redirect_url=ds");
}
}
}

View File

@@ -13,7 +13,6 @@ namespace Untappd.Net.UnitTests.Authentication
{
var t = new UnAuthenticatedUntappdCredentials(string.Empty, "t");
}
[Test]
[ExpectedException(typeof(ArgumentNullException))]
public void ExpectClientSecretException()

View File

@@ -1,30 +1,29 @@
using NUnit.Framework;
using Untappd.Net.Exception;
namespace Untappd.Net.UnitTests.Exception
{
[TestFixture]
public class TestBaseUntappdException
{
[ExpectedException(typeof(BaseUntappdException))]
[ExpectedException(typeof (BaseUntappdException))]
[Test]
public void TestStandardException()
{
throw new BaseUntappdException();
}
[ExpectedException(typeof(BaseUntappdException), ExpectedMessage = "messageHere")]
[Test]
public void TestStandardExceptionWithMessage()
{
throw new BaseUntappdException("messageHere");
}
[ExpectedException(typeof(BaseUntappdException), ExpectedMessage = "messageHere")]
[Test]
public void TestStandardExceptionWithInner()
{
throw new BaseUntappdException("messageHere", new System.Exception("innerException!"));
}
}
}

View File

@@ -12,5 +12,6 @@ namespace Untappd.Net.UnitTests.Exception
{
throw new EndpointConfigurationException();
}
}
}

View File

@@ -1,8 +1,9 @@
using System;
using Moq;
using NUnit.Framework;
using RestSharp;
using Untappd.Net.Exception;
using Moq;
using RestSharp;
namespace Untappd.Net.UnitTests.Exception
{
@@ -15,16 +16,17 @@ namespace Untappd.Net.UnitTests.Exception
var mockRequest = new Mock<IRestRequest>();
var mockResponse = new Mock<IRestResponse>();
Assert.Throws<ArgumentNullException>(() =>
{
Assert.Throws<ArgumentNullException>(()=>{
var t = new HttpErrorException(mockRequest.Object, null);
Console.WriteLine(t);
});
Assert.Throws<ArgumentNullException>(() =>
{
Assert.Throws<ArgumentNullException>(()=>{
var t = new HttpErrorException(null, mockResponse.Object);
Console.WriteLine(t);
});
}
}
}

View File

@@ -6,10 +6,10 @@ using Moq;
using NUnit.Framework;
using RestSharp;
using Untappd.Net.Authentication;
using Untappd.Net.Exception;
using Untappd.Net.Request;
using Untappd.Net.Responses.Actions;
using Untappd.Net.Responses.BeerInfo;
using Untappd.Net.Exception;
namespace Untappd.Net.UnitTests.Request
{
@@ -25,7 +25,7 @@ namespace Untappd.Net.UnitTests.Request
{"client_id", "id"},
{"client_secret", "secret"}
}));
var bodyParam = new Dictionary<string, object> { { "key", "value" } };
var bodyParam = new Dictionary<string, object> {{"key", "value"}};
var client = new Mock<IRestClient>();
var request = new Mock<IRestRequest>();
request.Setup(a => a.AddParameter(It.IsAny<string>(), It.IsAny<string>()));
@@ -38,10 +38,8 @@ namespace Untappd.Net.UnitTests.Request
}).Returns(response.Object);
client.Setup(a => a.ExecuteTaskAsync(It.IsAny<IRestRequest>())).Callback(() =>
{
}).Returns(Task.Run(() => response.Object));
#pragma warning disable CS0618 // Type or member is obsolete Using as intended
}).Returns(Task.Run(()=> response.Object));
var repository = new Repository(client.Object, request.Object);
#pragma warning restore CS0618 // Type or member is obsolete
repository.Get<BeerInfo>(mockCreds.Object, "awesome", bodyParam);
request.Verify(a => a.AddParameter("client_id", mockCreds.Object.AuthenticationData["client_id"]));
@@ -76,7 +74,7 @@ namespace Untappd.Net.UnitTests.Request
Assert.IsNotNull(sender);
Assert.IsNotNull(e);
};
Assert.Throws<HttpErrorException>(() => repository.Post(mockAuthCreds.Object, checkin));
Assert.Throws<HttpErrorException>(()=>repository.Post(mockAuthCreds.Object, checkin));
repository.FailFast = false;
repository.Post(mockAuthCreds.Object, checkin);
request.Verify(a => a.AddParameter("access_token", "PostaccessToken"));
@@ -96,20 +94,11 @@ namespace Untappd.Net.UnitTests.Request
Assert.IsTrue(constructorTest.Client != null);
Assert.IsTrue(constructorTest.Request != null);
}
[Test]
public void TimeoutShouldGetPassedIn()
{
var timeout = 100;
var repo = new Repository(timeout: timeout);
Assert.AreEqual(repo.Request.Timeout, timeout);
}
[Test]
public void ConfirmConfigureGetRequestClearsParams()
{
var constructorTest = new Repository();
constructorTest.Request.Parameters.Add(new Parameter { Name = "param" });
constructorTest.Request.Parameters.Add(new Parameter {Name = "param"});
Assert.IsTrue(constructorTest.Request.Parameters.Count > 0);
constructorTest.ConfigureRequest("endpoint");
Assert.IsTrue(constructorTest.Request.Parameters.Count == 0);

View File

@@ -52,6 +52,10 @@ namespace Untappd.Net.UnitTests.Responses.Actions
checkin.Rating = 2;
Assert.IsTrue(checkin.BodyParameters.ContainsKey("rating"));
Assert.AreEqual(checkin.BodyParameters["rating"], 2);
}
}
}

View File

@@ -35,6 +35,7 @@ namespace Untappd.Net.UnitTests.Responses.Actions
Assert.IsNotNullOrEmpty(removeWish.EndPoint);
Assert.AreEqual(removeWish.BodyParameters["bid"], 1);
var addWish = new AddToWishList(1);
Assert.IsNotNullOrEmpty(addWish.RequestMethod.ToString());
Assert.IsNotNullOrEmpty(addWish.EndPoint);

View File

@@ -9,6 +9,7 @@ namespace Untappd.Net.UnitTests.Responses
[TestFixture]
public class TestResponseEndpoints
{
/// <summary>
/// Run through all the endpoints to make sure they all atleast do not error out.
/// This is so we can get a high code coverage, while also covering new types that get added.
@@ -16,21 +17,22 @@ namespace Untappd.Net.UnitTests.Responses
[Test]
public void RunAllEndpoints()
{
var objects = Assembly.GetAssembly(typeof(IRequest)).GetTypes().Where(myType =>
var objects = Assembly.GetAssembly(typeof (IRequest)).GetTypes().Where(myType =>
myType.IsClass
&& !myType.IsAbstract
&& myType.GetInterface("IRequest") != null).Select(type => (IRequest)Activator.CreateInstance(type)).ToList();
objects.ForEach(a => Assert.IsNotNullOrEmpty(a.EndPoint("t")));
&& myType.GetInterface("IRequest") != null).Select(type => (IRequest) Activator.CreateInstance(type)).ToList();
objects.ForEach(a=>Assert.IsNotNullOrEmpty(a.EndPoint("t")));
}
[Test]
public void RunAllEndpointsWithEmptyString()
{
var objects = Assembly.GetAssembly(typeof(IRequest)).GetTypes().Where(myType =>
var objects = Assembly.GetAssembly(typeof (IRequest)).GetTypes().Where(myType =>
myType.IsClass
&& !myType.IsAbstract
&& myType.GetInterface("IRequest") != null).Select(type => (IRequest)Activator.CreateInstance(type)).ToList();
objects.ForEach(a => Assert.IsNotNullOrEmpty(a.EndPoint(string.Empty)));
&& myType.GetInterface("IRequest") != null).Select(type => (IRequest) Activator.CreateInstance(type)).ToList();
objects.ForEach(a=>Assert.IsNotNullOrEmpty(a.EndPoint(string.Empty)));
}
}
}

View File

@@ -1,4 +1,5 @@
namespace Untappd.Net.Authentication
namespace Untappd.Net.Authentication
{
public interface IUnAuthenticatedUntappdCredentials : IUntappdCredentials
{

View File

@@ -10,8 +10,9 @@ namespace Untappd.Net.Exception
/// </summary>
/// <param name="type"></param>
public EndpointConfigurationException()
: base("Invalid endpoint configured")
:base("Invalid endpoint configured")
{
}
}
}

View File

@@ -16,10 +16,9 @@ namespace Untappd.Net.Exception
}
private readonly string _message;
public HttpErrorException(IRestRequest request, IRestResponse response)
{
if (request == null)
if(request == null)
{
throw new ArgumentNullException("request");
}
@@ -27,7 +26,7 @@ namespace Untappd.Net.Exception
{
throw new ArgumentNullException("response");
}
var code = (int)response.StatusCode;
var code = (int) response.StatusCode;
if (code == 200)
{
throw new BaseUntappdException(

View File

@@ -1,10 +1,12 @@
// General Information about an assembly is controlled through the following
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Untappd.Net")]
[assembly: AssemblyDescription("C# Untappd Wrapper")]

View File

@@ -5,7 +5,6 @@ namespace Untappd.Net.Request
public abstract class BasicRequest
{
protected abstract string EndPointWithConfiguration { get; }
/// <summary>
/// Pass in the parameter into the request...ie username, brewery, etc.
/// </summary>

View File

@@ -14,7 +14,6 @@ namespace Untappd.Net.Request
internal IRestClient Client;
internal IRestRequest Request;
public bool FailFast { get; set; }
/// <summary>
/// Event to listen to when failFast is set to false
/// This allows you to capture the excpetion, before its swallowed
@@ -25,14 +24,10 @@ namespace Untappd.Net.Request
/// Make a repository
/// </summary>
/// <param name="failFast">Should we throw exceptions? or just return null</param>
/// <param name="timeout">Set a timeout in milliseconds</param>
public Repository(bool failFast = true, int timeout = 0)
public Repository(bool failFast = true)
{
Client = new RestClient(Constants.BaseRequestString);
Request = new RestRequest
{
Timeout = timeout
};
Request = new RestRequest();
FailFast = failFast;
}
@@ -70,19 +65,19 @@ namespace Untappd.Net.Request
return this;
}
private TResult ExecuteRequest<TResult>()
TResult ExecuteRequest<TResult>()
where TResult : class
{
return ProcessExecution<TResult>(Client.Execute(Request));
}
private async Task<TResult> ExecuteRequestAsync<TResult>()
async Task<TResult> ExecuteRequestAsync<TResult>()
where TResult : class
{
return ProcessExecution<TResult>(await Client.ExecuteTaskAsync(Request));
}
private TResult ProcessExecution<TResult>(IRestResponse response)
TResult ProcessExecution<TResult>(IRestResponse response)
where TResult : class
{
//if the return type is not 200 throw errors
@@ -106,7 +101,7 @@ namespace Untappd.Net.Request
{
return JsonConvert.DeserializeObject<TResult>(response.Content);
}
catch (System.Exception e)
catch(System.Exception e)
{
var eventThrow = OnExceptionThrown;

View File

@@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Untappd.Net.Authentication;
using Untappd.Net.Exception;
namespace Untappd.Net.Request
{
@@ -50,7 +51,7 @@ namespace Untappd.Net.Request
/// <exception cref="HttpErrorException"></exception>
/// <returns></returns>
public TResult Get<TResult>(IAuthenticatedUntappdCredentials credentials, string urlParameter = "", IDictionary<string, object> bodyParameters = null)
where TResult : class, IAuthenticatedRequest, new()
where TResult : class,IAuthenticatedRequest, new()
{
var result = new TResult();
return ConfigureRequest(credentials, result.EndPoint(urlParameter), bodyParameters)
@@ -67,7 +68,7 @@ namespace Untappd.Net.Request
/// <exception cref="HttpErrorException"></exception>
/// <returns></returns>
public Task<TResult> GetAsync<TResult>(IAuthenticatedUntappdCredentials credentials, string urlParameter = "", IDictionary<string, object> bodyParameters = null)
where TResult : class, IAuthenticatedRequest, new()
where TResult : class,IAuthenticatedRequest, new()
{
var result = new TResult();
return ConfigureRequest(credentials, result.EndPoint(urlParameter), bodyParameters)

View File

@@ -1,6 +1,6 @@
using System;
using System.Threading.Tasks;
using System.Threading.Tasks;
using Untappd.Net.Authentication;
using System;
namespace Untappd.Net.Request
{

View File

@@ -10,7 +10,6 @@ namespace Untappd.Net.Responses.Actions
public Method RequestMethod { get { return Method.GET; } }
public string EndPoint { get; private set; }
public IDictionary<string, object> BodyParameters { get { return new Dictionary<string, object>(); } }
public AcceptFriend(string target_id)
{
if (string.IsNullOrWhiteSpace(target_id))

View File

@@ -7,10 +7,9 @@ namespace Untappd.Net.Responses.Actions
{
public class AddComment : IAction
{
public Method RequestMethod { get { return Method.POST; } }
public Method RequestMethod { get {return Method.POST;} }
public string EndPoint { get; private set; }
public IDictionary<string, object> BodyParameters { get; private set; }
public AddComment(string checkinId, string shout)
{
if (string.IsNullOrWhiteSpace(checkinId))
@@ -26,7 +25,8 @@ namespace Untappd.Net.Responses.Actions
throw new ArgumentOutOfRangeException("shout", shout, "Shout cannot be more than 140 characters");
}
EndPoint = string.Format("v4/checkin/addcomment/{0}", checkinId);
BodyParameters = new Dictionary<string, object> { { shout, shout } };
BodyParameters = new Dictionary<string, object> {{shout, shout}};
}
}
}

View File

@@ -7,10 +7,9 @@ namespace Untappd.Net.Responses.Actions
{
public class AddFriend : IAction
{
public Method RequestMethod { get { return Method.GET; } }
public Method RequestMethod { get{return Method.GET;} }
public string EndPoint { get; private set; }
public IDictionary<string, object> BodyParameters { get { return new Dictionary<string, object>(); } }
public IDictionary<string, object> BodyParameters { get{ return new Dictionary<string, object>();} }
public AddFriend(string target_id)
{
if (string.IsNullOrWhiteSpace(target_id))

View File

@@ -6,13 +6,13 @@ namespace Untappd.Net.Responses.Actions
{
public class AddToWishList : IAction
{
public Method RequestMethod { get { return Method.GET; } }
public Method RequestMethod { get {return Method.GET;} }
public string EndPoint { get { return "v4/user/wishlist/add"; } }
public IDictionary<string, object> BodyParameters { get; private set; }
public AddToWishList(int beerId)
{
BodyParameters = new Dictionary<string, object>() { { "bid", beerId } };
}
}
}

View File

@@ -9,7 +9,7 @@ namespace Untappd.Net.Responses.Actions
{
private short _rating;
private string _shout;
public Method RequestMethod { get { return Method.POST; } }
public Method RequestMethod { get{ return Method.POST;} }
public string EndPoint { get { return "v4/checkin/add"; } }
public IDictionary<string, object> BodyParameters
@@ -59,7 +59,7 @@ namespace Untappd.Net.Responses.Actions
}
if (value.Length > 140)
{
throw new ArgumentOutOfRangeException("value", value, "Shout can be no more than 140 characters");
throw new ArgumentOutOfRangeException("value", value,"Shout can be no more than 140 characters");
}
_shout = string.Copy(value);
}
@@ -78,6 +78,7 @@ namespace Untappd.Net.Responses.Actions
}
}
public CheckIn(string gmtOffset, string timezone, int bid)
{
if (string.IsNullOrWhiteSpace(gmtOffset))

View File

@@ -6,8 +6,8 @@ namespace Untappd.Net.Responses.Actions
{
public class PendingFriends : IAction
{
public Method RequestMethod { get { return Method.GET; } }
public string EndPoint { get { return "v4/user/pending"; } }
public Method RequestMethod { get {return Method.GET;} }
public string EndPoint { get { return "v4/user/pending"; }}
public IDictionary<string, object> BodyParameters
{

View File

@@ -10,7 +10,6 @@ namespace Untappd.Net.Responses.Actions
public Method RequestMethod { get { return Method.GET; } }
public string EndPoint { get; private set; }
public IDictionary<string, object> BodyParameters { get { return new Dictionary<string, object>(); } }
public RemoveFriend(string target_id)
{
if (string.IsNullOrWhiteSpace(target_id))

View File

@@ -6,13 +6,13 @@ namespace Untappd.Net.Responses.Actions
{
public class RemoveFromWishList : IAction
{
public Method RequestMethod { get { return Method.GET; } }
public Method RequestMethod { get {return Method.GET;} }
public string EndPoint { get { return "v4/user/wishlist/delete"; } }
public IDictionary<string, object> BodyParameters { get; private set; }
public RemoveFromWishList(int beerId)
{
BodyParameters = new Dictionary<string, object>() { { "bid", beerId } };
}
}
}

View File

@@ -10,7 +10,6 @@ namespace Untappd.Net.Responses.Actions
public Method RequestMethod { get { return Method.POST; } }
public IDictionary<string, object> BodyParameters { get { return new Dictionary<string, object>(); } }
public string EndPoint { get; private set; }
/// <summary>
///
/// </summary>

View File

@@ -4,8 +4,10 @@ using Untappd.Net.Request;
namespace Untappd.Net.Responses.BeerInfo
{
public class ResponseTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class InitTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Meta
{
[JsonProperty("code")]
public int Code { get; set; }
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class UnreadCount
{
[JsonProperty("comments")]
public int Comments { get; set; }
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Notifications
{
[JsonProperty("type")]
public string Type { get; set; }
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Stats
{
[JsonProperty("total_count")]
public int TotalCount { get; set; }
@@ -78,6 +85,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Contact
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -90,6 +98,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Location
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -105,6 +114,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Brewery
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -127,6 +137,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Photo
{
[JsonProperty("photo_img_sm")]
public string PhotoImgSm { get; set; }
@@ -142,6 +153,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Beer2
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -184,6 +196,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Contact2
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -196,6 +209,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Location2
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -211,6 +225,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Brewery2
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -239,6 +254,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class User
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -263,6 +279,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Item
{
[JsonProperty("photo_id")]
public int PhotoId { get; set; }
@@ -290,6 +307,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Media
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -299,6 +317,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class User2
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -339,6 +358,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Beer3
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -381,6 +401,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Contact3
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -393,6 +414,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Location3
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -408,6 +430,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Brewery3
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -436,6 +459,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Comments
{
[JsonProperty("total_count")]
public int TotalCount { get; set; }
@@ -448,6 +472,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class User3
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -481,6 +506,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Item3
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -499,6 +525,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Toasts
{
[JsonProperty("total_count")]
public int TotalCount { get; set; }
@@ -514,6 +541,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Photo2
{
[JsonProperty("photo_img_sm")]
public string PhotoImgSm { get; set; }
@@ -529,6 +557,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Item4
{
[JsonProperty("photo_id")]
public int PhotoId { get; set; }
@@ -538,6 +567,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Media2
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -547,6 +577,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Source
{
[JsonProperty("app_name")]
public string AppName { get; set; }
@@ -556,6 +587,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class BadgeImage
{
[JsonProperty("sm")]
public string Sm { get; set; }
@@ -568,6 +600,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Item5
{
[JsonProperty("badge_id")]
public int BadgeId { get; set; }
@@ -589,6 +622,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Badges
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -598,6 +632,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Item2
{
[JsonProperty("checkin_id")]
public int CheckinId { get; set; }
@@ -640,6 +675,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Checkins
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -649,6 +685,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Beer4
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -676,6 +713,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Contact4
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -691,6 +729,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Location4
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -706,6 +745,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Brewery4
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -734,6 +774,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Friends
{
[JsonProperty("items")]
public IList<object> Items { get; set; }
@@ -743,6 +784,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Item6
{
[JsonProperty("rating_score")]
public double RatingScore { get; set; }
@@ -758,6 +800,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Similar
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -767,6 +810,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Friends2
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -776,6 +820,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Beer5
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -797,12 +842,14 @@ namespace Untappd.Net.Responses.BeerInfo
public class Item7
{
[JsonProperty("beer")]
public Beer5 Beer { get; set; }
}
public class Vintages
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -812,6 +859,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Beer
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -882,6 +930,7 @@ namespace Untappd.Net.Responses.BeerInfo
public class Response
{
[JsonProperty("beer")]
public Beer Beer { get; set; }
}

View File

@@ -4,8 +4,10 @@ using Untappd.Net.Request;
namespace Untappd.Net.Responses.BeerSearch
{
public class ResponseTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.BeerSearch
public class InitTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.BeerSearch
public class Meta
{
[JsonProperty("code")]
public int Code { get; set; }
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.BeerSearch
public class UnreadCount
{
[JsonProperty("comments")]
public int Comments { get; set; }
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.BeerSearch
public class Notifications
{
[JsonProperty("type")]
public string Type { get; set; }
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.BeerSearch
public class Beer
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -99,6 +106,7 @@ namespace Untappd.Net.Responses.BeerSearch
public class Contact
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -114,6 +122,7 @@ namespace Untappd.Net.Responses.BeerSearch
public class Location
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -129,6 +138,7 @@ namespace Untappd.Net.Responses.BeerSearch
public class Brewery
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -156,6 +166,7 @@ namespace Untappd.Net.Responses.BeerSearch
public class Item
{
[JsonProperty("checkin_count")]
public int CheckinCount { get; set; }
@@ -174,6 +185,7 @@ namespace Untappd.Net.Responses.BeerSearch
public class Beers
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -183,6 +195,7 @@ namespace Untappd.Net.Responses.BeerSearch
public class Homebrew
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -192,6 +205,7 @@ namespace Untappd.Net.Responses.BeerSearch
public class Breweries
{
[JsonProperty("items")]
public IList<object> Items { get; set; }
@@ -201,6 +215,7 @@ namespace Untappd.Net.Responses.BeerSearch
public class Response
{
[JsonProperty("message")]
public string Message { get; set; }

View File

@@ -4,8 +4,10 @@ using Untappd.Net.Request;
namespace Untappd.Net.Responses.BreweryInfo
{
public class ResponseTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class InitTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Meta
{
[JsonProperty("code")]
public int Code { get; set; }
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class UnreadCount
{
[JsonProperty("comments")]
public int Comments { get; set; }
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Notifications
{
[JsonProperty("type")]
public string Type { get; set; }
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class ClaimedStatus
{
[JsonProperty("is_claimed")]
public bool IsClaimed { get; set; }
@@ -84,6 +91,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Contact
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -99,6 +107,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Location
{
[JsonProperty("brewery_address")]
public string BreweryAddress { get; set; }
@@ -117,6 +126,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Rating
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -126,6 +136,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Stats
{
[JsonProperty("total_count")]
public int TotalCount { get; set; }
@@ -147,6 +158,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Owners
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -156,6 +168,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Photo
{
[JsonProperty("photo_img_sm")]
public string PhotoImgSm { get; set; }
@@ -171,6 +184,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Beer
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -195,6 +209,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Contact2
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -210,6 +225,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Location2
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -225,6 +241,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Brewery2
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -252,6 +269,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class User
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -276,6 +294,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Item
{
[JsonProperty("photo_id")]
public int PhotoId { get; set; }
@@ -303,6 +322,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Media
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -312,6 +332,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class User2
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -351,6 +372,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Beer2
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -378,6 +400,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Contact3
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -393,6 +416,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Location3
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -408,6 +432,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Brewery3
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -435,6 +460,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Comments
{
[JsonProperty("total_count")]
public int TotalCount { get; set; }
@@ -447,6 +473,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class User3
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -480,6 +507,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Item3
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -498,6 +526,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Toasts
{
[JsonProperty("total_count")]
public int TotalCount { get; set; }
@@ -513,6 +542,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Photo2
{
[JsonProperty("photo_img_sm")]
public string PhotoImgSm { get; set; }
@@ -528,6 +558,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Item4
{
[JsonProperty("photo_id")]
public int PhotoId { get; set; }
@@ -537,6 +568,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Media2
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -546,6 +578,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Source
{
[JsonProperty("app_name")]
public string AppName { get; set; }
@@ -555,6 +588,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class BadgeImage
{
[JsonProperty("sm")]
public string Sm { get; set; }
@@ -567,6 +601,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Item5
{
[JsonProperty("badge_id")]
public int BadgeId { get; set; }
@@ -588,6 +623,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Badges
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -597,6 +633,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Item2
{
[JsonProperty("checkin_id")]
public int CheckinId { get; set; }
@@ -639,6 +676,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Checkins
{
[JsonProperty("mem")]
public bool Mem { get; set; }
@@ -651,6 +689,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Beer3
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -696,6 +735,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Contact4
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -711,6 +751,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Location4
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -726,6 +767,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Brewery4
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -753,6 +795,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Item6
{
[JsonProperty("has_had")]
public bool HasHad { get; set; }
@@ -771,6 +814,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class BeerList
{
[JsonProperty("is_super")]
public bool IsSuper { get; set; }
@@ -792,6 +836,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Brewery
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -856,6 +901,7 @@ namespace Untappd.Net.Responses.BreweryInfo
public class Response
{
[JsonProperty("brewery")]
public Brewery Brewery { get; set; }
}

View File

@@ -4,8 +4,10 @@ using Untappd.Net.Request;
namespace Untappd.Net.Responses.BrewerySearch
{
public class ResponseTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.BrewerySearch
public class InitTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.BrewerySearch
public class Meta
{
[JsonProperty("code")]
public int Code { get; set; }
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.BrewerySearch
public class UnreadCount
{
[JsonProperty("comments")]
public int Comments { get; set; }
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.BrewerySearch
public class Notifications
{
[JsonProperty("type")]
public string Type { get; set; }
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.BrewerySearch
public class Location
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -78,6 +85,7 @@ namespace Untappd.Net.Responses.BrewerySearch
public class Brewery2
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -99,12 +107,14 @@ namespace Untappd.Net.Responses.BrewerySearch
public class Item
{
[JsonProperty("brewery")]
public Brewery2 Brewery { get; set; }
}
public class Brewery
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -114,6 +124,7 @@ namespace Untappd.Net.Responses.BrewerySearch
public class Response
{
[JsonProperty("search_type")]
public string SearchType { get; set; }

View File

@@ -6,6 +6,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
{
public class ResponseTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -15,6 +16,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class InitTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -24,6 +26,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Meta
{
[JsonProperty("code")]
public int Code { get; set; }
@@ -36,6 +39,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class UnreadCount
{
[JsonProperty("comments")]
public int Comments { get; set; }
@@ -54,6 +58,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Notifications
{
[JsonProperty("type")]
public string Type { get; set; }
@@ -63,6 +68,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class User
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -96,6 +102,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Beer
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -123,6 +130,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Contact
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -138,6 +146,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Location
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -153,6 +162,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Brewery
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -180,6 +190,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class User2
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -219,6 +230,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Item2
{
[JsonProperty("user")]
public User2 User { get; set; }
@@ -246,6 +258,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Comments
{
[JsonProperty("total_count")]
public int TotalCount { get; set; }
@@ -258,6 +271,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class User3
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -291,6 +305,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Item3
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -309,6 +324,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Toasts
{
[JsonProperty("total_count")]
public int TotalCount { get; set; }
@@ -324,6 +340,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Photo
{
[JsonProperty("photo_img_sm")]
public string PhotoImgSm { get; set; }
@@ -339,6 +356,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Item4
{
[JsonProperty("photo_id")]
public int PhotoId { get; set; }
@@ -348,6 +366,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Media
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -357,6 +376,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Source
{
[JsonProperty("app_name")]
public string AppName { get; set; }
@@ -366,6 +386,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class BadgeImage
{
[JsonProperty("sm")]
public string Sm { get; set; }
@@ -378,6 +399,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Item5
{
[JsonProperty("badge_id")]
public int BadgeId { get; set; }
@@ -399,6 +421,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Badges
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -408,6 +431,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Item
{
[JsonProperty("checkin_id")]
public int CheckinId { get; set; }
@@ -450,6 +474,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Checkins
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -459,6 +484,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Pagination
{
[JsonProperty("next_url")]
public string NextUrl { get; set; }
@@ -471,6 +497,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
public class Response
{
[JsonProperty("mg")]
public bool Mg { get; set; }

View File

@@ -6,6 +6,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
{
public class ResponseTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -15,6 +16,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class InitTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -24,6 +26,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Meta
{
[JsonProperty("code")]
public int Code { get; set; }
@@ -36,6 +39,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class UnreadCount
{
[JsonProperty("comments")]
public int Comments { get; set; }
@@ -54,6 +58,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Notifications
{
[JsonProperty("type")]
public string Type { get; set; }
@@ -63,6 +68,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Pagination
{
[JsonProperty("since_url")]
public string SinceUrl { get; set; }
@@ -75,12 +81,14 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Contact
{
[JsonProperty("facebook")]
public string Facebook { get; set; }
}
public class User
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -120,6 +128,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Beer
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -147,6 +156,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Contact2
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -162,6 +172,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Location
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -177,6 +188,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Brewery
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -204,6 +216,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Item2
{
[JsonProperty("category_name")]
public string CategoryName { get; set; }
@@ -216,6 +229,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Categories
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -225,6 +239,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Location2
{
[JsonProperty("venue_address")]
public string VenueAddress { get; set; }
@@ -246,6 +261,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Contact3
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -255,6 +271,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Foursquare
{
[JsonProperty("foursquare_id")]
public string FoursquareId { get; set; }
@@ -264,6 +281,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class VenueIcon
{
[JsonProperty("sm")]
public string Sm { get; set; }
@@ -276,6 +294,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Venue
{
[JsonProperty("venue_id")]
public int VenueId { get; set; }
@@ -309,6 +328,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Comments
{
[JsonProperty("total_count")]
public int TotalCount { get; set; }
@@ -321,6 +341,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Toasts
{
[JsonProperty("total_count")]
public int TotalCount { get; set; }
@@ -336,6 +357,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Photo
{
[JsonProperty("photo_img_sm")]
public string PhotoImgSm { get; set; }
@@ -351,6 +373,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Item3
{
[JsonProperty("photo_id")]
public int PhotoId { get; set; }
@@ -360,6 +383,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Media
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -369,6 +393,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Source
{
[JsonProperty("app_name")]
public string AppName { get; set; }
@@ -378,6 +403,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Badges
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -387,6 +413,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Item
{
[JsonProperty("checkin_id")]
public int CheckinId { get; set; }
@@ -430,6 +457,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Checkins
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -439,6 +467,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
public class Response
{
[JsonProperty("pagination")]
public Pagination Pagination { get; set; }

View File

@@ -4,8 +4,10 @@ using Untappd.Net.Request;
namespace Untappd.Net.Responses.UserBadges
{
public class ResponseTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.UserBadges
public class InitTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.UserBadges
public class Meta
{
[JsonProperty("code")]
public int Code { get; set; }
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.UserBadges
public class UnreadCount
{
[JsonProperty("comments")]
public int Comments { get; set; }
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.UserBadges
public class Notifications
{
[JsonProperty("type")]
public string Type { get; set; }
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.UserBadges
public class Media
{
[JsonProperty("badge_image_sm")]
public string BadgeImageSm { get; set; }
@@ -75,6 +82,7 @@ namespace Untappd.Net.Responses.UserBadges
public class BadgePackProgress
{
[JsonProperty("completed")]
public int Completed { get; set; }
@@ -123,6 +131,7 @@ namespace Untappd.Net.Responses.UserBadges
public class Item
{
[JsonProperty("user_badge_id")]
public int UserBadgeId { get; set; }
@@ -183,6 +192,7 @@ namespace Untappd.Net.Responses.UserBadges
public class Response
{
[JsonProperty("type")]
public string Type { get; set; }

View File

@@ -4,8 +4,10 @@ using Untappd.Net.Request;
namespace Untappd.Net.Responses.UserDistinctBeer
{
public sealed class ResponseTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.UserDistinctBeer
public class InitTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.UserDistinctBeer
public class Meta
{
[JsonProperty("code")]
public int Code { get; set; }
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.UserDistinctBeer
public class Beer
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -78,6 +83,7 @@ namespace Untappd.Net.Responses.UserDistinctBeer
public class Contact
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -93,6 +99,7 @@ namespace Untappd.Net.Responses.UserDistinctBeer
public class Location
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -108,6 +115,7 @@ namespace Untappd.Net.Responses.UserDistinctBeer
public class Brewery
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -135,6 +143,7 @@ namespace Untappd.Net.Responses.UserDistinctBeer
public class Item
{
[JsonProperty("first_checkin_id")]
public int FirstCheckinId { get; set; }
@@ -168,6 +177,7 @@ namespace Untappd.Net.Responses.UserDistinctBeer
public class Beers
{
[JsonProperty("sort")]
public string Sort { get; set; }
@@ -185,16 +195,12 @@ namespace Untappd.Net.Responses.UserDistinctBeer
{
[JsonProperty("comments")]
public int Comments { get; set; }
[JsonProperty("toasts")]
public int Toasts { get; set; }
[JsonProperty("friends")]
public int Friends { get; set; }
[JsonProperty("messages")]
public int Messages { get; set; }
[JsonProperty("news")]
public int news { get; set; }
}
@@ -203,13 +209,13 @@ namespace Untappd.Net.Responses.UserDistinctBeer
{
[JsonProperty("type")]
public string Type { get; set; }
[JsonProperty("unread_count")]
public UnreadCount UnreadCount { get; set; }
}
public class Response
{
[JsonProperty("is_search")]
public bool IsSearch { get; set; }
@@ -231,4 +237,5 @@ namespace Untappd.Net.Responses.UserDistinctBeer
[JsonProperty("response")]
public Response Response { get; set; }
}
}

View File

@@ -4,8 +4,10 @@ using Untappd.Net.Request;
namespace Untappd.Net.Responses.UserFriends
{
public class ResponseTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.UserFriends
public class InitTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.UserFriends
public class Meta
{
[JsonProperty("code")]
public int Code { get; set; }
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.UserFriends
public class UnreadCount
{
[JsonProperty("comments")]
public int Comments { get; set; }
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.UserFriends
public class Notifications
{
[JsonProperty("type")]
public string Type { get; set; }
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.UserFriends
public class User
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -93,6 +100,7 @@ namespace Untappd.Net.Responses.UserFriends
public class MutualFriends
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -102,6 +110,7 @@ namespace Untappd.Net.Responses.UserFriends
public class Item
{
[JsonProperty("friendship_hash")]
public string FriendshipHash { get; set; }
@@ -117,6 +126,7 @@ namespace Untappd.Net.Responses.UserFriends
public class Response
{
[JsonProperty("count")]
public int Count { get; set; }

View File

@@ -4,8 +4,10 @@ using Untappd.Net.Request;
namespace Untappd.Net.Responses.UserInfo
{
public class ResponseTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.UserInfo
public class InitTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Meta
{
[JsonProperty("code")]
public int Code { get; set; }
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.UserInfo
public class UnreadCount
{
[JsonProperty("comments")]
public int Comments { get; set; }
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Notifications
{
[JsonProperty("type")]
public string Type { get; set; }
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Stats
{
[JsonProperty("total_badges")]
public int TotalBadges { get; set; }
@@ -87,6 +94,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Beer
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -114,6 +122,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Contact
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -129,6 +138,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Location
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -144,6 +154,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Brewery
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -171,6 +182,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Item
{
[JsonProperty("beer")]
public Beer Beer { get; set; }
@@ -180,6 +192,7 @@ namespace Untappd.Net.Responses.UserInfo
public class RecentBrews
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -189,6 +202,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Contact2
{
[JsonProperty("facebook")]
public string Facebook { get; set; }
@@ -198,6 +212,7 @@ namespace Untappd.Net.Responses.UserInfo
public class User2
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -237,6 +252,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Beer2
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -264,6 +280,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Contact3
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -279,6 +296,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Location2
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -294,6 +312,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Brewery2
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -321,6 +340,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Item3
{
[JsonProperty("category_name")]
public string CategoryName { get; set; }
@@ -333,6 +353,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Categories
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -342,6 +363,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Location3
{
[JsonProperty("venue_address")]
public string VenueAddress { get; set; }
@@ -363,6 +385,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Contact4
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -372,6 +395,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Foursquare
{
[JsonProperty("foursquare_id")]
public string FoursquareId { get; set; }
@@ -381,6 +405,7 @@ namespace Untappd.Net.Responses.UserInfo
public class VenueIcon
{
[JsonProperty("sm")]
public string Sm { get; set; }
@@ -393,6 +418,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Venue
{
[JsonProperty("venue_id")]
public int VenueId { get; set; }
@@ -426,6 +452,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Comments
{
[JsonProperty("total_count")]
public int TotalCount { get; set; }
@@ -438,6 +465,7 @@ namespace Untappd.Net.Responses.UserInfo
public class User3
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -471,6 +499,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Item4
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -489,6 +518,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Toasts
{
[JsonProperty("total_count")]
public int TotalCount { get; set; }
@@ -504,6 +534,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Photo
{
[JsonProperty("photo_img_sm")]
public string PhotoImgSm { get; set; }
@@ -519,6 +550,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Item5
{
[JsonProperty("photo_id")]
public int PhotoId { get; set; }
@@ -528,6 +560,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Media
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -537,6 +570,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Source
{
[JsonProperty("app_name")]
public string AppName { get; set; }
@@ -546,6 +580,7 @@ namespace Untappd.Net.Responses.UserInfo
public class BadgeImage
{
[JsonProperty("sm")]
public string Sm { get; set; }
@@ -558,6 +593,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Item6
{
[JsonProperty("badge_id")]
public int BadgeId { get; set; }
@@ -579,6 +615,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Badges
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -588,6 +625,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Item2
{
[JsonProperty("checkin_id")]
public int CheckinId { get; set; }
@@ -631,6 +669,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Checkins
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -640,6 +679,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Photo2
{
[JsonProperty("photo_img_sm")]
public string PhotoImgSm { get; set; }
@@ -655,6 +695,7 @@ namespace Untappd.Net.Responses.UserInfo
public class User4
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -685,6 +726,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Beer3
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -712,6 +754,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Contact5
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -727,6 +770,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Location4
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -742,6 +786,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Brewery3
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -769,6 +814,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Item8
{
[JsonProperty("category_name")]
public string CategoryName { get; set; }
@@ -781,6 +827,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Categories2
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -790,6 +837,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Location5
{
[JsonProperty("venue_address")]
public string VenueAddress { get; set; }
@@ -811,6 +859,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Contact6
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -820,6 +869,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Foursquare2
{
[JsonProperty("foursquare_id")]
public string FoursquareId { get; set; }
@@ -829,6 +879,7 @@ namespace Untappd.Net.Responses.UserInfo
public class VenueIcon2
{
[JsonProperty("sm")]
public string Sm { get; set; }
@@ -841,6 +892,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Venue2
{
[JsonProperty("venue_id")]
public int VenueId { get; set; }
@@ -874,6 +926,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Item7
{
[JsonProperty("photo_id")]
public int PhotoId { get; set; }
@@ -901,6 +954,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Media2
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -910,6 +964,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Contact7
{
[JsonProperty("facebook")]
public int Facebook { get; set; }
@@ -919,6 +974,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Badge
{
[JsonProperty("badges_to_facebook")]
public int BadgesToFacebook { get; set; }
@@ -928,6 +984,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Checkin
{
[JsonProperty("checkin_to_facebook")]
public int CheckinToFacebook { get; set; }
@@ -940,12 +997,14 @@ namespace Untappd.Net.Responses.UserInfo
public class Navigation
{
[JsonProperty("default_to_checkin")]
public int DefaultToCheckin { get; set; }
}
public class Settings
{
[JsonProperty("badge")]
public Badge Badge { get; set; }
@@ -962,6 +1021,7 @@ namespace Untappd.Net.Responses.UserInfo
public class User
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -1038,6 +1098,7 @@ namespace Untappd.Net.Responses.UserInfo
public class Response
{
[JsonProperty("user")]
public User User { get; set; }
}

View File

@@ -4,8 +4,10 @@ using Untappd.Net.Request;
namespace Untappd.Net.Responses.UserWishlist
{
public class ResponseTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.UserWishlist
public class InitTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.UserWishlist
public class Meta
{
[JsonProperty("code")]
public int Code { get; set; }
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.UserWishlist
public class UnreadCount
{
[JsonProperty("comments")]
public int Comments { get; set; }
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.UserWishlist
public class Notifications
{
[JsonProperty("type")]
public string Type { get; set; }
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.UserWishlist
public class Beer
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -108,6 +115,7 @@ namespace Untappd.Net.Responses.UserWishlist
public class Contact
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -123,6 +131,7 @@ namespace Untappd.Net.Responses.UserWishlist
public class Location
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -138,6 +147,7 @@ namespace Untappd.Net.Responses.UserWishlist
public class Brewery
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -165,6 +175,7 @@ namespace Untappd.Net.Responses.UserWishlist
public class Item
{
[JsonProperty("created_at")]
public string CreatedAt { get; set; }
@@ -180,6 +191,7 @@ namespace Untappd.Net.Responses.UserWishlist
public class Beers
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -189,6 +201,7 @@ namespace Untappd.Net.Responses.UserWishlist
public class Response
{
[JsonProperty("sort")]
public string Sort { get; set; }

View File

@@ -4,8 +4,10 @@ using Untappd.Net.Request;
namespace Untappd.Net.Responses.VenueInfo
{
public class ResponseTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class InitTime
{
[JsonProperty("time")]
public double Time { get; set; }
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Meta
{
[JsonProperty("code")]
public int Code { get; set; }
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class UnreadCount
{
[JsonProperty("comments")]
public int Comments { get; set; }
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Notifications
{
[JsonProperty("type")]
public string Type { get; set; }
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Item
{
[JsonProperty("category_name")]
public string CategoryName { get; set; }
@@ -75,6 +82,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Categories
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -84,6 +92,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Stats
{
[JsonProperty("total_count")]
public int TotalCount { get; set; }
@@ -102,6 +111,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class VenueIcon
{
[JsonProperty("sm")]
public string Sm { get; set; }
@@ -114,6 +124,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Location
{
[JsonProperty("venue_address")]
public string VenueAddress { get; set; }
@@ -135,6 +146,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Contact
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -144,6 +156,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Foursquare
{
[JsonProperty("foursquare_id")]
public string FoursquareId { get; set; }
@@ -153,6 +166,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Photo
{
[JsonProperty("photo_img_sm")]
public string PhotoImgSm { get; set; }
@@ -168,6 +182,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Beer
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -210,6 +225,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Contact2
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -222,6 +238,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Location2
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -237,6 +254,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Brewery
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -265,6 +283,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class User
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -289,6 +308,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Item3
{
[JsonProperty("category_name")]
public string CategoryName { get; set; }
@@ -301,6 +321,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Categories2
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -310,6 +331,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Location3
{
[JsonProperty("venue_address")]
public string VenueAddress { get; set; }
@@ -331,6 +353,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Contact3
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -340,6 +363,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Foursquare2
{
[JsonProperty("foursquare_id")]
public string FoursquareId { get; set; }
@@ -349,6 +373,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class VenueIcon2
{
[JsonProperty("sm")]
public string Sm { get; set; }
@@ -361,6 +386,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Venue2
{
[JsonProperty("venue_id")]
public int VenueId { get; set; }
@@ -395,6 +421,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Item2
{
[JsonProperty("photo_id")]
public int PhotoId { get; set; }
@@ -422,6 +449,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Media
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -431,6 +459,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class User2
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -458,6 +487,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Beer2
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -485,6 +515,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Contact4
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -500,6 +531,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Location4
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -515,6 +547,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Brewery2
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -543,6 +576,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Item5
{
[JsonProperty("category_name")]
public string CategoryName { get; set; }
@@ -555,6 +589,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Categories3
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -564,6 +599,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Location5
{
[JsonProperty("venue_address")]
public string VenueAddress { get; set; }
@@ -585,6 +621,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Contact5
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -594,6 +631,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Foursquare3
{
[JsonProperty("foursquare_id")]
public string FoursquareId { get; set; }
@@ -603,6 +641,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class VenueIcon3
{
[JsonProperty("sm")]
public string Sm { get; set; }
@@ -615,6 +654,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Venue3
{
[JsonProperty("venue_id")]
public int VenueId { get; set; }
@@ -649,6 +689,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class User3
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -688,6 +729,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Item6
{
[JsonProperty("user")]
public User3 User { get; set; }
@@ -715,6 +757,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Comments
{
[JsonProperty("total_count")]
public int TotalCount { get; set; }
@@ -727,6 +770,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class User4
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -760,6 +804,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Item7
{
[JsonProperty("uid")]
public int Uid { get; set; }
@@ -778,6 +823,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Toasts
{
[JsonProperty("total_count")]
public int TotalCount { get; set; }
@@ -793,6 +839,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Photo2
{
[JsonProperty("photo_img_sm")]
public string PhotoImgSm { get; set; }
@@ -808,6 +855,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Item8
{
[JsonProperty("photo_id")]
public int PhotoId { get; set; }
@@ -817,6 +865,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Media2
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -826,6 +875,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Source
{
[JsonProperty("app_name")]
public string AppName { get; set; }
@@ -835,6 +885,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class BadgeImage
{
[JsonProperty("sm")]
public string Sm { get; set; }
@@ -847,6 +898,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Item9
{
[JsonProperty("badge_id")]
public int BadgeId { get; set; }
@@ -868,6 +920,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Badges
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -877,6 +930,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Item4
{
[JsonProperty("checkin_id")]
public int CheckinId { get; set; }
@@ -919,6 +973,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Checkins
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -928,6 +983,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Beer3
{
[JsonProperty("bid")]
public int Bid { get; set; }
@@ -976,6 +1032,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Contact6
{
[JsonProperty("twitter")]
public string Twitter { get; set; }
@@ -988,6 +1045,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Location6
{
[JsonProperty("brewery_city")]
public string BreweryCity { get; set; }
@@ -1003,6 +1061,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Brewery3
{
[JsonProperty("brewery_id")]
public int BreweryId { get; set; }
@@ -1031,6 +1090,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Friends
{
[JsonProperty("count")]
public int Count { get; set; }
@@ -1040,6 +1100,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Item10
{
[JsonProperty("created_at")]
public string CreatedAt { get; set; }
@@ -1061,6 +1122,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class TopBeers
{
[JsonProperty("offset")]
public int Offset { get; set; }
@@ -1076,6 +1138,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Venue
{
[JsonProperty("venue_id")]
public int VenueId { get; set; }
@@ -1123,6 +1186,7 @@ namespace Untappd.Net.Responses.VenueInfo
public class Response
{
[JsonProperty("venue")]
public Venue Venue { get; set; }
}

View File

@@ -16,6 +16,7 @@ namespace Untappd.Net
public override bool CanConvert(Type objectType)
{
return true;
}
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
@@ -28,7 +29,6 @@ namespace Untappd.Net
var instance = (T)serializer.Deserialize(reader, typeof(T));
retval = instance;
break;
case JsonToken.StartArray:
reader.Read();
retval = new T();