Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0935963909 | ||
|
|
59a56dcb05 | ||
|
|
a7a644282d | ||
|
|
fa7d5e0b2c | ||
|
|
d5b6387abb | ||
|
|
ae1d0763cb | ||
|
|
5716546c58 | ||
|
|
61f5f33231 | ||
|
|
cd12db9469 | ||
|
|
ae582d6fc2 | ||
|
|
280b392b3f | ||
|
|
2fc6dd5690 | ||
|
|
40d48f80e6 |
@@ -69,7 +69,7 @@ For Authenticated requests:
|
|||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
|
|
||||||
var ts = new AuthenticatedUntappdCredentials("token");
|
var ts = new AuthenticatedUntappdCredentials("token", "key", "secret");
|
||||||
var t = new Repository().Get<ActivityFeed>(ts);
|
var t = new Repository().Get<ActivityFeed>(ts);
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -79,7 +79,7 @@ For Actions (usually post requests). Note: Actions return a dynamic object. Usua
|
|||||||
|
|
||||||
```csharp
|
```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 checkin = new CheckIn("-5", "EST", 1044097) { Shout = "Awesome Brew", Rating = 4 };
|
||||||
var response = repository.Post(ts, checkin);
|
var response = repository.Post(ts, checkin);
|
||||||
|
|
||||||
@@ -96,4 +96,3 @@ var response = repository.Post(ts, checkin);
|
|||||||
Current contributors:
|
Current contributors:
|
||||||
* Tommy James Parnell (https://github.com/tparnell8)
|
* Tommy James Parnell (https://github.com/tparnell8)
|
||||||
* Rodrigo P Reis (https://github.com/rodkings)
|
* Rodrigo P Reis (https://github.com/rodkings)
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
version: 0.5.{build}
|
version: 0.4.{build}
|
||||||
configuration: Release
|
configuration: Release
|
||||||
notifications:
|
notifications:
|
||||||
- provider: Webhook
|
- provider: Webhook
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
require 'openssl'
|
|
||||||
|
|
||||||
namespace :tools do
|
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
|
# If we don't have a copy of nuget, download it
|
||||||
task :nuget_bootstrap do
|
task :nuget_bootstrap do
|
||||||
puts 'Ensuring NuGet exists in tools/NuGet'
|
puts 'Ensuring NuGet exists in tools/NuGet'
|
||||||
@@ -13,12 +10,12 @@ namespace :tools do
|
|||||||
begin
|
begin
|
||||||
FileUtils.mkdir_p("#{NUGET}")
|
FileUtils.mkdir_p("#{NUGET}")
|
||||||
File.open("#{NUGET}/nuget.exe", "wb") do |file|
|
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
|
end
|
||||||
rescue
|
rescue
|
||||||
FileUtils.rm_rf("#{NUGET}/nuget.exe")
|
FileUtils.rm_rf("#{NUGET}/nuget.exe")
|
||||||
File.open("#{NUGET}/nuget.exe", "wb") do |file|
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ namespace Untappd.Net.UnitTests.Authentication
|
|||||||
{
|
{
|
||||||
var t = new AuthenticatedUntappdCredentials(null);
|
var t = new AuthenticatedUntappdCredentials(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void ExpectValid()
|
public void ExpectValid()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,49 +12,53 @@ namespace Untappd.Net.UnitTests.Authentication
|
|||||||
[ExpectedException(typeof(ArgumentNullException))]
|
[ExpectedException(typeof(ArgumentNullException))]
|
||||||
public void TestRedirectUserToException1()
|
public void TestRedirectUserToException1()
|
||||||
{
|
{
|
||||||
|
|
||||||
AuthenticationHelper.RedirectUserTo(null, "url");
|
AuthenticationHelper.RedirectUserTo(null, "url");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[ExpectedException(typeof(ArgumentNullException))]
|
[ExpectedException(typeof(ArgumentNullException))]
|
||||||
public void TestRedirectUserToException2()
|
public void TestRedirectUserToException2()
|
||||||
{
|
{
|
||||||
|
|
||||||
AuthenticationHelper.RedirectUserTo(new UnAuthenticatedUntappdCredentials("d", "d"), string.Empty);
|
AuthenticationHelper.RedirectUserTo(new UnAuthenticatedUntappdCredentials("d", "d"), string.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[ExpectedException(typeof(ArgumentNullException))]
|
[ExpectedException(typeof(ArgumentNullException))]
|
||||||
public void TestTokenUrlException1()
|
public void TestTokenUrlException1()
|
||||||
{
|
{
|
||||||
|
|
||||||
AuthenticationHelper.TokenUrl(null, "some", "code");
|
AuthenticationHelper.TokenUrl(null, "some", "code");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[ExpectedException(typeof(ArgumentNullException))]
|
[ExpectedException(typeof(ArgumentNullException))]
|
||||||
public void TestTokenUrlException2()
|
public void TestTokenUrlException2()
|
||||||
{
|
{
|
||||||
|
|
||||||
AuthenticationHelper.TokenUrl(new UnAuthenticatedUntappdCredentials("d", "d"), string.Empty, "code");
|
AuthenticationHelper.TokenUrl(new UnAuthenticatedUntappdCredentials("d", "d"), string.Empty, "code");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[ExpectedException(typeof(ArgumentNullException))]
|
[ExpectedException(typeof(ArgumentNullException))]
|
||||||
public void TestTokenUrlException3()
|
public void TestTokenUrlException3()
|
||||||
{
|
{
|
||||||
|
|
||||||
AuthenticationHelper.TokenUrl(new UnAuthenticatedUntappdCredentials("d", "d"), "ds", string.Empty);
|
AuthenticationHelper.TokenUrl(new UnAuthenticatedUntappdCredentials("d", "d"), "ds", string.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestTokenUrl()
|
public void TestTokenUrl()
|
||||||
{
|
{
|
||||||
|
|
||||||
var s = AuthenticationHelper.TokenUrl(new UnAuthenticatedUntappdCredentials("d", "d"), "ds", "code");
|
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");
|
Assert.AreEqual(s, Constants.OAuthTokenEndPoint + "/?client_id=d&client_secret=d&response_type=code&redirect_url=ds&code=code");
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
[Test]
|
[Test]
|
||||||
public void TestRedirectUrl()
|
public void TestRedirectUrl()
|
||||||
{
|
{
|
||||||
|
|
||||||
var s = AuthenticationHelper.RedirectUserTo(new UnAuthenticatedUntappdCredentials("d", "d"), "ds");
|
var s = AuthenticationHelper.RedirectUserTo(new UnAuthenticatedUntappdCredentials("d", "d"), "ds");
|
||||||
Assert.AreEqual(s, Constants.BaseRequestString + "/?client_id=d&response_type=code&redirect_url=ds");
|
Assert.AreEqual(s, Constants.BaseRequestString + "/?client_id=d&response_type=code&redirect_url=ds");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,6 @@ namespace Untappd.Net.UnitTests.Authentication
|
|||||||
{
|
{
|
||||||
var t = new UnAuthenticatedUntappdCredentials(string.Empty, "t");
|
var t = new UnAuthenticatedUntappdCredentials(string.Empty, "t");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[ExpectedException(typeof(ArgumentNullException))]
|
[ExpectedException(typeof(ArgumentNullException))]
|
||||||
public void ExpectClientSecretException()
|
public void ExpectClientSecretException()
|
||||||
|
|||||||
@@ -1,30 +1,29 @@
|
|||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using Untappd.Net.Exception;
|
using Untappd.Net.Exception;
|
||||||
|
|
||||||
namespace Untappd.Net.UnitTests.Exception
|
namespace Untappd.Net.UnitTests.Exception
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class TestBaseUntappdException
|
public class TestBaseUntappdException
|
||||||
{
|
{
|
||||||
[ExpectedException(typeof(BaseUntappdException))]
|
[ExpectedException(typeof (BaseUntappdException))]
|
||||||
[Test]
|
[Test]
|
||||||
public void TestStandardException()
|
public void TestStandardException()
|
||||||
{
|
{
|
||||||
throw new BaseUntappdException();
|
throw new BaseUntappdException();
|
||||||
}
|
}
|
||||||
|
|
||||||
[ExpectedException(typeof(BaseUntappdException), ExpectedMessage = "messageHere")]
|
[ExpectedException(typeof(BaseUntappdException), ExpectedMessage = "messageHere")]
|
||||||
[Test]
|
[Test]
|
||||||
public void TestStandardExceptionWithMessage()
|
public void TestStandardExceptionWithMessage()
|
||||||
{
|
{
|
||||||
throw new BaseUntappdException("messageHere");
|
throw new BaseUntappdException("messageHere");
|
||||||
}
|
}
|
||||||
|
|
||||||
[ExpectedException(typeof(BaseUntappdException), ExpectedMessage = "messageHere")]
|
[ExpectedException(typeof(BaseUntappdException), ExpectedMessage = "messageHere")]
|
||||||
[Test]
|
[Test]
|
||||||
public void TestStandardExceptionWithInner()
|
public void TestStandardExceptionWithInner()
|
||||||
{
|
{
|
||||||
throw new BaseUntappdException("messageHere", new System.Exception("innerException!"));
|
throw new BaseUntappdException("messageHere", new System.Exception("innerException!"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -12,5 +12,6 @@ namespace Untappd.Net.UnitTests.Exception
|
|||||||
{
|
{
|
||||||
throw new EndpointConfigurationException();
|
throw new EndpointConfigurationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,8 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using Moq;
|
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using RestSharp;
|
|
||||||
using Untappd.Net.Exception;
|
using Untappd.Net.Exception;
|
||||||
|
using Moq;
|
||||||
|
using RestSharp;
|
||||||
|
|
||||||
|
|
||||||
namespace Untappd.Net.UnitTests.Exception
|
namespace Untappd.Net.UnitTests.Exception
|
||||||
{
|
{
|
||||||
@@ -15,16 +16,17 @@ namespace Untappd.Net.UnitTests.Exception
|
|||||||
var mockRequest = new Mock<IRestRequest>();
|
var mockRequest = new Mock<IRestRequest>();
|
||||||
var mockResponse = new Mock<IRestResponse>();
|
var mockResponse = new Mock<IRestResponse>();
|
||||||
|
|
||||||
Assert.Throws<ArgumentNullException>(() =>
|
Assert.Throws<ArgumentNullException>(()=>{
|
||||||
{
|
|
||||||
var t = new HttpErrorException(mockRequest.Object, null);
|
var t = new HttpErrorException(mockRequest.Object, null);
|
||||||
Console.WriteLine(t);
|
Console.WriteLine(t);
|
||||||
|
|
||||||
});
|
});
|
||||||
Assert.Throws<ArgumentNullException>(() =>
|
Assert.Throws<ArgumentNullException>(()=>{
|
||||||
{
|
|
||||||
var t = new HttpErrorException(null, mockResponse.Object);
|
var t = new HttpErrorException(null, mockResponse.Object);
|
||||||
Console.WriteLine(t);
|
Console.WriteLine(t);
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ using Moq;
|
|||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
using Untappd.Net.Authentication;
|
using Untappd.Net.Authentication;
|
||||||
using Untappd.Net.Exception;
|
|
||||||
using Untappd.Net.Request;
|
using Untappd.Net.Request;
|
||||||
using Untappd.Net.Responses.Actions;
|
using Untappd.Net.Responses.Actions;
|
||||||
using Untappd.Net.Responses.BeerInfo;
|
using Untappd.Net.Responses.BeerInfo;
|
||||||
|
using Untappd.Net.Exception;
|
||||||
|
|
||||||
namespace Untappd.Net.UnitTests.Request
|
namespace Untappd.Net.UnitTests.Request
|
||||||
{
|
{
|
||||||
@@ -25,7 +25,7 @@ namespace Untappd.Net.UnitTests.Request
|
|||||||
{"client_id", "id"},
|
{"client_id", "id"},
|
||||||
{"client_secret", "secret"}
|
{"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 client = new Mock<IRestClient>();
|
||||||
var request = new Mock<IRestRequest>();
|
var request = new Mock<IRestRequest>();
|
||||||
request.Setup(a => a.AddParameter(It.IsAny<string>(), It.IsAny<string>()));
|
request.Setup(a => a.AddParameter(It.IsAny<string>(), It.IsAny<string>()));
|
||||||
@@ -38,10 +38,8 @@ namespace Untappd.Net.UnitTests.Request
|
|||||||
}).Returns(response.Object);
|
}).Returns(response.Object);
|
||||||
client.Setup(a => a.ExecuteTaskAsync(It.IsAny<IRestRequest>())).Callback(() =>
|
client.Setup(a => a.ExecuteTaskAsync(It.IsAny<IRestRequest>())).Callback(() =>
|
||||||
{
|
{
|
||||||
}).Returns(Task.Run(() => response.Object));
|
}).Returns(Task.Run(()=> response.Object));
|
||||||
#pragma warning disable CS0618 // Type or member is obsolete Using as intended
|
|
||||||
var repository = new Repository(client.Object, request.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);
|
repository.Get<BeerInfo>(mockCreds.Object, "awesome", bodyParam);
|
||||||
request.Verify(a => a.AddParameter("client_id", mockCreds.Object.AuthenticationData["client_id"]));
|
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(sender);
|
||||||
Assert.IsNotNull(e);
|
Assert.IsNotNull(e);
|
||||||
};
|
};
|
||||||
Assert.Throws<HttpErrorException>(() => repository.Post(mockAuthCreds.Object, checkin));
|
Assert.Throws<HttpErrorException>(()=>repository.Post(mockAuthCreds.Object, checkin));
|
||||||
repository.FailFast = false;
|
repository.FailFast = false;
|
||||||
repository.Post(mockAuthCreds.Object, checkin);
|
repository.Post(mockAuthCreds.Object, checkin);
|
||||||
request.Verify(a => a.AddParameter("access_token", "PostaccessToken"));
|
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.Client != null);
|
||||||
Assert.IsTrue(constructorTest.Request != 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]
|
[Test]
|
||||||
public void ConfirmConfigureGetRequestClearsParams()
|
public void ConfirmConfigureGetRequestClearsParams()
|
||||||
{
|
{
|
||||||
var constructorTest = new Repository();
|
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);
|
Assert.IsTrue(constructorTest.Request.Parameters.Count > 0);
|
||||||
constructorTest.ConfigureRequest("endpoint");
|
constructorTest.ConfigureRequest("endpoint");
|
||||||
Assert.IsTrue(constructorTest.Request.Parameters.Count == 0);
|
Assert.IsTrue(constructorTest.Request.Parameters.Count == 0);
|
||||||
|
|||||||
@@ -52,6 +52,10 @@ namespace Untappd.Net.UnitTests.Responses.Actions
|
|||||||
checkin.Rating = 2;
|
checkin.Rating = 2;
|
||||||
Assert.IsTrue(checkin.BodyParameters.ContainsKey("rating"));
|
Assert.IsTrue(checkin.BodyParameters.ContainsKey("rating"));
|
||||||
Assert.AreEqual(checkin.BodyParameters["rating"], 2);
|
Assert.AreEqual(checkin.BodyParameters["rating"], 2);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -35,6 +35,7 @@ namespace Untappd.Net.UnitTests.Responses.Actions
|
|||||||
Assert.IsNotNullOrEmpty(removeWish.EndPoint);
|
Assert.IsNotNullOrEmpty(removeWish.EndPoint);
|
||||||
Assert.AreEqual(removeWish.BodyParameters["bid"], 1);
|
Assert.AreEqual(removeWish.BodyParameters["bid"], 1);
|
||||||
|
|
||||||
|
|
||||||
var addWish = new AddToWishList(1);
|
var addWish = new AddToWishList(1);
|
||||||
Assert.IsNotNullOrEmpty(addWish.RequestMethod.ToString());
|
Assert.IsNotNullOrEmpty(addWish.RequestMethod.ToString());
|
||||||
Assert.IsNotNullOrEmpty(addWish.EndPoint);
|
Assert.IsNotNullOrEmpty(addWish.EndPoint);
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ namespace Untappd.Net.UnitTests.Responses
|
|||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class TestResponseEndpoints
|
public class TestResponseEndpoints
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Run through all the endpoints to make sure they all atleast do not error out.
|
/// 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.
|
/// 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]
|
[Test]
|
||||||
public void RunAllEndpoints()
|
public void RunAllEndpoints()
|
||||||
{
|
{
|
||||||
var objects = Assembly.GetAssembly(typeof(IRequest)).GetTypes().Where(myType =>
|
|
||||||
|
var objects = Assembly.GetAssembly(typeof (IRequest)).GetTypes().Where(myType =>
|
||||||
myType.IsClass
|
myType.IsClass
|
||||||
&& !myType.IsAbstract
|
&& !myType.IsAbstract
|
||||||
&& myType.GetInterface("IRequest") != null).Select(type => (IRequest)Activator.CreateInstance(type)).ToList();
|
&& myType.GetInterface("IRequest") != null).Select(type => (IRequest) Activator.CreateInstance(type)).ToList();
|
||||||
objects.ForEach(a => Assert.IsNotNullOrEmpty(a.EndPoint("t")));
|
objects.ForEach(a=>Assert.IsNotNullOrEmpty(a.EndPoint("t")));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void RunAllEndpointsWithEmptyString()
|
public void RunAllEndpointsWithEmptyString()
|
||||||
{
|
{
|
||||||
var objects = Assembly.GetAssembly(typeof(IRequest)).GetTypes().Where(myType =>
|
|
||||||
|
var objects = Assembly.GetAssembly(typeof (IRequest)).GetTypes().Where(myType =>
|
||||||
myType.IsClass
|
myType.IsClass
|
||||||
&& !myType.IsAbstract
|
&& !myType.IsAbstract
|
||||||
&& myType.GetInterface("IRequest") != null).Select(type => (IRequest)Activator.CreateInstance(type)).ToList();
|
&& myType.GetInterface("IRequest") != null).Select(type => (IRequest) Activator.CreateInstance(type)).ToList();
|
||||||
objects.ForEach(a => Assert.IsNotNullOrEmpty(a.EndPoint(string.Empty)));
|
objects.ForEach(a=>Assert.IsNotNullOrEmpty(a.EndPoint(string.Empty)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
namespace Untappd.Net.Authentication
|
|
||||||
|
namespace Untappd.Net.Authentication
|
||||||
{
|
{
|
||||||
public interface IUnAuthenticatedUntappdCredentials : IUntappdCredentials
|
public interface IUnAuthenticatedUntappdCredentials : IUntappdCredentials
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,8 +10,9 @@ namespace Untappd.Net.Exception
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="type"></param>
|
/// <param name="type"></param>
|
||||||
public EndpointConfigurationException()
|
public EndpointConfigurationException()
|
||||||
: base("Invalid endpoint configured")
|
:base("Invalid endpoint configured")
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -16,10 +16,9 @@ namespace Untappd.Net.Exception
|
|||||||
}
|
}
|
||||||
|
|
||||||
private readonly string _message;
|
private readonly string _message;
|
||||||
|
|
||||||
public HttpErrorException(IRestRequest request, IRestResponse response)
|
public HttpErrorException(IRestRequest request, IRestResponse response)
|
||||||
{
|
{
|
||||||
if (request == null)
|
if(request == null)
|
||||||
{
|
{
|
||||||
throw new ArgumentNullException("request");
|
throw new ArgumentNullException("request");
|
||||||
}
|
}
|
||||||
@@ -27,7 +26,7 @@ namespace Untappd.Net.Exception
|
|||||||
{
|
{
|
||||||
throw new ArgumentNullException("response");
|
throw new ArgumentNullException("response");
|
||||||
}
|
}
|
||||||
var code = (int)response.StatusCode;
|
var code = (int) response.StatusCode;
|
||||||
if (code == 200)
|
if (code == 200)
|
||||||
{
|
{
|
||||||
throw new BaseUntappdException(
|
throw new BaseUntappdException(
|
||||||
|
|||||||
@@ -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
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
[assembly: AssemblyTitle("Untappd.Net")]
|
[assembly: AssemblyTitle("Untappd.Net")]
|
||||||
[assembly: AssemblyDescription("C# Untappd Wrapper")]
|
[assembly: AssemblyDescription("C# Untappd Wrapper")]
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ namespace Untappd.Net.Request
|
|||||||
public abstract class BasicRequest
|
public abstract class BasicRequest
|
||||||
{
|
{
|
||||||
protected abstract string EndPointWithConfiguration { get; }
|
protected abstract string EndPointWithConfiguration { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Pass in the parameter into the request...ie username, brewery, etc.
|
/// Pass in the parameter into the request...ie username, brewery, etc.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ namespace Untappd.Net.Request
|
|||||||
internal IRestClient Client;
|
internal IRestClient Client;
|
||||||
internal IRestRequest Request;
|
internal IRestRequest Request;
|
||||||
public bool FailFast { get; set; }
|
public bool FailFast { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Event to listen to when failFast is set to false
|
/// Event to listen to when failFast is set to false
|
||||||
/// This allows you to capture the excpetion, before its swallowed
|
/// This allows you to capture the excpetion, before its swallowed
|
||||||
@@ -25,14 +24,10 @@ namespace Untappd.Net.Request
|
|||||||
/// Make a repository
|
/// Make a repository
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="failFast">Should we throw exceptions? or just return null</param>
|
/// <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)
|
||||||
public Repository(bool failFast = true, int timeout = 0)
|
|
||||||
{
|
{
|
||||||
Client = new RestClient(Constants.BaseRequestString);
|
Client = new RestClient(Constants.BaseRequestString);
|
||||||
Request = new RestRequest
|
Request = new RestRequest();
|
||||||
{
|
|
||||||
Timeout = timeout
|
|
||||||
};
|
|
||||||
FailFast = failFast;
|
FailFast = failFast;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,19 +65,19 @@ namespace Untappd.Net.Request
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
private TResult ExecuteRequest<TResult>()
|
TResult ExecuteRequest<TResult>()
|
||||||
where TResult : class
|
where TResult : class
|
||||||
{
|
{
|
||||||
return ProcessExecution<TResult>(Client.Execute(Request));
|
return ProcessExecution<TResult>(Client.Execute(Request));
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task<TResult> ExecuteRequestAsync<TResult>()
|
async Task<TResult> ExecuteRequestAsync<TResult>()
|
||||||
where TResult : class
|
where TResult : class
|
||||||
{
|
{
|
||||||
return ProcessExecution<TResult>(await Client.ExecuteTaskAsync(Request));
|
return ProcessExecution<TResult>(await Client.ExecuteTaskAsync(Request));
|
||||||
}
|
}
|
||||||
|
|
||||||
private TResult ProcessExecution<TResult>(IRestResponse response)
|
TResult ProcessExecution<TResult>(IRestResponse response)
|
||||||
where TResult : class
|
where TResult : class
|
||||||
{
|
{
|
||||||
//if the return type is not 200 throw errors
|
//if the return type is not 200 throw errors
|
||||||
@@ -106,7 +101,7 @@ namespace Untappd.Net.Request
|
|||||||
{
|
{
|
||||||
return JsonConvert.DeserializeObject<TResult>(response.Content);
|
return JsonConvert.DeserializeObject<TResult>(response.Content);
|
||||||
}
|
}
|
||||||
catch (System.Exception e)
|
catch(System.Exception e)
|
||||||
{
|
{
|
||||||
var eventThrow = OnExceptionThrown;
|
var eventThrow = OnExceptionThrown;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Untappd.Net.Authentication;
|
using Untappd.Net.Authentication;
|
||||||
|
using Untappd.Net.Exception;
|
||||||
|
|
||||||
namespace Untappd.Net.Request
|
namespace Untappd.Net.Request
|
||||||
{
|
{
|
||||||
@@ -50,7 +51,7 @@ namespace Untappd.Net.Request
|
|||||||
/// <exception cref="HttpErrorException"></exception>
|
/// <exception cref="HttpErrorException"></exception>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public TResult Get<TResult>(IAuthenticatedUntappdCredentials credentials, string urlParameter = "", IDictionary<string, object> bodyParameters = null)
|
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();
|
var result = new TResult();
|
||||||
return ConfigureRequest(credentials, result.EndPoint(urlParameter), bodyParameters)
|
return ConfigureRequest(credentials, result.EndPoint(urlParameter), bodyParameters)
|
||||||
@@ -67,7 +68,7 @@ namespace Untappd.Net.Request
|
|||||||
/// <exception cref="HttpErrorException"></exception>
|
/// <exception cref="HttpErrorException"></exception>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public Task<TResult> GetAsync<TResult>(IAuthenticatedUntappdCredentials credentials, string urlParameter = "", IDictionary<string, object> bodyParameters = null)
|
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();
|
var result = new TResult();
|
||||||
return ConfigureRequest(credentials, result.EndPoint(urlParameter), bodyParameters)
|
return ConfigureRequest(credentials, result.EndPoint(urlParameter), bodyParameters)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System.Threading.Tasks;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Untappd.Net.Authentication;
|
using Untappd.Net.Authentication;
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace Untappd.Net.Request
|
namespace Untappd.Net.Request
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ namespace Untappd.Net.Responses.Actions
|
|||||||
public Method RequestMethod { get { return Method.GET; } }
|
public Method RequestMethod { get { return Method.GET; } }
|
||||||
public string EndPoint { get; private set; }
|
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 AcceptFriend(string target_id)
|
public AcceptFriend(string target_id)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(target_id))
|
if (string.IsNullOrWhiteSpace(target_id))
|
||||||
|
|||||||
@@ -7,10 +7,9 @@ namespace Untappd.Net.Responses.Actions
|
|||||||
{
|
{
|
||||||
public class AddComment : IAction
|
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 string EndPoint { get; private set; }
|
||||||
public IDictionary<string, object> BodyParameters { get; private set; }
|
public IDictionary<string, object> BodyParameters { get; private set; }
|
||||||
|
|
||||||
public AddComment(string checkinId, string shout)
|
public AddComment(string checkinId, string shout)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(checkinId))
|
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");
|
throw new ArgumentOutOfRangeException("shout", shout, "Shout cannot be more than 140 characters");
|
||||||
}
|
}
|
||||||
EndPoint = string.Format("v4/checkin/addcomment/{0}", checkinId);
|
EndPoint = string.Format("v4/checkin/addcomment/{0}", checkinId);
|
||||||
BodyParameters = new Dictionary<string, object> { { shout, shout } };
|
BodyParameters = new Dictionary<string, object> {{shout, shout}};
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -7,10 +7,9 @@ namespace Untappd.Net.Responses.Actions
|
|||||||
{
|
{
|
||||||
public class AddFriend : IAction
|
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 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)
|
public AddFriend(string target_id)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(target_id))
|
if (string.IsNullOrWhiteSpace(target_id))
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ namespace Untappd.Net.Responses.Actions
|
|||||||
{
|
{
|
||||||
public class AddToWishList : IAction
|
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 string EndPoint { get { return "v4/user/wishlist/add"; } }
|
||||||
public IDictionary<string, object> BodyParameters { get; private set; }
|
public IDictionary<string, object> BodyParameters { get; private set; }
|
||||||
|
|
||||||
public AddToWishList(int beerId)
|
public AddToWishList(int beerId)
|
||||||
{
|
{
|
||||||
BodyParameters = new Dictionary<string, object>() { { "bid", beerId } };
|
BodyParameters = new Dictionary<string, object>() { { "bid", beerId } };
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,7 +9,7 @@ namespace Untappd.Net.Responses.Actions
|
|||||||
{
|
{
|
||||||
private short _rating;
|
private short _rating;
|
||||||
private string _shout;
|
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 string EndPoint { get { return "v4/checkin/add"; } }
|
||||||
|
|
||||||
public IDictionary<string, object> BodyParameters
|
public IDictionary<string, object> BodyParameters
|
||||||
@@ -59,7 +59,7 @@ namespace Untappd.Net.Responses.Actions
|
|||||||
}
|
}
|
||||||
if (value.Length > 140)
|
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);
|
_shout = string.Copy(value);
|
||||||
}
|
}
|
||||||
@@ -78,6 +78,7 @@ namespace Untappd.Net.Responses.Actions
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public CheckIn(string gmtOffset, string timezone, int bid)
|
public CheckIn(string gmtOffset, string timezone, int bid)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(gmtOffset))
|
if (string.IsNullOrWhiteSpace(gmtOffset))
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ namespace Untappd.Net.Responses.Actions
|
|||||||
{
|
{
|
||||||
public class PendingFriends : IAction
|
public class PendingFriends : IAction
|
||||||
{
|
{
|
||||||
public Method RequestMethod { get { return Method.GET; } }
|
public Method RequestMethod { get {return Method.GET;} }
|
||||||
public string EndPoint { get { return "v4/user/pending"; } }
|
public string EndPoint { get { return "v4/user/pending"; }}
|
||||||
|
|
||||||
public IDictionary<string, object> BodyParameters
|
public IDictionary<string, object> BodyParameters
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ namespace Untappd.Net.Responses.Actions
|
|||||||
public Method RequestMethod { get { return Method.GET; } }
|
public Method RequestMethod { get { return Method.GET; } }
|
||||||
public string EndPoint { get; private set; }
|
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 RemoveFriend(string target_id)
|
public RemoveFriend(string target_id)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(target_id))
|
if (string.IsNullOrWhiteSpace(target_id))
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ namespace Untappd.Net.Responses.Actions
|
|||||||
{
|
{
|
||||||
public class RemoveFromWishList : IAction
|
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 string EndPoint { get { return "v4/user/wishlist/delete"; } }
|
||||||
public IDictionary<string, object> BodyParameters { get; private set; }
|
public IDictionary<string, object> BodyParameters { get; private set; }
|
||||||
|
|
||||||
public RemoveFromWishList(int beerId)
|
public RemoveFromWishList(int beerId)
|
||||||
{
|
{
|
||||||
BodyParameters = new Dictionary<string, object>() { { "bid", beerId } };
|
BodyParameters = new Dictionary<string, object>() { { "bid", beerId } };
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -10,7 +10,6 @@ namespace Untappd.Net.Responses.Actions
|
|||||||
public Method RequestMethod { get { return Method.POST; } }
|
public Method RequestMethod { get { return Method.POST; } }
|
||||||
public IDictionary<string, object> BodyParameters { get { return new Dictionary<string, object>(); } }
|
public IDictionary<string, object> BodyParameters { get { return new Dictionary<string, object>(); } }
|
||||||
public string EndPoint { get; private set; }
|
public string EndPoint { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -4,8 +4,10 @@ using Untappd.Net.Request;
|
|||||||
|
|
||||||
namespace Untappd.Net.Responses.BeerInfo
|
namespace Untappd.Net.Responses.BeerInfo
|
||||||
{
|
{
|
||||||
|
|
||||||
public class ResponseTime
|
public class ResponseTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class InitTime
|
public class InitTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Meta
|
public class Meta
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
public int Code { get; set; }
|
public int Code { get; set; }
|
||||||
|
|
||||||
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class UnreadCount
|
public class UnreadCount
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("comments")]
|
[JsonProperty("comments")]
|
||||||
public int Comments { get; set; }
|
public int Comments { get; set; }
|
||||||
|
|
||||||
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Notifications
|
public class Notifications
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Stats
|
public class Stats
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("total_count")]
|
[JsonProperty("total_count")]
|
||||||
public int TotalCount { get; set; }
|
public int TotalCount { get; set; }
|
||||||
|
|
||||||
@@ -78,6 +85,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Contact
|
public class Contact
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -90,6 +98,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Location
|
public class Location
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -105,6 +114,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Brewery
|
public class Brewery
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -127,6 +137,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Photo
|
public class Photo
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_img_sm")]
|
[JsonProperty("photo_img_sm")]
|
||||||
public string PhotoImgSm { get; set; }
|
public string PhotoImgSm { get; set; }
|
||||||
|
|
||||||
@@ -142,6 +153,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Beer2
|
public class Beer2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -184,6 +196,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Contact2
|
public class Contact2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -196,6 +209,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Location2
|
public class Location2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -211,6 +225,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Brewery2
|
public class Brewery2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -239,6 +254,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class User
|
public class User
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -263,6 +279,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Item
|
public class Item
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_id")]
|
[JsonProperty("photo_id")]
|
||||||
public int PhotoId { get; set; }
|
public int PhotoId { get; set; }
|
||||||
|
|
||||||
@@ -290,6 +307,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Media
|
public class Media
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -299,6 +317,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class User2
|
public class User2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -339,6 +358,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Beer3
|
public class Beer3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -381,6 +401,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Contact3
|
public class Contact3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -393,6 +414,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Location3
|
public class Location3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -408,6 +430,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Brewery3
|
public class Brewery3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -436,6 +459,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Comments
|
public class Comments
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("total_count")]
|
[JsonProperty("total_count")]
|
||||||
public int TotalCount { get; set; }
|
public int TotalCount { get; set; }
|
||||||
|
|
||||||
@@ -448,6 +472,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class User3
|
public class User3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -481,6 +506,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Item3
|
public class Item3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -499,6 +525,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Toasts
|
public class Toasts
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("total_count")]
|
[JsonProperty("total_count")]
|
||||||
public int TotalCount { get; set; }
|
public int TotalCount { get; set; }
|
||||||
|
|
||||||
@@ -514,6 +541,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Photo2
|
public class Photo2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_img_sm")]
|
[JsonProperty("photo_img_sm")]
|
||||||
public string PhotoImgSm { get; set; }
|
public string PhotoImgSm { get; set; }
|
||||||
|
|
||||||
@@ -529,6 +557,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Item4
|
public class Item4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_id")]
|
[JsonProperty("photo_id")]
|
||||||
public int PhotoId { get; set; }
|
public int PhotoId { get; set; }
|
||||||
|
|
||||||
@@ -538,6 +567,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Media2
|
public class Media2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -547,6 +577,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Source
|
public class Source
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("app_name")]
|
[JsonProperty("app_name")]
|
||||||
public string AppName { get; set; }
|
public string AppName { get; set; }
|
||||||
|
|
||||||
@@ -556,6 +587,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class BadgeImage
|
public class BadgeImage
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("sm")]
|
[JsonProperty("sm")]
|
||||||
public string Sm { get; set; }
|
public string Sm { get; set; }
|
||||||
|
|
||||||
@@ -568,6 +600,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Item5
|
public class Item5
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("badge_id")]
|
[JsonProperty("badge_id")]
|
||||||
public int BadgeId { get; set; }
|
public int BadgeId { get; set; }
|
||||||
|
|
||||||
@@ -589,6 +622,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Badges
|
public class Badges
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -598,6 +632,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Item2
|
public class Item2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("checkin_id")]
|
[JsonProperty("checkin_id")]
|
||||||
public int CheckinId { get; set; }
|
public int CheckinId { get; set; }
|
||||||
|
|
||||||
@@ -640,6 +675,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Checkins
|
public class Checkins
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -649,6 +685,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Beer4
|
public class Beer4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -676,6 +713,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Contact4
|
public class Contact4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -691,6 +729,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Location4
|
public class Location4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -706,6 +745,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Brewery4
|
public class Brewery4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -734,6 +774,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Friends
|
public class Friends
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("items")]
|
[JsonProperty("items")]
|
||||||
public IList<object> Items { get; set; }
|
public IList<object> Items { get; set; }
|
||||||
|
|
||||||
@@ -743,6 +784,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Item6
|
public class Item6
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("rating_score")]
|
[JsonProperty("rating_score")]
|
||||||
public double RatingScore { get; set; }
|
public double RatingScore { get; set; }
|
||||||
|
|
||||||
@@ -758,6 +800,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Similar
|
public class Similar
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -767,6 +810,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Friends2
|
public class Friends2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -776,6 +820,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Beer5
|
public class Beer5
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -797,12 +842,14 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Item7
|
public class Item7
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("beer")]
|
[JsonProperty("beer")]
|
||||||
public Beer5 Beer { get; set; }
|
public Beer5 Beer { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Vintages
|
public class Vintages
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -812,6 +859,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Beer
|
public class Beer
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -882,6 +930,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
|||||||
|
|
||||||
public class Response
|
public class Response
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("beer")]
|
[JsonProperty("beer")]
|
||||||
public Beer Beer { get; set; }
|
public Beer Beer { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,10 @@ using Untappd.Net.Request;
|
|||||||
|
|
||||||
namespace Untappd.Net.Responses.BeerSearch
|
namespace Untappd.Net.Responses.BeerSearch
|
||||||
{
|
{
|
||||||
|
|
||||||
public class ResponseTime
|
public class ResponseTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.BeerSearch
|
|||||||
|
|
||||||
public class InitTime
|
public class InitTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.BeerSearch
|
|||||||
|
|
||||||
public class Meta
|
public class Meta
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
public int Code { get; set; }
|
public int Code { get; set; }
|
||||||
|
|
||||||
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.BeerSearch
|
|||||||
|
|
||||||
public class UnreadCount
|
public class UnreadCount
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("comments")]
|
[JsonProperty("comments")]
|
||||||
public int Comments { get; set; }
|
public int Comments { get; set; }
|
||||||
|
|
||||||
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.BeerSearch
|
|||||||
|
|
||||||
public class Notifications
|
public class Notifications
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.BeerSearch
|
|||||||
|
|
||||||
public class Beer
|
public class Beer
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -99,6 +106,7 @@ namespace Untappd.Net.Responses.BeerSearch
|
|||||||
|
|
||||||
public class Contact
|
public class Contact
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -114,6 +122,7 @@ namespace Untappd.Net.Responses.BeerSearch
|
|||||||
|
|
||||||
public class Location
|
public class Location
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -129,6 +138,7 @@ namespace Untappd.Net.Responses.BeerSearch
|
|||||||
|
|
||||||
public class Brewery
|
public class Brewery
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -156,6 +166,7 @@ namespace Untappd.Net.Responses.BeerSearch
|
|||||||
|
|
||||||
public class Item
|
public class Item
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("checkin_count")]
|
[JsonProperty("checkin_count")]
|
||||||
public int CheckinCount { get; set; }
|
public int CheckinCount { get; set; }
|
||||||
|
|
||||||
@@ -174,6 +185,7 @@ namespace Untappd.Net.Responses.BeerSearch
|
|||||||
|
|
||||||
public class Beers
|
public class Beers
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -183,6 +195,7 @@ namespace Untappd.Net.Responses.BeerSearch
|
|||||||
|
|
||||||
public class Homebrew
|
public class Homebrew
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -192,6 +205,7 @@ namespace Untappd.Net.Responses.BeerSearch
|
|||||||
|
|
||||||
public class Breweries
|
public class Breweries
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("items")]
|
[JsonProperty("items")]
|
||||||
public IList<object> Items { get; set; }
|
public IList<object> Items { get; set; }
|
||||||
|
|
||||||
@@ -201,6 +215,7 @@ namespace Untappd.Net.Responses.BeerSearch
|
|||||||
|
|
||||||
public class Response
|
public class Response
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("message")]
|
[JsonProperty("message")]
|
||||||
public string Message { get; set; }
|
public string Message { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,10 @@ using Untappd.Net.Request;
|
|||||||
|
|
||||||
namespace Untappd.Net.Responses.BreweryInfo
|
namespace Untappd.Net.Responses.BreweryInfo
|
||||||
{
|
{
|
||||||
|
|
||||||
public class ResponseTime
|
public class ResponseTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class InitTime
|
public class InitTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Meta
|
public class Meta
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
public int Code { get; set; }
|
public int Code { get; set; }
|
||||||
|
|
||||||
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class UnreadCount
|
public class UnreadCount
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("comments")]
|
[JsonProperty("comments")]
|
||||||
public int Comments { get; set; }
|
public int Comments { get; set; }
|
||||||
|
|
||||||
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Notifications
|
public class Notifications
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class ClaimedStatus
|
public class ClaimedStatus
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("is_claimed")]
|
[JsonProperty("is_claimed")]
|
||||||
public bool IsClaimed { get; set; }
|
public bool IsClaimed { get; set; }
|
||||||
|
|
||||||
@@ -84,6 +91,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Contact
|
public class Contact
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -99,6 +107,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Location
|
public class Location
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_address")]
|
[JsonProperty("brewery_address")]
|
||||||
public string BreweryAddress { get; set; }
|
public string BreweryAddress { get; set; }
|
||||||
|
|
||||||
@@ -117,6 +126,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Rating
|
public class Rating
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -126,6 +136,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Stats
|
public class Stats
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("total_count")]
|
[JsonProperty("total_count")]
|
||||||
public int TotalCount { get; set; }
|
public int TotalCount { get; set; }
|
||||||
|
|
||||||
@@ -147,6 +158,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Owners
|
public class Owners
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -156,6 +168,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Photo
|
public class Photo
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_img_sm")]
|
[JsonProperty("photo_img_sm")]
|
||||||
public string PhotoImgSm { get; set; }
|
public string PhotoImgSm { get; set; }
|
||||||
|
|
||||||
@@ -171,6 +184,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Beer
|
public class Beer
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -195,6 +209,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Contact2
|
public class Contact2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -210,6 +225,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Location2
|
public class Location2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -225,6 +241,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Brewery2
|
public class Brewery2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -252,6 +269,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class User
|
public class User
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -276,6 +294,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Item
|
public class Item
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_id")]
|
[JsonProperty("photo_id")]
|
||||||
public int PhotoId { get; set; }
|
public int PhotoId { get; set; }
|
||||||
|
|
||||||
@@ -303,6 +322,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Media
|
public class Media
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -312,6 +332,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class User2
|
public class User2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -351,6 +372,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Beer2
|
public class Beer2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -378,6 +400,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Contact3
|
public class Contact3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -393,6 +416,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Location3
|
public class Location3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -408,6 +432,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Brewery3
|
public class Brewery3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -435,6 +460,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Comments
|
public class Comments
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("total_count")]
|
[JsonProperty("total_count")]
|
||||||
public int TotalCount { get; set; }
|
public int TotalCount { get; set; }
|
||||||
|
|
||||||
@@ -447,6 +473,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class User3
|
public class User3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -480,6 +507,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Item3
|
public class Item3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -498,6 +526,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Toasts
|
public class Toasts
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("total_count")]
|
[JsonProperty("total_count")]
|
||||||
public int TotalCount { get; set; }
|
public int TotalCount { get; set; }
|
||||||
|
|
||||||
@@ -513,6 +542,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Photo2
|
public class Photo2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_img_sm")]
|
[JsonProperty("photo_img_sm")]
|
||||||
public string PhotoImgSm { get; set; }
|
public string PhotoImgSm { get; set; }
|
||||||
|
|
||||||
@@ -528,6 +558,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Item4
|
public class Item4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_id")]
|
[JsonProperty("photo_id")]
|
||||||
public int PhotoId { get; set; }
|
public int PhotoId { get; set; }
|
||||||
|
|
||||||
@@ -537,6 +568,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Media2
|
public class Media2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -546,6 +578,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Source
|
public class Source
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("app_name")]
|
[JsonProperty("app_name")]
|
||||||
public string AppName { get; set; }
|
public string AppName { get; set; }
|
||||||
|
|
||||||
@@ -555,6 +588,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class BadgeImage
|
public class BadgeImage
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("sm")]
|
[JsonProperty("sm")]
|
||||||
public string Sm { get; set; }
|
public string Sm { get; set; }
|
||||||
|
|
||||||
@@ -567,6 +601,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Item5
|
public class Item5
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("badge_id")]
|
[JsonProperty("badge_id")]
|
||||||
public int BadgeId { get; set; }
|
public int BadgeId { get; set; }
|
||||||
|
|
||||||
@@ -588,6 +623,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Badges
|
public class Badges
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -597,6 +633,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Item2
|
public class Item2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("checkin_id")]
|
[JsonProperty("checkin_id")]
|
||||||
public int CheckinId { get; set; }
|
public int CheckinId { get; set; }
|
||||||
|
|
||||||
@@ -639,6 +676,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Checkins
|
public class Checkins
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("mem")]
|
[JsonProperty("mem")]
|
||||||
public bool Mem { get; set; }
|
public bool Mem { get; set; }
|
||||||
|
|
||||||
@@ -651,6 +689,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Beer3
|
public class Beer3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -696,6 +735,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Contact4
|
public class Contact4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -711,6 +751,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Location4
|
public class Location4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -726,6 +767,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Brewery4
|
public class Brewery4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -753,6 +795,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Item6
|
public class Item6
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("has_had")]
|
[JsonProperty("has_had")]
|
||||||
public bool HasHad { get; set; }
|
public bool HasHad { get; set; }
|
||||||
|
|
||||||
@@ -771,6 +814,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class BeerList
|
public class BeerList
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("is_super")]
|
[JsonProperty("is_super")]
|
||||||
public bool IsSuper { get; set; }
|
public bool IsSuper { get; set; }
|
||||||
|
|
||||||
@@ -792,6 +836,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Brewery
|
public class Brewery
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -856,6 +901,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
|||||||
|
|
||||||
public class Response
|
public class Response
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery")]
|
[JsonProperty("brewery")]
|
||||||
public Brewery Brewery { get; set; }
|
public Brewery Brewery { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,10 @@ using Untappd.Net.Request;
|
|||||||
|
|
||||||
namespace Untappd.Net.Responses.BrewerySearch
|
namespace Untappd.Net.Responses.BrewerySearch
|
||||||
{
|
{
|
||||||
|
|
||||||
public class ResponseTime
|
public class ResponseTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.BrewerySearch
|
|||||||
|
|
||||||
public class InitTime
|
public class InitTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.BrewerySearch
|
|||||||
|
|
||||||
public class Meta
|
public class Meta
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
public int Code { get; set; }
|
public int Code { get; set; }
|
||||||
|
|
||||||
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.BrewerySearch
|
|||||||
|
|
||||||
public class UnreadCount
|
public class UnreadCount
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("comments")]
|
[JsonProperty("comments")]
|
||||||
public int Comments { get; set; }
|
public int Comments { get; set; }
|
||||||
|
|
||||||
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.BrewerySearch
|
|||||||
|
|
||||||
public class Notifications
|
public class Notifications
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.BrewerySearch
|
|||||||
|
|
||||||
public class Location
|
public class Location
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -78,6 +85,7 @@ namespace Untappd.Net.Responses.BrewerySearch
|
|||||||
|
|
||||||
public class Brewery2
|
public class Brewery2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -99,12 +107,14 @@ namespace Untappd.Net.Responses.BrewerySearch
|
|||||||
|
|
||||||
public class Item
|
public class Item
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery")]
|
[JsonProperty("brewery")]
|
||||||
public Brewery2 Brewery { get; set; }
|
public Brewery2 Brewery { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Brewery
|
public class Brewery
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -114,6 +124,7 @@ namespace Untappd.Net.Responses.BrewerySearch
|
|||||||
|
|
||||||
public class Response
|
public class Response
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("search_type")]
|
[JsonProperty("search_type")]
|
||||||
public string SearchType { get; set; }
|
public string SearchType { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
{
|
{
|
||||||
public class ResponseTime
|
public class ResponseTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -15,6 +16,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class InitTime
|
public class InitTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -24,6 +26,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Meta
|
public class Meta
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
public int Code { get; set; }
|
public int Code { get; set; }
|
||||||
|
|
||||||
@@ -36,6 +39,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class UnreadCount
|
public class UnreadCount
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("comments")]
|
[JsonProperty("comments")]
|
||||||
public int Comments { get; set; }
|
public int Comments { get; set; }
|
||||||
|
|
||||||
@@ -54,6 +58,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Notifications
|
public class Notifications
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
@@ -63,6 +68,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class User
|
public class User
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -96,6 +102,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Beer
|
public class Beer
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -123,6 +130,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Contact
|
public class Contact
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -138,6 +146,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Location
|
public class Location
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -153,6 +162,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Brewery
|
public class Brewery
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -180,6 +190,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class User2
|
public class User2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -219,6 +230,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Item2
|
public class Item2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("user")]
|
[JsonProperty("user")]
|
||||||
public User2 User { get; set; }
|
public User2 User { get; set; }
|
||||||
|
|
||||||
@@ -246,6 +258,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Comments
|
public class Comments
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("total_count")]
|
[JsonProperty("total_count")]
|
||||||
public int TotalCount { get; set; }
|
public int TotalCount { get; set; }
|
||||||
|
|
||||||
@@ -258,6 +271,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class User3
|
public class User3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -291,6 +305,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Item3
|
public class Item3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -309,6 +324,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Toasts
|
public class Toasts
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("total_count")]
|
[JsonProperty("total_count")]
|
||||||
public int TotalCount { get; set; }
|
public int TotalCount { get; set; }
|
||||||
|
|
||||||
@@ -324,6 +340,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Photo
|
public class Photo
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_img_sm")]
|
[JsonProperty("photo_img_sm")]
|
||||||
public string PhotoImgSm { get; set; }
|
public string PhotoImgSm { get; set; }
|
||||||
|
|
||||||
@@ -339,6 +356,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Item4
|
public class Item4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_id")]
|
[JsonProperty("photo_id")]
|
||||||
public int PhotoId { get; set; }
|
public int PhotoId { get; set; }
|
||||||
|
|
||||||
@@ -348,6 +366,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Media
|
public class Media
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -357,6 +376,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Source
|
public class Source
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("app_name")]
|
[JsonProperty("app_name")]
|
||||||
public string AppName { get; set; }
|
public string AppName { get; set; }
|
||||||
|
|
||||||
@@ -366,6 +386,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class BadgeImage
|
public class BadgeImage
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("sm")]
|
[JsonProperty("sm")]
|
||||||
public string Sm { get; set; }
|
public string Sm { get; set; }
|
||||||
|
|
||||||
@@ -378,6 +399,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Item5
|
public class Item5
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("badge_id")]
|
[JsonProperty("badge_id")]
|
||||||
public int BadgeId { get; set; }
|
public int BadgeId { get; set; }
|
||||||
|
|
||||||
@@ -399,6 +421,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Badges
|
public class Badges
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -408,6 +431,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Item
|
public class Item
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("checkin_id")]
|
[JsonProperty("checkin_id")]
|
||||||
public int CheckinId { get; set; }
|
public int CheckinId { get; set; }
|
||||||
|
|
||||||
@@ -450,6 +474,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Checkins
|
public class Checkins
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -459,6 +484,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Pagination
|
public class Pagination
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("next_url")]
|
[JsonProperty("next_url")]
|
||||||
public string NextUrl { get; set; }
|
public string NextUrl { get; set; }
|
||||||
|
|
||||||
@@ -471,6 +497,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
|||||||
|
|
||||||
public class Response
|
public class Response
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("mg")]
|
[JsonProperty("mg")]
|
||||||
public bool Mg { get; set; }
|
public bool Mg { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
{
|
{
|
||||||
public class ResponseTime
|
public class ResponseTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -15,6 +16,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class InitTime
|
public class InitTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -24,6 +26,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Meta
|
public class Meta
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
public int Code { get; set; }
|
public int Code { get; set; }
|
||||||
|
|
||||||
@@ -36,6 +39,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class UnreadCount
|
public class UnreadCount
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("comments")]
|
[JsonProperty("comments")]
|
||||||
public int Comments { get; set; }
|
public int Comments { get; set; }
|
||||||
|
|
||||||
@@ -54,6 +58,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Notifications
|
public class Notifications
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
@@ -63,6 +68,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Pagination
|
public class Pagination
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("since_url")]
|
[JsonProperty("since_url")]
|
||||||
public string SinceUrl { get; set; }
|
public string SinceUrl { get; set; }
|
||||||
|
|
||||||
@@ -75,12 +81,14 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Contact
|
public class Contact
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("facebook")]
|
[JsonProperty("facebook")]
|
||||||
public string Facebook { get; set; }
|
public string Facebook { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class User
|
public class User
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -120,6 +128,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Beer
|
public class Beer
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -147,6 +156,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Contact2
|
public class Contact2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -162,6 +172,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Location
|
public class Location
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -177,6 +188,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Brewery
|
public class Brewery
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -204,6 +216,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Item2
|
public class Item2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("category_name")]
|
[JsonProperty("category_name")]
|
||||||
public string CategoryName { get; set; }
|
public string CategoryName { get; set; }
|
||||||
|
|
||||||
@@ -216,6 +229,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Categories
|
public class Categories
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -225,6 +239,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Location2
|
public class Location2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("venue_address")]
|
[JsonProperty("venue_address")]
|
||||||
public string VenueAddress { get; set; }
|
public string VenueAddress { get; set; }
|
||||||
|
|
||||||
@@ -246,6 +261,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Contact3
|
public class Contact3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -255,6 +271,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Foursquare
|
public class Foursquare
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("foursquare_id")]
|
[JsonProperty("foursquare_id")]
|
||||||
public string FoursquareId { get; set; }
|
public string FoursquareId { get; set; }
|
||||||
|
|
||||||
@@ -264,6 +281,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class VenueIcon
|
public class VenueIcon
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("sm")]
|
[JsonProperty("sm")]
|
||||||
public string Sm { get; set; }
|
public string Sm { get; set; }
|
||||||
|
|
||||||
@@ -276,6 +294,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Venue
|
public class Venue
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("venue_id")]
|
[JsonProperty("venue_id")]
|
||||||
public int VenueId { get; set; }
|
public int VenueId { get; set; }
|
||||||
|
|
||||||
@@ -309,6 +328,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Comments
|
public class Comments
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("total_count")]
|
[JsonProperty("total_count")]
|
||||||
public int TotalCount { get; set; }
|
public int TotalCount { get; set; }
|
||||||
|
|
||||||
@@ -321,6 +341,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Toasts
|
public class Toasts
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("total_count")]
|
[JsonProperty("total_count")]
|
||||||
public int TotalCount { get; set; }
|
public int TotalCount { get; set; }
|
||||||
|
|
||||||
@@ -336,6 +357,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Photo
|
public class Photo
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_img_sm")]
|
[JsonProperty("photo_img_sm")]
|
||||||
public string PhotoImgSm { get; set; }
|
public string PhotoImgSm { get; set; }
|
||||||
|
|
||||||
@@ -351,6 +373,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Item3
|
public class Item3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_id")]
|
[JsonProperty("photo_id")]
|
||||||
public int PhotoId { get; set; }
|
public int PhotoId { get; set; }
|
||||||
|
|
||||||
@@ -360,6 +383,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Media
|
public class Media
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -369,6 +393,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Source
|
public class Source
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("app_name")]
|
[JsonProperty("app_name")]
|
||||||
public string AppName { get; set; }
|
public string AppName { get; set; }
|
||||||
|
|
||||||
@@ -378,6 +403,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Badges
|
public class Badges
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -387,6 +413,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Item
|
public class Item
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("checkin_id")]
|
[JsonProperty("checkin_id")]
|
||||||
public int CheckinId { get; set; }
|
public int CheckinId { get; set; }
|
||||||
|
|
||||||
@@ -430,6 +457,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Checkins
|
public class Checkins
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -439,6 +467,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
|||||||
|
|
||||||
public class Response
|
public class Response
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("pagination")]
|
[JsonProperty("pagination")]
|
||||||
public Pagination Pagination { get; set; }
|
public Pagination Pagination { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,10 @@ using Untappd.Net.Request;
|
|||||||
|
|
||||||
namespace Untappd.Net.Responses.UserBadges
|
namespace Untappd.Net.Responses.UserBadges
|
||||||
{
|
{
|
||||||
|
|
||||||
public class ResponseTime
|
public class ResponseTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.UserBadges
|
|||||||
|
|
||||||
public class InitTime
|
public class InitTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.UserBadges
|
|||||||
|
|
||||||
public class Meta
|
public class Meta
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
public int Code { get; set; }
|
public int Code { get; set; }
|
||||||
|
|
||||||
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.UserBadges
|
|||||||
|
|
||||||
public class UnreadCount
|
public class UnreadCount
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("comments")]
|
[JsonProperty("comments")]
|
||||||
public int Comments { get; set; }
|
public int Comments { get; set; }
|
||||||
|
|
||||||
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.UserBadges
|
|||||||
|
|
||||||
public class Notifications
|
public class Notifications
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.UserBadges
|
|||||||
|
|
||||||
public class Media
|
public class Media
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("badge_image_sm")]
|
[JsonProperty("badge_image_sm")]
|
||||||
public string BadgeImageSm { get; set; }
|
public string BadgeImageSm { get; set; }
|
||||||
|
|
||||||
@@ -75,6 +82,7 @@ namespace Untappd.Net.Responses.UserBadges
|
|||||||
|
|
||||||
public class BadgePackProgress
|
public class BadgePackProgress
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("completed")]
|
[JsonProperty("completed")]
|
||||||
public int Completed { get; set; }
|
public int Completed { get; set; }
|
||||||
|
|
||||||
@@ -123,6 +131,7 @@ namespace Untappd.Net.Responses.UserBadges
|
|||||||
|
|
||||||
public class Item
|
public class Item
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("user_badge_id")]
|
[JsonProperty("user_badge_id")]
|
||||||
public int UserBadgeId { get; set; }
|
public int UserBadgeId { get; set; }
|
||||||
|
|
||||||
@@ -183,6 +192,7 @@ namespace Untappd.Net.Responses.UserBadges
|
|||||||
|
|
||||||
public class Response
|
public class Response
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,10 @@ using Untappd.Net.Request;
|
|||||||
|
|
||||||
namespace Untappd.Net.Responses.UserDistinctBeer
|
namespace Untappd.Net.Responses.UserDistinctBeer
|
||||||
{
|
{
|
||||||
|
|
||||||
public sealed class ResponseTime
|
public sealed class ResponseTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.UserDistinctBeer
|
|||||||
|
|
||||||
public class InitTime
|
public class InitTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.UserDistinctBeer
|
|||||||
|
|
||||||
public class Meta
|
public class Meta
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
public int Code { get; set; }
|
public int Code { get; set; }
|
||||||
|
|
||||||
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.UserDistinctBeer
|
|||||||
|
|
||||||
public class Beer
|
public class Beer
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -78,6 +83,7 @@ namespace Untappd.Net.Responses.UserDistinctBeer
|
|||||||
|
|
||||||
public class Contact
|
public class Contact
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -93,6 +99,7 @@ namespace Untappd.Net.Responses.UserDistinctBeer
|
|||||||
|
|
||||||
public class Location
|
public class Location
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -108,6 +115,7 @@ namespace Untappd.Net.Responses.UserDistinctBeer
|
|||||||
|
|
||||||
public class Brewery
|
public class Brewery
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -135,6 +143,7 @@ namespace Untappd.Net.Responses.UserDistinctBeer
|
|||||||
|
|
||||||
public class Item
|
public class Item
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("first_checkin_id")]
|
[JsonProperty("first_checkin_id")]
|
||||||
public int FirstCheckinId { get; set; }
|
public int FirstCheckinId { get; set; }
|
||||||
|
|
||||||
@@ -168,6 +177,7 @@ namespace Untappd.Net.Responses.UserDistinctBeer
|
|||||||
|
|
||||||
public class Beers
|
public class Beers
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("sort")]
|
[JsonProperty("sort")]
|
||||||
public string Sort { get; set; }
|
public string Sort { get; set; }
|
||||||
|
|
||||||
@@ -185,16 +195,12 @@ namespace Untappd.Net.Responses.UserDistinctBeer
|
|||||||
{
|
{
|
||||||
[JsonProperty("comments")]
|
[JsonProperty("comments")]
|
||||||
public int Comments { get; set; }
|
public int Comments { get; set; }
|
||||||
|
|
||||||
[JsonProperty("toasts")]
|
[JsonProperty("toasts")]
|
||||||
public int Toasts { get; set; }
|
public int Toasts { get; set; }
|
||||||
|
|
||||||
[JsonProperty("friends")]
|
[JsonProperty("friends")]
|
||||||
public int Friends { get; set; }
|
public int Friends { get; set; }
|
||||||
|
|
||||||
[JsonProperty("messages")]
|
[JsonProperty("messages")]
|
||||||
public int Messages { get; set; }
|
public int Messages { get; set; }
|
||||||
|
|
||||||
[JsonProperty("news")]
|
[JsonProperty("news")]
|
||||||
public int news { get; set; }
|
public int news { get; set; }
|
||||||
}
|
}
|
||||||
@@ -203,13 +209,13 @@ namespace Untappd.Net.Responses.UserDistinctBeer
|
|||||||
{
|
{
|
||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
[JsonProperty("unread_count")]
|
[JsonProperty("unread_count")]
|
||||||
public UnreadCount UnreadCount { get; set; }
|
public UnreadCount UnreadCount { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Response
|
public class Response
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("is_search")]
|
[JsonProperty("is_search")]
|
||||||
public bool IsSearch { get; set; }
|
public bool IsSearch { get; set; }
|
||||||
|
|
||||||
@@ -231,4 +237,5 @@ namespace Untappd.Net.Responses.UserDistinctBeer
|
|||||||
[JsonProperty("response")]
|
[JsonProperty("response")]
|
||||||
public Response Response { get; set; }
|
public Response Response { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -4,8 +4,10 @@ using Untappd.Net.Request;
|
|||||||
|
|
||||||
namespace Untappd.Net.Responses.UserFriends
|
namespace Untappd.Net.Responses.UserFriends
|
||||||
{
|
{
|
||||||
|
|
||||||
public class ResponseTime
|
public class ResponseTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.UserFriends
|
|||||||
|
|
||||||
public class InitTime
|
public class InitTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.UserFriends
|
|||||||
|
|
||||||
public class Meta
|
public class Meta
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
public int Code { get; set; }
|
public int Code { get; set; }
|
||||||
|
|
||||||
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.UserFriends
|
|||||||
|
|
||||||
public class UnreadCount
|
public class UnreadCount
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("comments")]
|
[JsonProperty("comments")]
|
||||||
public int Comments { get; set; }
|
public int Comments { get; set; }
|
||||||
|
|
||||||
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.UserFriends
|
|||||||
|
|
||||||
public class Notifications
|
public class Notifications
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.UserFriends
|
|||||||
|
|
||||||
public class User
|
public class User
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -93,6 +100,7 @@ namespace Untappd.Net.Responses.UserFriends
|
|||||||
|
|
||||||
public class MutualFriends
|
public class MutualFriends
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -102,6 +110,7 @@ namespace Untappd.Net.Responses.UserFriends
|
|||||||
|
|
||||||
public class Item
|
public class Item
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("friendship_hash")]
|
[JsonProperty("friendship_hash")]
|
||||||
public string FriendshipHash { get; set; }
|
public string FriendshipHash { get; set; }
|
||||||
|
|
||||||
@@ -117,6 +126,7 @@ namespace Untappd.Net.Responses.UserFriends
|
|||||||
|
|
||||||
public class Response
|
public class Response
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,10 @@ using Untappd.Net.Request;
|
|||||||
|
|
||||||
namespace Untappd.Net.Responses.UserInfo
|
namespace Untappd.Net.Responses.UserInfo
|
||||||
{
|
{
|
||||||
|
|
||||||
public class ResponseTime
|
public class ResponseTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class InitTime
|
public class InitTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Meta
|
public class Meta
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
public int Code { get; set; }
|
public int Code { get; set; }
|
||||||
|
|
||||||
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class UnreadCount
|
public class UnreadCount
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("comments")]
|
[JsonProperty("comments")]
|
||||||
public int Comments { get; set; }
|
public int Comments { get; set; }
|
||||||
|
|
||||||
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Notifications
|
public class Notifications
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Stats
|
public class Stats
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("total_badges")]
|
[JsonProperty("total_badges")]
|
||||||
public int TotalBadges { get; set; }
|
public int TotalBadges { get; set; }
|
||||||
|
|
||||||
@@ -87,6 +94,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Beer
|
public class Beer
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -114,6 +122,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Contact
|
public class Contact
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -129,6 +138,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Location
|
public class Location
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -144,6 +154,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Brewery
|
public class Brewery
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -171,6 +182,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Item
|
public class Item
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("beer")]
|
[JsonProperty("beer")]
|
||||||
public Beer Beer { get; set; }
|
public Beer Beer { get; set; }
|
||||||
|
|
||||||
@@ -180,6 +192,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class RecentBrews
|
public class RecentBrews
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -189,6 +202,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Contact2
|
public class Contact2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("facebook")]
|
[JsonProperty("facebook")]
|
||||||
public string Facebook { get; set; }
|
public string Facebook { get; set; }
|
||||||
|
|
||||||
@@ -198,6 +212,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class User2
|
public class User2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -237,6 +252,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Beer2
|
public class Beer2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -264,6 +280,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Contact3
|
public class Contact3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -279,6 +296,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Location2
|
public class Location2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -294,6 +312,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Brewery2
|
public class Brewery2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -321,6 +340,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Item3
|
public class Item3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("category_name")]
|
[JsonProperty("category_name")]
|
||||||
public string CategoryName { get; set; }
|
public string CategoryName { get; set; }
|
||||||
|
|
||||||
@@ -333,6 +353,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Categories
|
public class Categories
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -342,6 +363,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Location3
|
public class Location3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("venue_address")]
|
[JsonProperty("venue_address")]
|
||||||
public string VenueAddress { get; set; }
|
public string VenueAddress { get; set; }
|
||||||
|
|
||||||
@@ -363,6 +385,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Contact4
|
public class Contact4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -372,6 +395,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Foursquare
|
public class Foursquare
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("foursquare_id")]
|
[JsonProperty("foursquare_id")]
|
||||||
public string FoursquareId { get; set; }
|
public string FoursquareId { get; set; }
|
||||||
|
|
||||||
@@ -381,6 +405,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class VenueIcon
|
public class VenueIcon
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("sm")]
|
[JsonProperty("sm")]
|
||||||
public string Sm { get; set; }
|
public string Sm { get; set; }
|
||||||
|
|
||||||
@@ -393,6 +418,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Venue
|
public class Venue
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("venue_id")]
|
[JsonProperty("venue_id")]
|
||||||
public int VenueId { get; set; }
|
public int VenueId { get; set; }
|
||||||
|
|
||||||
@@ -426,6 +452,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Comments
|
public class Comments
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("total_count")]
|
[JsonProperty("total_count")]
|
||||||
public int TotalCount { get; set; }
|
public int TotalCount { get; set; }
|
||||||
|
|
||||||
@@ -438,6 +465,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class User3
|
public class User3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -471,6 +499,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Item4
|
public class Item4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -489,6 +518,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Toasts
|
public class Toasts
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("total_count")]
|
[JsonProperty("total_count")]
|
||||||
public int TotalCount { get; set; }
|
public int TotalCount { get; set; }
|
||||||
|
|
||||||
@@ -504,6 +534,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Photo
|
public class Photo
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_img_sm")]
|
[JsonProperty("photo_img_sm")]
|
||||||
public string PhotoImgSm { get; set; }
|
public string PhotoImgSm { get; set; }
|
||||||
|
|
||||||
@@ -519,6 +550,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Item5
|
public class Item5
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_id")]
|
[JsonProperty("photo_id")]
|
||||||
public int PhotoId { get; set; }
|
public int PhotoId { get; set; }
|
||||||
|
|
||||||
@@ -528,6 +560,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Media
|
public class Media
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -537,6 +570,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Source
|
public class Source
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("app_name")]
|
[JsonProperty("app_name")]
|
||||||
public string AppName { get; set; }
|
public string AppName { get; set; }
|
||||||
|
|
||||||
@@ -546,6 +580,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class BadgeImage
|
public class BadgeImage
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("sm")]
|
[JsonProperty("sm")]
|
||||||
public string Sm { get; set; }
|
public string Sm { get; set; }
|
||||||
|
|
||||||
@@ -558,6 +593,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Item6
|
public class Item6
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("badge_id")]
|
[JsonProperty("badge_id")]
|
||||||
public int BadgeId { get; set; }
|
public int BadgeId { get; set; }
|
||||||
|
|
||||||
@@ -579,6 +615,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Badges
|
public class Badges
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -588,6 +625,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Item2
|
public class Item2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("checkin_id")]
|
[JsonProperty("checkin_id")]
|
||||||
public int CheckinId { get; set; }
|
public int CheckinId { get; set; }
|
||||||
|
|
||||||
@@ -631,6 +669,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Checkins
|
public class Checkins
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -640,6 +679,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Photo2
|
public class Photo2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_img_sm")]
|
[JsonProperty("photo_img_sm")]
|
||||||
public string PhotoImgSm { get; set; }
|
public string PhotoImgSm { get; set; }
|
||||||
|
|
||||||
@@ -655,6 +695,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class User4
|
public class User4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -685,6 +726,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Beer3
|
public class Beer3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -712,6 +754,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Contact5
|
public class Contact5
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -727,6 +770,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Location4
|
public class Location4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -742,6 +786,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Brewery3
|
public class Brewery3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -769,6 +814,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Item8
|
public class Item8
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("category_name")]
|
[JsonProperty("category_name")]
|
||||||
public string CategoryName { get; set; }
|
public string CategoryName { get; set; }
|
||||||
|
|
||||||
@@ -781,6 +827,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Categories2
|
public class Categories2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -790,6 +837,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Location5
|
public class Location5
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("venue_address")]
|
[JsonProperty("venue_address")]
|
||||||
public string VenueAddress { get; set; }
|
public string VenueAddress { get; set; }
|
||||||
|
|
||||||
@@ -811,6 +859,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Contact6
|
public class Contact6
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -820,6 +869,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Foursquare2
|
public class Foursquare2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("foursquare_id")]
|
[JsonProperty("foursquare_id")]
|
||||||
public string FoursquareId { get; set; }
|
public string FoursquareId { get; set; }
|
||||||
|
|
||||||
@@ -829,6 +879,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class VenueIcon2
|
public class VenueIcon2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("sm")]
|
[JsonProperty("sm")]
|
||||||
public string Sm { get; set; }
|
public string Sm { get; set; }
|
||||||
|
|
||||||
@@ -841,6 +892,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Venue2
|
public class Venue2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("venue_id")]
|
[JsonProperty("venue_id")]
|
||||||
public int VenueId { get; set; }
|
public int VenueId { get; set; }
|
||||||
|
|
||||||
@@ -874,6 +926,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Item7
|
public class Item7
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_id")]
|
[JsonProperty("photo_id")]
|
||||||
public int PhotoId { get; set; }
|
public int PhotoId { get; set; }
|
||||||
|
|
||||||
@@ -901,6 +954,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Media2
|
public class Media2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -910,6 +964,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Contact7
|
public class Contact7
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("facebook")]
|
[JsonProperty("facebook")]
|
||||||
public int Facebook { get; set; }
|
public int Facebook { get; set; }
|
||||||
|
|
||||||
@@ -919,6 +974,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Badge
|
public class Badge
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("badges_to_facebook")]
|
[JsonProperty("badges_to_facebook")]
|
||||||
public int BadgesToFacebook { get; set; }
|
public int BadgesToFacebook { get; set; }
|
||||||
|
|
||||||
@@ -928,6 +984,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Checkin
|
public class Checkin
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("checkin_to_facebook")]
|
[JsonProperty("checkin_to_facebook")]
|
||||||
public int CheckinToFacebook { get; set; }
|
public int CheckinToFacebook { get; set; }
|
||||||
|
|
||||||
@@ -940,12 +997,14 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Navigation
|
public class Navigation
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("default_to_checkin")]
|
[JsonProperty("default_to_checkin")]
|
||||||
public int DefaultToCheckin { get; set; }
|
public int DefaultToCheckin { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Settings
|
public class Settings
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("badge")]
|
[JsonProperty("badge")]
|
||||||
public Badge Badge { get; set; }
|
public Badge Badge { get; set; }
|
||||||
|
|
||||||
@@ -962,6 +1021,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class User
|
public class User
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -1038,6 +1098,7 @@ namespace Untappd.Net.Responses.UserInfo
|
|||||||
|
|
||||||
public class Response
|
public class Response
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("user")]
|
[JsonProperty("user")]
|
||||||
public User User { get; set; }
|
public User User { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,10 @@ using Untappd.Net.Request;
|
|||||||
|
|
||||||
namespace Untappd.Net.Responses.UserWishlist
|
namespace Untappd.Net.Responses.UserWishlist
|
||||||
{
|
{
|
||||||
|
|
||||||
public class ResponseTime
|
public class ResponseTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.UserWishlist
|
|||||||
|
|
||||||
public class InitTime
|
public class InitTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.UserWishlist
|
|||||||
|
|
||||||
public class Meta
|
public class Meta
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
public int Code { get; set; }
|
public int Code { get; set; }
|
||||||
|
|
||||||
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.UserWishlist
|
|||||||
|
|
||||||
public class UnreadCount
|
public class UnreadCount
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("comments")]
|
[JsonProperty("comments")]
|
||||||
public int Comments { get; set; }
|
public int Comments { get; set; }
|
||||||
|
|
||||||
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.UserWishlist
|
|||||||
|
|
||||||
public class Notifications
|
public class Notifications
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.UserWishlist
|
|||||||
|
|
||||||
public class Beer
|
public class Beer
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -108,6 +115,7 @@ namespace Untappd.Net.Responses.UserWishlist
|
|||||||
|
|
||||||
public class Contact
|
public class Contact
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -123,6 +131,7 @@ namespace Untappd.Net.Responses.UserWishlist
|
|||||||
|
|
||||||
public class Location
|
public class Location
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -138,6 +147,7 @@ namespace Untappd.Net.Responses.UserWishlist
|
|||||||
|
|
||||||
public class Brewery
|
public class Brewery
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -165,6 +175,7 @@ namespace Untappd.Net.Responses.UserWishlist
|
|||||||
|
|
||||||
public class Item
|
public class Item
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("created_at")]
|
[JsonProperty("created_at")]
|
||||||
public string CreatedAt { get; set; }
|
public string CreatedAt { get; set; }
|
||||||
|
|
||||||
@@ -180,6 +191,7 @@ namespace Untappd.Net.Responses.UserWishlist
|
|||||||
|
|
||||||
public class Beers
|
public class Beers
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -189,6 +201,7 @@ namespace Untappd.Net.Responses.UserWishlist
|
|||||||
|
|
||||||
public class Response
|
public class Response
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("sort")]
|
[JsonProperty("sort")]
|
||||||
public string Sort { get; set; }
|
public string Sort { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,10 @@ using Untappd.Net.Request;
|
|||||||
|
|
||||||
namespace Untappd.Net.Responses.VenueInfo
|
namespace Untappd.Net.Responses.VenueInfo
|
||||||
{
|
{
|
||||||
|
|
||||||
public class ResponseTime
|
public class ResponseTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -15,6 +17,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class InitTime
|
public class InitTime
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
public double Time { get; set; }
|
public double Time { get; set; }
|
||||||
|
|
||||||
@@ -24,6 +27,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Meta
|
public class Meta
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
public int Code { get; set; }
|
public int Code { get; set; }
|
||||||
|
|
||||||
@@ -36,6 +40,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class UnreadCount
|
public class UnreadCount
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("comments")]
|
[JsonProperty("comments")]
|
||||||
public int Comments { get; set; }
|
public int Comments { get; set; }
|
||||||
|
|
||||||
@@ -54,6 +59,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Notifications
|
public class Notifications
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
@@ -63,6 +69,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Item
|
public class Item
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("category_name")]
|
[JsonProperty("category_name")]
|
||||||
public string CategoryName { get; set; }
|
public string CategoryName { get; set; }
|
||||||
|
|
||||||
@@ -75,6 +82,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Categories
|
public class Categories
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -84,6 +92,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Stats
|
public class Stats
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("total_count")]
|
[JsonProperty("total_count")]
|
||||||
public int TotalCount { get; set; }
|
public int TotalCount { get; set; }
|
||||||
|
|
||||||
@@ -102,6 +111,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class VenueIcon
|
public class VenueIcon
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("sm")]
|
[JsonProperty("sm")]
|
||||||
public string Sm { get; set; }
|
public string Sm { get; set; }
|
||||||
|
|
||||||
@@ -114,6 +124,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Location
|
public class Location
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("venue_address")]
|
[JsonProperty("venue_address")]
|
||||||
public string VenueAddress { get; set; }
|
public string VenueAddress { get; set; }
|
||||||
|
|
||||||
@@ -135,6 +146,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Contact
|
public class Contact
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -144,6 +156,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Foursquare
|
public class Foursquare
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("foursquare_id")]
|
[JsonProperty("foursquare_id")]
|
||||||
public string FoursquareId { get; set; }
|
public string FoursquareId { get; set; }
|
||||||
|
|
||||||
@@ -153,6 +166,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Photo
|
public class Photo
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_img_sm")]
|
[JsonProperty("photo_img_sm")]
|
||||||
public string PhotoImgSm { get; set; }
|
public string PhotoImgSm { get; set; }
|
||||||
|
|
||||||
@@ -168,6 +182,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Beer
|
public class Beer
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -210,6 +225,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Contact2
|
public class Contact2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -222,6 +238,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Location2
|
public class Location2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -237,6 +254,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Brewery
|
public class Brewery
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -265,6 +283,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class User
|
public class User
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -289,6 +308,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Item3
|
public class Item3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("category_name")]
|
[JsonProperty("category_name")]
|
||||||
public string CategoryName { get; set; }
|
public string CategoryName { get; set; }
|
||||||
|
|
||||||
@@ -301,6 +321,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Categories2
|
public class Categories2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -310,6 +331,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Location3
|
public class Location3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("venue_address")]
|
[JsonProperty("venue_address")]
|
||||||
public string VenueAddress { get; set; }
|
public string VenueAddress { get; set; }
|
||||||
|
|
||||||
@@ -331,6 +353,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Contact3
|
public class Contact3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -340,6 +363,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Foursquare2
|
public class Foursquare2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("foursquare_id")]
|
[JsonProperty("foursquare_id")]
|
||||||
public string FoursquareId { get; set; }
|
public string FoursquareId { get; set; }
|
||||||
|
|
||||||
@@ -349,6 +373,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class VenueIcon2
|
public class VenueIcon2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("sm")]
|
[JsonProperty("sm")]
|
||||||
public string Sm { get; set; }
|
public string Sm { get; set; }
|
||||||
|
|
||||||
@@ -361,6 +386,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Venue2
|
public class Venue2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("venue_id")]
|
[JsonProperty("venue_id")]
|
||||||
public int VenueId { get; set; }
|
public int VenueId { get; set; }
|
||||||
|
|
||||||
@@ -395,6 +421,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Item2
|
public class Item2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_id")]
|
[JsonProperty("photo_id")]
|
||||||
public int PhotoId { get; set; }
|
public int PhotoId { get; set; }
|
||||||
|
|
||||||
@@ -422,6 +449,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Media
|
public class Media
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -431,6 +459,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class User2
|
public class User2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -458,6 +487,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Beer2
|
public class Beer2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -485,6 +515,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Contact4
|
public class Contact4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -500,6 +531,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Location4
|
public class Location4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -515,6 +547,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Brewery2
|
public class Brewery2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -543,6 +576,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Item5
|
public class Item5
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("category_name")]
|
[JsonProperty("category_name")]
|
||||||
public string CategoryName { get; set; }
|
public string CategoryName { get; set; }
|
||||||
|
|
||||||
@@ -555,6 +589,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Categories3
|
public class Categories3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -564,6 +599,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Location5
|
public class Location5
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("venue_address")]
|
[JsonProperty("venue_address")]
|
||||||
public string VenueAddress { get; set; }
|
public string VenueAddress { get; set; }
|
||||||
|
|
||||||
@@ -585,6 +621,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Contact5
|
public class Contact5
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -594,6 +631,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Foursquare3
|
public class Foursquare3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("foursquare_id")]
|
[JsonProperty("foursquare_id")]
|
||||||
public string FoursquareId { get; set; }
|
public string FoursquareId { get; set; }
|
||||||
|
|
||||||
@@ -603,6 +641,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class VenueIcon3
|
public class VenueIcon3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("sm")]
|
[JsonProperty("sm")]
|
||||||
public string Sm { get; set; }
|
public string Sm { get; set; }
|
||||||
|
|
||||||
@@ -615,6 +654,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Venue3
|
public class Venue3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("venue_id")]
|
[JsonProperty("venue_id")]
|
||||||
public int VenueId { get; set; }
|
public int VenueId { get; set; }
|
||||||
|
|
||||||
@@ -649,6 +689,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class User3
|
public class User3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -688,6 +729,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Item6
|
public class Item6
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("user")]
|
[JsonProperty("user")]
|
||||||
public User3 User { get; set; }
|
public User3 User { get; set; }
|
||||||
|
|
||||||
@@ -715,6 +757,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Comments
|
public class Comments
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("total_count")]
|
[JsonProperty("total_count")]
|
||||||
public int TotalCount { get; set; }
|
public int TotalCount { get; set; }
|
||||||
|
|
||||||
@@ -727,6 +770,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class User4
|
public class User4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -760,6 +804,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Item7
|
public class Item7
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("uid")]
|
[JsonProperty("uid")]
|
||||||
public int Uid { get; set; }
|
public int Uid { get; set; }
|
||||||
|
|
||||||
@@ -778,6 +823,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Toasts
|
public class Toasts
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("total_count")]
|
[JsonProperty("total_count")]
|
||||||
public int TotalCount { get; set; }
|
public int TotalCount { get; set; }
|
||||||
|
|
||||||
@@ -793,6 +839,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Photo2
|
public class Photo2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_img_sm")]
|
[JsonProperty("photo_img_sm")]
|
||||||
public string PhotoImgSm { get; set; }
|
public string PhotoImgSm { get; set; }
|
||||||
|
|
||||||
@@ -808,6 +855,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Item8
|
public class Item8
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("photo_id")]
|
[JsonProperty("photo_id")]
|
||||||
public int PhotoId { get; set; }
|
public int PhotoId { get; set; }
|
||||||
|
|
||||||
@@ -817,6 +865,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Media2
|
public class Media2
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -826,6 +875,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Source
|
public class Source
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("app_name")]
|
[JsonProperty("app_name")]
|
||||||
public string AppName { get; set; }
|
public string AppName { get; set; }
|
||||||
|
|
||||||
@@ -835,6 +885,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class BadgeImage
|
public class BadgeImage
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("sm")]
|
[JsonProperty("sm")]
|
||||||
public string Sm { get; set; }
|
public string Sm { get; set; }
|
||||||
|
|
||||||
@@ -847,6 +898,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Item9
|
public class Item9
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("badge_id")]
|
[JsonProperty("badge_id")]
|
||||||
public int BadgeId { get; set; }
|
public int BadgeId { get; set; }
|
||||||
|
|
||||||
@@ -868,6 +920,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Badges
|
public class Badges
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -877,6 +930,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Item4
|
public class Item4
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("checkin_id")]
|
[JsonProperty("checkin_id")]
|
||||||
public int CheckinId { get; set; }
|
public int CheckinId { get; set; }
|
||||||
|
|
||||||
@@ -919,6 +973,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Checkins
|
public class Checkins
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -928,6 +983,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Beer3
|
public class Beer3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("bid")]
|
[JsonProperty("bid")]
|
||||||
public int Bid { get; set; }
|
public int Bid { get; set; }
|
||||||
|
|
||||||
@@ -976,6 +1032,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Contact6
|
public class Contact6
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("twitter")]
|
[JsonProperty("twitter")]
|
||||||
public string Twitter { get; set; }
|
public string Twitter { get; set; }
|
||||||
|
|
||||||
@@ -988,6 +1045,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Location6
|
public class Location6
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_city")]
|
[JsonProperty("brewery_city")]
|
||||||
public string BreweryCity { get; set; }
|
public string BreweryCity { get; set; }
|
||||||
|
|
||||||
@@ -1003,6 +1061,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Brewery3
|
public class Brewery3
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("brewery_id")]
|
[JsonProperty("brewery_id")]
|
||||||
public int BreweryId { get; set; }
|
public int BreweryId { get; set; }
|
||||||
|
|
||||||
@@ -1031,6 +1090,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Friends
|
public class Friends
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
|
|
||||||
@@ -1040,6 +1100,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Item10
|
public class Item10
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("created_at")]
|
[JsonProperty("created_at")]
|
||||||
public string CreatedAt { get; set; }
|
public string CreatedAt { get; set; }
|
||||||
|
|
||||||
@@ -1061,6 +1122,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class TopBeers
|
public class TopBeers
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("offset")]
|
[JsonProperty("offset")]
|
||||||
public int Offset { get; set; }
|
public int Offset { get; set; }
|
||||||
|
|
||||||
@@ -1076,6 +1138,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Venue
|
public class Venue
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("venue_id")]
|
[JsonProperty("venue_id")]
|
||||||
public int VenueId { get; set; }
|
public int VenueId { get; set; }
|
||||||
|
|
||||||
@@ -1123,6 +1186,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
|||||||
|
|
||||||
public class Response
|
public class Response
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("venue")]
|
[JsonProperty("venue")]
|
||||||
public Venue Venue { get; set; }
|
public Venue Venue { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ namespace Untappd.Net
|
|||||||
public override bool CanConvert(Type objectType)
|
public override bool CanConvert(Type objectType)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
|
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));
|
var instance = (T)serializer.Deserialize(reader, typeof(T));
|
||||||
retval = instance;
|
retval = instance;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case JsonToken.StartArray:
|
case JsonToken.StartArray:
|
||||||
reader.Read();
|
reader.Read();
|
||||||
retval = new T();
|
retval = new T();
|
||||||
|
|||||||
Reference in New Issue
Block a user