committing for now
This commit is contained in:
28
Untappd.Net.sln
Normal file
28
Untappd.Net.sln
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio 14
|
||||||
|
VisualStudioVersion = 14.0.22609.0
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Untappd.Net", "src\Untappd.Net\Untappd.Net.csproj", "{D8571A44-2E86-43A3-B64A-2364614C6934}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Untappd.Net.UnitTests", "src\Untappd.Net.UnitTests\Untappd.Net.UnitTests.csproj", "{513A3FB2-6664-40E7-A03E-591D852C42E4}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{D8571A44-2E86-43A3-B64A-2364614C6934}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{D8571A44-2E86-43A3-B64A-2364614C6934}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{D8571A44-2E86-43A3-B64A-2364614C6934}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{D8571A44-2E86-43A3-B64A-2364614C6934}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{513A3FB2-6664-40E7-A03E-591D852C42E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{513A3FB2-6664-40E7-A03E-591D852C42E4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{513A3FB2-6664-40E7-A03E-591D852C42E4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{513A3FB2-6664-40E7-A03E-591D852C42E4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
23
src/Untappd.Net.UnitTests/Class1.cs
Normal file
23
src/Untappd.Net.UnitTests/Class1.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
using NUnit.Framework;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Untappd.Client.Net;
|
||||||
|
using Untappd.Net.Responses.UserInfo;
|
||||||
|
|
||||||
|
namespace Untappd.Net.UnitTests
|
||||||
|
{
|
||||||
|
[TestFixture]
|
||||||
|
public class Class1
|
||||||
|
{
|
||||||
|
[Test]
|
||||||
|
public void Test()
|
||||||
|
{
|
||||||
|
|
||||||
|
//var t = new Request.Request().Get<UnAuthenticatedUntappdCredentials, UserInfoRootobject>(ts, "tparnell");
|
||||||
|
//Console.WriteLine(t.response.user.first_name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
36
src/Untappd.Net.UnitTests/Properties/AssemblyInfo.cs
Normal file
36
src/Untappd.Net.UnitTests/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following
|
||||||
|
// set of attributes. Change these attribute values to modify the information
|
||||||
|
// associated with an assembly.
|
||||||
|
[assembly: AssemblyTitle("Untappd.Net.UnitTests")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("Microsoft")]
|
||||||
|
[assembly: AssemblyProduct("Untappd.Net.UnitTests")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © Microsoft 2015")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||||
|
// to COM components. If you need to access a type in this assembly from
|
||||||
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
|
[assembly: Guid("513a3fb2-6664-40e7-a03e-591d852c42e4")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
|
// by using the '*' as shown below:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
84
src/Untappd.Net.UnitTests/Untappd.Net.UnitTests.csproj
Normal file
84
src/Untappd.Net.UnitTests/Untappd.Net.UnitTests.csproj
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{513A3FB2-6664-40E7-A03E-591D852C42E4}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>Untappd.Net.UnitTests</RootNamespace>
|
||||||
|
<AssemblyName>Untappd.Net.UnitTests</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="nunit.core">
|
||||||
|
<HintPath>..\..\packages\NUnitTestAdapter.1.2\lib\nunit.core.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="nunit.core.interfaces">
|
||||||
|
<HintPath>..\..\packages\NUnitTestAdapter.1.2\lib\nunit.core.interfaces.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="nunit.framework">
|
||||||
|
<HintPath>..\..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="nunit.util">
|
||||||
|
<HintPath>..\..\packages\NUnitTestAdapter.1.2\lib\nunit.util.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="NUnit.VisualStudio.TestAdapter">
|
||||||
|
<HintPath>..\..\packages\NUnitTestAdapter.1.2\lib\NUnit.VisualStudio.TestAdapter.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Class1.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="packages.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\Untappd.Net\Untappd.Net.csproj">
|
||||||
|
<Project>{d8571a44-2e86-43a3-b64a-2364614c6934}</Project>
|
||||||
|
<Name>Untappd.Net</Name>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
||||||
5
src/Untappd.Net.UnitTests/packages.config
Normal file
5
src/Untappd.Net.UnitTests/packages.config
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="NUnit" version="2.6.4" targetFramework="net45" />
|
||||||
|
<package id="NUnitTestAdapter" version="1.2" targetFramework="net45" />
|
||||||
|
</packages>
|
||||||
26
src/Untappd.Net/Client/AuthenticatedUntappdCredentials.cs
Normal file
26
src/Untappd.Net/Client/AuthenticatedUntappdCredentials.cs
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Untappd.Client.Net;
|
||||||
|
|
||||||
|
namespace Untappd.Net.Client
|
||||||
|
{
|
||||||
|
public class AuthenticatedUntappdCredentials : UnAuthenticatedUntappdCredentials
|
||||||
|
{
|
||||||
|
internal string AccessToken { get; private set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Pass your authenticated access token
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="accessToken"></param>
|
||||||
|
/// <param name="clientId"></param>
|
||||||
|
/// <param name="clientSecret"></param>
|
||||||
|
public AuthenticatedUntappdCredentials(string accessToken, string clientId, string clientSecret)
|
||||||
|
:base(clientId, clientSecret)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrWhiteSpace(accessToken)) throw new ArgumentNullException("accessToken");
|
||||||
|
AccessToken = string.Copy(accessToken);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
14
src/Untappd.Net/Client/IUntappdCredentials.cs
Normal file
14
src/Untappd.Net/Client/IUntappdCredentials.cs
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Untappd.Net.Client
|
||||||
|
{
|
||||||
|
public interface IUntappdCredentials
|
||||||
|
{
|
||||||
|
string ClientId { get; }
|
||||||
|
string ClientSecret { get; }
|
||||||
|
}
|
||||||
|
}
|
||||||
34
src/Untappd.Net/Client/UnAuthenticatedUntappdCredentials.cs
Normal file
34
src/Untappd.Net/Client/UnAuthenticatedUntappdCredentials.cs
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Untappd.Net.Client;
|
||||||
|
|
||||||
|
namespace Untappd.Client.Net
|
||||||
|
{
|
||||||
|
public class UnAuthenticatedUntappdCredentials : IUntappdCredentials
|
||||||
|
{
|
||||||
|
public string ClientId { get; private set; }
|
||||||
|
public string ClientSecret { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// UnAuthenticated request. Pass your API id and secret
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="clientId"></param>
|
||||||
|
/// <param name="clientSecret"></param>
|
||||||
|
public UnAuthenticatedUntappdCredentials(string clientId, string clientSecret)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrWhiteSpace(clientId))
|
||||||
|
{
|
||||||
|
throw new ArgumentNullException("clientId");
|
||||||
|
}
|
||||||
|
if (string.IsNullOrWhiteSpace(clientSecret))
|
||||||
|
{
|
||||||
|
throw new ArgumentNullException("clientSecret");
|
||||||
|
}
|
||||||
|
ClientId = string.Copy(clientId);
|
||||||
|
ClientSecret = string.Copy(clientSecret);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
36
src/Untappd.Net/Properties/AssemblyInfo.cs
Normal file
36
src/Untappd.Net/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following
|
||||||
|
// set of attributes. Change these attribute values to modify the information
|
||||||
|
// associated with an assembly.
|
||||||
|
[assembly: AssemblyTitle("Untappd.Net")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("Microsoft")]
|
||||||
|
[assembly: AssemblyProduct("Untappd.Net")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © Microsoft 2015")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||||
|
// to COM components. If you need to access a type in this assembly from
|
||||||
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
|
[assembly: Guid("d8571a44-2e86-43a3-b64a-2364614c6934")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
|
// by using the '*' as shown below:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
13
src/Untappd.Net/Request/AuthenticatedRequest.cs
Normal file
13
src/Untappd.Net/Request/AuthenticatedRequest.cs
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Untappd.Net.Request
|
||||||
|
{
|
||||||
|
public abstract class AuthenticatedRequest : BaseRequest
|
||||||
|
{
|
||||||
|
protected override abstract string _EndPoint { get; }
|
||||||
|
}
|
||||||
|
}
|
||||||
24
src/Untappd.Net/Request/BaseRequest.cs
Normal file
24
src/Untappd.Net/Request/BaseRequest.cs
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Untappd.Net.Request
|
||||||
|
{
|
||||||
|
public abstract class BaseRequest
|
||||||
|
{
|
||||||
|
internal readonly string baseRequestString = "https://api.untappd.com";
|
||||||
|
protected abstract string _EndPoint { get; }
|
||||||
|
/// <summary>
|
||||||
|
/// Pass in the parameter into the request...ie username, brewery, etc.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="parameter"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
internal string EndPoint(string parameter)
|
||||||
|
{
|
||||||
|
return string.Format(_EndPoint, parameter);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
38
src/Untappd.Net/Request/Request.cs
Normal file
38
src/Untappd.Net/Request/Request.cs
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
using Newtonsoft.Json;
|
||||||
|
using RestSharp;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Untappd.Client.Net;
|
||||||
|
using Untappd.Net.Client;
|
||||||
|
|
||||||
|
namespace Untappd.Net.Request
|
||||||
|
{
|
||||||
|
public class Request
|
||||||
|
{
|
||||||
|
public TResult Get<T, TResult> (T credentials, string parameter)
|
||||||
|
where T : IUntappdCredentials
|
||||||
|
where TResult : BaseRequest,new()
|
||||||
|
{
|
||||||
|
// throw new NotImplementedException();
|
||||||
|
var result = new TResult();
|
||||||
|
var client = new RestClient(result.baseRequestString);
|
||||||
|
var request = new RestRequest(result.EndPoint(parameter), Method.GET);
|
||||||
|
request.AddParameter("client_id", credentials.ClientId);
|
||||||
|
request.AddParameter("client_secret", credentials.ClientSecret);
|
||||||
|
var resp = client.Execute(request);
|
||||||
|
var jsonresult = JsonConvert.DeserializeObject<TResult>(resp.Content);
|
||||||
|
return jsonresult;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public TResult GetAuth<T, TResult>()
|
||||||
|
where T : AuthenticatedUntappdCredentials
|
||||||
|
where TResult : BaseRequest, new()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
299
src/Untappd.Net/Responses/BeerInfo.cs
Normal file
299
src/Untappd.Net/Responses/BeerInfo.cs
Normal file
@@ -0,0 +1,299 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Untappd.Net.Request;
|
||||||
|
|
||||||
|
namespace Untappd.Net.Responses.BeerInfo
|
||||||
|
{
|
||||||
|
|
||||||
|
public class BeerInfoRootobject : BaseRequest
|
||||||
|
{
|
||||||
|
public Beer beer { get; set; }
|
||||||
|
|
||||||
|
protected override string _EndPoint { get { return "v4/beer/info/{0}"; } }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beer
|
||||||
|
{
|
||||||
|
public int bid { get; set; }
|
||||||
|
public string beer_name { get; set; }
|
||||||
|
public string beer_label { get; set; }
|
||||||
|
public float beer_abv { get; set; }
|
||||||
|
public int beer_ibu { get; set; }
|
||||||
|
public string beer_description { get; set; }
|
||||||
|
public string beer_style { get; set; }
|
||||||
|
public int is_in_production { get; set; }
|
||||||
|
public string beer_slug { get; set; }
|
||||||
|
public int is_homebrew { get; set; }
|
||||||
|
public string created_at { get; set; }
|
||||||
|
public int rating_count { get; set; }
|
||||||
|
public float rating_score { get; set; }
|
||||||
|
public Stats stats { get; set; }
|
||||||
|
public Brewery brewery { get; set; }
|
||||||
|
public int auth_rating { get; set; }
|
||||||
|
public bool wish_list { get; set; }
|
||||||
|
public Media media { get; set; }
|
||||||
|
public Similar similar { get; set; }
|
||||||
|
public Friends1 friends { get; set; }
|
||||||
|
public Vintages vintages { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Stats
|
||||||
|
{
|
||||||
|
public int total_count { get; set; }
|
||||||
|
public int monthly_count { get; set; }
|
||||||
|
public int total_user_count { get; set; }
|
||||||
|
public int user_count { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery
|
||||||
|
{
|
||||||
|
public int brewery_id { get; set; }
|
||||||
|
public string brewery_name { get; set; }
|
||||||
|
public string brewery_label { get; set; }
|
||||||
|
public string country_name { get; set; }
|
||||||
|
public Contact contact { get; set; }
|
||||||
|
public Location location { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string facebook { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location
|
||||||
|
{
|
||||||
|
public string brewery_city { get; set; }
|
||||||
|
public string brewery_state { get; set; }
|
||||||
|
public float lat { get; set; }
|
||||||
|
public float lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Media
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public Items items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Items
|
||||||
|
{
|
||||||
|
public int photo_id { get; set; }
|
||||||
|
public Photo photo { get; set; }
|
||||||
|
public string created_at { get; set; }
|
||||||
|
public int checkin_id { get; set; }
|
||||||
|
public Beer1 beer { get; set; }
|
||||||
|
public Brewery1 brewery { get; set; }
|
||||||
|
public User user { get; set; }
|
||||||
|
public Venue[] venue { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Photo
|
||||||
|
{
|
||||||
|
public string photo_img_sm { get; set; }
|
||||||
|
public string photo_img_md { get; set; }
|
||||||
|
public string photo_img_lg { get; set; }
|
||||||
|
public string photo_img_og { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beer1
|
||||||
|
{
|
||||||
|
public int bid { get; set; }
|
||||||
|
public string beer_name { get; set; }
|
||||||
|
public string beer_label { get; set; }
|
||||||
|
public float beer_abv { get; set; }
|
||||||
|
public int beer_ibu { get; set; }
|
||||||
|
public string beer_slug { get; set; }
|
||||||
|
public string beer_description { get; set; }
|
||||||
|
public int is_in_production { get; set; }
|
||||||
|
public int beer_style_id { get; set; }
|
||||||
|
public string beer_style { get; set; }
|
||||||
|
public int auth_rating { get; set; }
|
||||||
|
public bool wish_list { get; set; }
|
||||||
|
public int beer_active { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery1
|
||||||
|
{
|
||||||
|
public int brewery_id { get; set; }
|
||||||
|
public string brewery_name { get; set; }
|
||||||
|
public string brewery_slug { get; set; }
|
||||||
|
public string brewery_label { get; set; }
|
||||||
|
public string country_name { get; set; }
|
||||||
|
public Contact1 contact { get; set; }
|
||||||
|
public Location1 location { get; set; }
|
||||||
|
public int brewery_active { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact1
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string facebook { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location1
|
||||||
|
{
|
||||||
|
public string brewery_city { get; set; }
|
||||||
|
public string brewery_state { get; set; }
|
||||||
|
public float lat { get; set; }
|
||||||
|
public float lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class User
|
||||||
|
{
|
||||||
|
public int uid { get; set; }
|
||||||
|
public string user_name { get; set; }
|
||||||
|
public string first_name { get; set; }
|
||||||
|
public string last_name { get; set; }
|
||||||
|
public string user_avatar { get; set; }
|
||||||
|
public string relationship { get; set; }
|
||||||
|
public int is_private { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Venue
|
||||||
|
{
|
||||||
|
public int venue_id { get; set; }
|
||||||
|
public string venue_name { get; set; }
|
||||||
|
public string primary_category { get; set; }
|
||||||
|
public string parent_category_id { get; set; }
|
||||||
|
public Categories categories { get; set; }
|
||||||
|
public Location2 location { get; set; }
|
||||||
|
public Contact2 contact { get; set; }
|
||||||
|
public bool private_venue { get; set; }
|
||||||
|
public Foursquare foursquare { get; set; }
|
||||||
|
public Venue_Icon venue_icon { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Categories
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public Item[] items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Item
|
||||||
|
{
|
||||||
|
public string category_name { get; set; }
|
||||||
|
public string category_id { get; set; }
|
||||||
|
public bool is_primary { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location2
|
||||||
|
{
|
||||||
|
public string venue_address { get; set; }
|
||||||
|
public string venue_city { get; set; }
|
||||||
|
public string venue_state { get; set; }
|
||||||
|
public float lat { get; set; }
|
||||||
|
public float lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact2
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string venue_url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Foursquare
|
||||||
|
{
|
||||||
|
public string foursquare_id { get; set; }
|
||||||
|
public string foursquare_url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Venue_Icon
|
||||||
|
{
|
||||||
|
public string sm { get; set; }
|
||||||
|
public string md { get; set; }
|
||||||
|
public string lg { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Similar
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public Items1 items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Items1
|
||||||
|
{
|
||||||
|
public float rating_score { get; set; }
|
||||||
|
public Beer2 beer { get; set; }
|
||||||
|
public Brewery2 brewery { get; set; }
|
||||||
|
public Friends friends { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beer2
|
||||||
|
{
|
||||||
|
public int bid { get; set; }
|
||||||
|
public string beer_name { get; set; }
|
||||||
|
public float beer_abv { get; set; }
|
||||||
|
public int beer_ibu { get; set; }
|
||||||
|
public string beer_style { get; set; }
|
||||||
|
public string beer_label { get; set; }
|
||||||
|
public int auth_rating { get; set; }
|
||||||
|
public bool wish_list { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery2
|
||||||
|
{
|
||||||
|
public int brewery_id { get; set; }
|
||||||
|
public string brewery_name { get; set; }
|
||||||
|
public string brewery_slug { get; set; }
|
||||||
|
public string brewery_label { get; set; }
|
||||||
|
public string country_name { get; set; }
|
||||||
|
public Contact3 contact { get; set; }
|
||||||
|
public Location3 location { get; set; }
|
||||||
|
public int brewery_active { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact3
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string facebook { get; set; }
|
||||||
|
public string instagram { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location3
|
||||||
|
{
|
||||||
|
public string brewery_city { get; set; }
|
||||||
|
public string brewery_state { get; set; }
|
||||||
|
public float lat { get; set; }
|
||||||
|
public float lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Friends
|
||||||
|
{
|
||||||
|
public object[] items { get; set; }
|
||||||
|
public int count { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Friends1
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public object[] items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Vintages
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public Item1[] items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Item1
|
||||||
|
{
|
||||||
|
public Beer3 beer { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beer3
|
||||||
|
{
|
||||||
|
public int bid { get; set; }
|
||||||
|
public string beer_label { get; set; }
|
||||||
|
public string beer_slug { get; set; }
|
||||||
|
public string beer_name { get; set; }
|
||||||
|
public int is_vintage { get; set; }
|
||||||
|
public int is_variant { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
166
src/Untappd.Net/Responses/BeerSearch.cs
Normal file
166
src/Untappd.Net/Responses/BeerSearch.cs
Normal file
@@ -0,0 +1,166 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Untappd.Net.Request;
|
||||||
|
|
||||||
|
namespace Untappd.Net.Responses.BeerSearch
|
||||||
|
{
|
||||||
|
|
||||||
|
public class BeerSearchRootobject : BaseRequest
|
||||||
|
{
|
||||||
|
protected override string _EndPoint { get { return "v4/beer/info/{0}"; } }
|
||||||
|
public int found { get; set; }
|
||||||
|
public string term { get; set; }
|
||||||
|
public Beers beers { get; set; }
|
||||||
|
public Homebrew homebrew { get; set; }
|
||||||
|
public Breweries breweries { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beers
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public Items items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Items
|
||||||
|
{
|
||||||
|
public int checkin_count { get; set; }
|
||||||
|
public bool have_had { get; set; }
|
||||||
|
public int your_count { get; set; }
|
||||||
|
public Beer beer { get; set; }
|
||||||
|
public Brewery brewery { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beer
|
||||||
|
{
|
||||||
|
public int bid { get; set; }
|
||||||
|
public string beer_name { get; set; }
|
||||||
|
public string beer_label { get; set; }
|
||||||
|
public int beer_abv { get; set; }
|
||||||
|
public int beer_ibu { get; set; }
|
||||||
|
public string beer_description { get; set; }
|
||||||
|
public string created_at { get; set; }
|
||||||
|
public string beer_style { get; set; }
|
||||||
|
public int auth_rating { get; set; }
|
||||||
|
public bool wish_list { get; set; }
|
||||||
|
public int in_production { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery
|
||||||
|
{
|
||||||
|
public int brewery_id { get; set; }
|
||||||
|
public string brewery_name { get; set; }
|
||||||
|
public string brewery_slug { get; set; }
|
||||||
|
public string brewery_label { get; set; }
|
||||||
|
public string country_name { get; set; }
|
||||||
|
public Contact contact { get; set; }
|
||||||
|
public Location location { get; set; }
|
||||||
|
public int brewery_active { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string facebook { get; set; }
|
||||||
|
public string instagram { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location
|
||||||
|
{
|
||||||
|
public string brewery_city { get; set; }
|
||||||
|
public string brewery_state { get; set; }
|
||||||
|
public float lat { get; set; }
|
||||||
|
public float lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Homebrew
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public Items1 items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Items1
|
||||||
|
{
|
||||||
|
public int checkin_count { get; set; }
|
||||||
|
public bool have_had { get; set; }
|
||||||
|
public int your_count { get; set; }
|
||||||
|
public Beer1 beer { get; set; }
|
||||||
|
public Brewery1 brewery { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beer1
|
||||||
|
{
|
||||||
|
public int bid { get; set; }
|
||||||
|
public string beer_name { get; set; }
|
||||||
|
public string beer_label { get; set; }
|
||||||
|
public int beer_abv { get; set; }
|
||||||
|
public int beer_ibu { get; set; }
|
||||||
|
public string beer_description { get; set; }
|
||||||
|
public string created_at { get; set; }
|
||||||
|
public string beer_style { get; set; }
|
||||||
|
public int auth_rating { get; set; }
|
||||||
|
public bool wish_list { get; set; }
|
||||||
|
public int in_production { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery1
|
||||||
|
{
|
||||||
|
public int brewery_id { get; set; }
|
||||||
|
public string brewery_name { get; set; }
|
||||||
|
public string brewery_slug { get; set; }
|
||||||
|
public string brewery_label { get; set; }
|
||||||
|
public string country_name { get; set; }
|
||||||
|
public Contact1 contact { get; set; }
|
||||||
|
public Location1 location { get; set; }
|
||||||
|
public int brewery_active { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact1
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string facebook { get; set; }
|
||||||
|
public string instagram { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location1
|
||||||
|
{
|
||||||
|
public string brewery_city { get; set; }
|
||||||
|
public string brewery_state { get; set; }
|
||||||
|
public int lat { get; set; }
|
||||||
|
public int lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Breweries
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public Items2 items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Items2
|
||||||
|
{
|
||||||
|
public Brewery2 brewery { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery2
|
||||||
|
{
|
||||||
|
public int brewery_id { get; set; }
|
||||||
|
public int beer_count { get; set; }
|
||||||
|
public string brewery_name { get; set; }
|
||||||
|
public string brewery_label { get; set; }
|
||||||
|
public string country_name { get; set; }
|
||||||
|
public Location2 location { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location2
|
||||||
|
{
|
||||||
|
public string brewery_city { get; set; }
|
||||||
|
public string brewery_state { get; set; }
|
||||||
|
public int lat { get; set; }
|
||||||
|
public int lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
230
src/Untappd.Net/Responses/BreweryInfo.cs
Normal file
230
src/Untappd.Net/Responses/BreweryInfo.cs
Normal file
@@ -0,0 +1,230 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Untappd.Net.Request;
|
||||||
|
|
||||||
|
namespace Untappd.Net.Responses.BreweryInfo
|
||||||
|
{
|
||||||
|
|
||||||
|
public class BreweryInfoRootobject : BaseRequest
|
||||||
|
{
|
||||||
|
protected override string _EndPoint { get { return "v4/brewery/info/{0}"; } }
|
||||||
|
public Brewery brewery { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery
|
||||||
|
{
|
||||||
|
public int brewery_id { get; set; }
|
||||||
|
public string brewery_name { get; set; }
|
||||||
|
public string brewery_slug { get; set; }
|
||||||
|
public string brewery_label { get; set; }
|
||||||
|
public string country_name { get; set; }
|
||||||
|
public int brewery_in_production { get; set; }
|
||||||
|
public int is_independent { get; set; }
|
||||||
|
public Claimed_Status claimed_status { get; set; }
|
||||||
|
public int beer_count { get; set; }
|
||||||
|
public Contact contact { get; set; }
|
||||||
|
public string brewery_type { get; set; }
|
||||||
|
public int brewery_type_id { get; set; }
|
||||||
|
public Location location { get; set; }
|
||||||
|
public Rating rating { get; set; }
|
||||||
|
public string brewery_description { get; set; }
|
||||||
|
public Stats stats { get; set; }
|
||||||
|
public Owners owners { get; set; }
|
||||||
|
public Media media { get; set; }
|
||||||
|
public Beer_List beer_list { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Claimed_Status
|
||||||
|
{
|
||||||
|
public bool is_claimed { get; set; }
|
||||||
|
public string claimed_slug { get; set; }
|
||||||
|
public bool follow_status { get; set; }
|
||||||
|
public int follower_count { get; set; }
|
||||||
|
public int uid { get; set; }
|
||||||
|
public string mute_status { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string facebook { get; set; }
|
||||||
|
public string instagram { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location
|
||||||
|
{
|
||||||
|
public string brewery_address { get; set; }
|
||||||
|
public string brewery_city { get; set; }
|
||||||
|
public string brewery_state { get; set; }
|
||||||
|
public float brewery_lat { get; set; }
|
||||||
|
public float brewery_lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Rating
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public float rating_score { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Stats
|
||||||
|
{
|
||||||
|
public int total_count { get; set; }
|
||||||
|
public int unique_count { get; set; }
|
||||||
|
public int monthly_count { get; set; }
|
||||||
|
public int weekly_count { get; set; }
|
||||||
|
public int user_count { get; set; }
|
||||||
|
public float age_on_service { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Owners
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public object[] items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Media
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public Items items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Items
|
||||||
|
{
|
||||||
|
public int photo_id { get; set; }
|
||||||
|
public Photo photo { get; set; }
|
||||||
|
public string created_at { get; set; }
|
||||||
|
public int checkin_id { get; set; }
|
||||||
|
public Beer beer { get; set; }
|
||||||
|
public Brewery1 brewery { get; set; }
|
||||||
|
public User user { get; set; }
|
||||||
|
public object[] venue { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Photo
|
||||||
|
{
|
||||||
|
public string photo_img_sm { get; set; }
|
||||||
|
public string photo_img_md { get; set; }
|
||||||
|
public string photo_img_lg { get; set; }
|
||||||
|
public string photo_img_og { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beer
|
||||||
|
{
|
||||||
|
public int bid { get; set; }
|
||||||
|
public string beer_name { get; set; }
|
||||||
|
public float beer_abv { get; set; }
|
||||||
|
public string beer_label { get; set; }
|
||||||
|
public string beer_style { get; set; }
|
||||||
|
public int auth_rating { get; set; }
|
||||||
|
public bool wish_list { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery1
|
||||||
|
{
|
||||||
|
public int brewery_id { get; set; }
|
||||||
|
public string brewery_name { get; set; }
|
||||||
|
public string brewery_slug { get; set; }
|
||||||
|
public string brewery_label { get; set; }
|
||||||
|
public string country_name { get; set; }
|
||||||
|
public Contact1 contact { get; set; }
|
||||||
|
public Location1 location { get; set; }
|
||||||
|
public int brewery_active { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact1
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string facebook { get; set; }
|
||||||
|
public string instagram { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location1
|
||||||
|
{
|
||||||
|
public string brewery_city { get; set; }
|
||||||
|
public string brewery_state { get; set; }
|
||||||
|
public float lat { get; set; }
|
||||||
|
public float lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class User
|
||||||
|
{
|
||||||
|
public int uid { get; set; }
|
||||||
|
public string user_name { get; set; }
|
||||||
|
public string first_name { get; set; }
|
||||||
|
public string last_name { get; set; }
|
||||||
|
public string user_avatar { get; set; }
|
||||||
|
public string relationship { get; set; }
|
||||||
|
public int is_private { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beer_List
|
||||||
|
{
|
||||||
|
public bool is_super { get; set; }
|
||||||
|
public string sort { get; set; }
|
||||||
|
public string filter { get; set; }
|
||||||
|
public int count { get; set; }
|
||||||
|
public Items1 items { get; set; }
|
||||||
|
public int beer_count { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Items1
|
||||||
|
{
|
||||||
|
public bool has_had { get; set; }
|
||||||
|
public int total_count { get; set; }
|
||||||
|
public Beer1 beer { get; set; }
|
||||||
|
public Brewery2 brewery { get; set; }
|
||||||
|
public object[] friends { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beer1
|
||||||
|
{
|
||||||
|
public int bid { get; set; }
|
||||||
|
public string beer_name { get; set; }
|
||||||
|
public string beer_label { get; set; }
|
||||||
|
public string beer_style { get; set; }
|
||||||
|
public float beer_abv { get; set; }
|
||||||
|
public int beer_ibu { get; set; }
|
||||||
|
public string beer_slug { get; set; }
|
||||||
|
public string beer_description { get; set; }
|
||||||
|
public int is_in_production { get; set; }
|
||||||
|
public string created_at { get; set; }
|
||||||
|
public int auth_rating { get; set; }
|
||||||
|
public bool wish_list { get; set; }
|
||||||
|
public float rating_score { get; set; }
|
||||||
|
public int rating_count { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery2
|
||||||
|
{
|
||||||
|
public int brewery_id { get; set; }
|
||||||
|
public string brewery_name { get; set; }
|
||||||
|
public string brewery_slug { get; set; }
|
||||||
|
public string brewery_label { get; set; }
|
||||||
|
public string country_name { get; set; }
|
||||||
|
public Contact2 contact { get; set; }
|
||||||
|
public Location2 location { get; set; }
|
||||||
|
public int brewery_active { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact2
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string facebook { get; set; }
|
||||||
|
public string instagram { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location2
|
||||||
|
{
|
||||||
|
public string brewery_city { get; set; }
|
||||||
|
public string brewery_state { get; set; }
|
||||||
|
public float lat { get; set; }
|
||||||
|
public float lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
47
src/Untappd.Net/Responses/BrewerySearch.cs
Normal file
47
src/Untappd.Net/Responses/BrewerySearch.cs
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Untappd.Net.Request;
|
||||||
|
|
||||||
|
namespace Untappd.Net.Responses.BrewerySearch
|
||||||
|
{
|
||||||
|
|
||||||
|
public class BrewerySearchRootobject : BaseRequest
|
||||||
|
{
|
||||||
|
public int found { get; set; }
|
||||||
|
public Brewery brewery { get; set; }
|
||||||
|
protected override string _EndPoint { get { return "v4/search/beer/{0}"; } }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public Items items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Items
|
||||||
|
{
|
||||||
|
public Brewery1 brewery { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery1
|
||||||
|
{
|
||||||
|
public int brewery_id { get; set; }
|
||||||
|
public int beer_count { get; set; }
|
||||||
|
public string brewery_name { get; set; }
|
||||||
|
public string brewery_label { get; set; }
|
||||||
|
public string country_name { get; set; }
|
||||||
|
public Location location { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location
|
||||||
|
{
|
||||||
|
public string brewery_city { get; set; }
|
||||||
|
public string brewery_state { get; set; }
|
||||||
|
public int lat { get; set; }
|
||||||
|
public int lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
66
src/Untappd.Net/Responses/UserBadges.cs
Normal file
66
src/Untappd.Net/Responses/UserBadges.cs
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Untappd.Net.Request;
|
||||||
|
|
||||||
|
namespace Untappd.Net.Responses.UserBadges
|
||||||
|
{
|
||||||
|
|
||||||
|
public class UserBadgesRootobject : BaseRequest
|
||||||
|
{
|
||||||
|
public string type { get; set; }
|
||||||
|
public string sort { get; set; }
|
||||||
|
public int count { get; set; }
|
||||||
|
public Item[] items { get; set; }
|
||||||
|
protected override string _EndPoint { get { return "v4/user/badges/{0}"; } }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Item
|
||||||
|
{
|
||||||
|
public int user_badge_id { get; set; }
|
||||||
|
public int badge_id { get; set; }
|
||||||
|
public int checkin_id { get; set; }
|
||||||
|
public string badge_name { get; set; }
|
||||||
|
public string badge_description { get; set; }
|
||||||
|
public int badge_active_status { get; set; }
|
||||||
|
public Media media { get; set; }
|
||||||
|
public string created_at { get; set; }
|
||||||
|
public bool is_level { get; set; }
|
||||||
|
public int category_id { get; set; }
|
||||||
|
public Levels levels { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Media
|
||||||
|
{
|
||||||
|
public string badge_image_sm { get; set; }
|
||||||
|
public string badge_image_md { get; set; }
|
||||||
|
public string badge_image_lg { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Levels
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public Item1[] items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Item1
|
||||||
|
{
|
||||||
|
public int actual_badge_id { get; set; }
|
||||||
|
public int badge_id { get; set; }
|
||||||
|
public int checkin_id { get; set; }
|
||||||
|
public string badge_name { get; set; }
|
||||||
|
public string badge_description { get; set; }
|
||||||
|
public Media1 media { get; set; }
|
||||||
|
public string created_at { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Media1
|
||||||
|
{
|
||||||
|
public string badge_image_sm { get; set; }
|
||||||
|
public string badge_image_md { get; set; }
|
||||||
|
public string badge_image_lg { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
83
src/Untappd.Net/Responses/UserDistinctBeer.cs
Normal file
83
src/Untappd.Net/Responses/UserDistinctBeer.cs
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Untappd.Net.Request;
|
||||||
|
|
||||||
|
namespace Untappd.Net.Responses.UserDistinctBeer
|
||||||
|
{
|
||||||
|
|
||||||
|
public class UserDistinctBeerRootobject : BaseRequest
|
||||||
|
{
|
||||||
|
public Beers beers { get; set; }
|
||||||
|
protected override string _EndPoint { get { throw new NotImplementedException(); } }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beers
|
||||||
|
{
|
||||||
|
public string sort { get; set; }
|
||||||
|
public string sort_english { get; set; }
|
||||||
|
public int count { get; set; }
|
||||||
|
public Items items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Items
|
||||||
|
{
|
||||||
|
public int first_checkin_id { get; set; }
|
||||||
|
public string first_created_at { get; set; }
|
||||||
|
public int recent_checkin_id { get; set; }
|
||||||
|
public string recent_created_at { get; set; }
|
||||||
|
public string recent_created_at_timezone { get; set; }
|
||||||
|
public float rating_score { get; set; }
|
||||||
|
public string first_had { get; set; }
|
||||||
|
public int count { get; set; }
|
||||||
|
public Beer beer { get; set; }
|
||||||
|
public Brewery brewery { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beer
|
||||||
|
{
|
||||||
|
public int bid { get; set; }
|
||||||
|
public string beer_name { get; set; }
|
||||||
|
public string beer_label { get; set; }
|
||||||
|
public float beer_abv { get; set; }
|
||||||
|
public int beer_ibu { get; set; }
|
||||||
|
public string beer_slug { get; set; }
|
||||||
|
public string beer_style { get; set; }
|
||||||
|
public string beer_description { get; set; }
|
||||||
|
public string created_at { get; set; }
|
||||||
|
public float auth_rating { get; set; }
|
||||||
|
public bool wish_list { get; set; }
|
||||||
|
public float rating_score { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery
|
||||||
|
{
|
||||||
|
public int brewery_id { get; set; }
|
||||||
|
public string brewery_name { get; set; }
|
||||||
|
public string brewery_slug { get; set; }
|
||||||
|
public string brewery_label { get; set; }
|
||||||
|
public string country_name { get; set; }
|
||||||
|
public Contact contact { get; set; }
|
||||||
|
public Location location { get; set; }
|
||||||
|
public int brewery_active { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string facebook { get; set; }
|
||||||
|
public string instagram { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location
|
||||||
|
{
|
||||||
|
public string brewery_city { get; set; }
|
||||||
|
public string brewery_state { get; set; }
|
||||||
|
public float lat { get; set; }
|
||||||
|
public float lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
45
src/Untappd.Net/Responses/UserFriends.cs
Normal file
45
src/Untappd.Net/Responses/UserFriends.cs
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Untappd.Net.Request;
|
||||||
|
|
||||||
|
namespace Untappd.Net.Responses.UserFriends
|
||||||
|
{
|
||||||
|
|
||||||
|
public class UserFriendsRootobject : BaseRequest
|
||||||
|
{
|
||||||
|
protected override string _EndPoint { get { return "v4/user/friends/{0}"; } }
|
||||||
|
public int count { get; set; }
|
||||||
|
public Item[] items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Item
|
||||||
|
{
|
||||||
|
public string friendship_hash { get; set; }
|
||||||
|
public string created_at { get; set; }
|
||||||
|
public User user { get; set; }
|
||||||
|
public Mutual_Friends mutual_friends { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class User
|
||||||
|
{
|
||||||
|
public int uid { get; set; }
|
||||||
|
public string user_name { get; set; }
|
||||||
|
public string location { get; set; }
|
||||||
|
public string bio { get; set; }
|
||||||
|
public int is_supporter { get; set; }
|
||||||
|
public string first_name { get; set; }
|
||||||
|
public string last_name { get; set; }
|
||||||
|
public string relationship { get; set; }
|
||||||
|
public string user_avatar { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Mutual_Friends
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public object[] items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
474
src/Untappd.Net/Responses/UserInfo.cs
Normal file
474
src/Untappd.Net/Responses/UserInfo.cs
Normal file
@@ -0,0 +1,474 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Untappd.Net.Request;
|
||||||
|
|
||||||
|
namespace Untappd.Net.Responses.UserInfo
|
||||||
|
{
|
||||||
|
|
||||||
|
public class ResponseTime
|
||||||
|
{
|
||||||
|
public double time { get; set; }
|
||||||
|
public string measure { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class InitTime
|
||||||
|
{
|
||||||
|
public double time { get; set; }
|
||||||
|
public string measure { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Meta
|
||||||
|
{
|
||||||
|
public int code { get; set; }
|
||||||
|
public ResponseTime response_time { get; set; }
|
||||||
|
public InitTime init_time { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Stats
|
||||||
|
{
|
||||||
|
public int total_badges { get; set; }
|
||||||
|
public int total_friends { get; set; }
|
||||||
|
public int total_checkins { get; set; }
|
||||||
|
public int total_beers { get; set; }
|
||||||
|
public int total_created_beers { get; set; }
|
||||||
|
public int total_followings { get; set; }
|
||||||
|
public int total_photos { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beer
|
||||||
|
{
|
||||||
|
public int bid { get; set; }
|
||||||
|
public string beer_name { get; set; }
|
||||||
|
public string beer_label { get; set; }
|
||||||
|
public double beer_abv { get; set; }
|
||||||
|
public string beer_description { get; set; }
|
||||||
|
public string beer_style { get; set; }
|
||||||
|
public double auth_rating { get; set; }
|
||||||
|
public bool wish_list { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string facebook { get; set; }
|
||||||
|
public string instagram { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location
|
||||||
|
{
|
||||||
|
public string brewery_city { get; set; }
|
||||||
|
public string brewery_state { get; set; }
|
||||||
|
public double lat { get; set; }
|
||||||
|
public double lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery
|
||||||
|
{
|
||||||
|
public int brewery_id { get; set; }
|
||||||
|
public string brewery_name { get; set; }
|
||||||
|
public string brewery_slug { get; set; }
|
||||||
|
public string brewery_label { get; set; }
|
||||||
|
public string country_name { get; set; }
|
||||||
|
public Contact contact { get; set; }
|
||||||
|
public Location location { get; set; }
|
||||||
|
public int brewery_active { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Item
|
||||||
|
{
|
||||||
|
public Beer beer { get; set; }
|
||||||
|
public Brewery brewery { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class RecentBrews
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public List<Item> items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact2
|
||||||
|
{
|
||||||
|
public int foursquare { get; set; }
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public int facebook { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class User2
|
||||||
|
{
|
||||||
|
public int uid { get; set; }
|
||||||
|
public string user_name { get; set; }
|
||||||
|
public string first_name { get; set; }
|
||||||
|
public string last_name { get; set; }
|
||||||
|
public string location { get; set; }
|
||||||
|
public int is_supporter { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
public string bio { get; set; }
|
||||||
|
public object relationship { get; set; }
|
||||||
|
public string user_avatar { get; set; }
|
||||||
|
public int is_private { get; set; }
|
||||||
|
public Contact2 contact { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beer2
|
||||||
|
{
|
||||||
|
public int bid { get; set; }
|
||||||
|
public string beer_name { get; set; }
|
||||||
|
public string beer_label { get; set; }
|
||||||
|
public string beer_style { get; set; }
|
||||||
|
public double beer_abv { get; set; }
|
||||||
|
public int auth_rating { get; set; }
|
||||||
|
public bool wish_list { get; set; }
|
||||||
|
public int beer_active { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact3
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string facebook { get; set; }
|
||||||
|
public string instagram { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location2
|
||||||
|
{
|
||||||
|
public string brewery_city { get; set; }
|
||||||
|
public string brewery_state { get; set; }
|
||||||
|
public double lat { get; set; }
|
||||||
|
public double lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery2
|
||||||
|
{
|
||||||
|
public int brewery_id { get; set; }
|
||||||
|
public string brewery_name { get; set; }
|
||||||
|
public string brewery_slug { get; set; }
|
||||||
|
public string brewery_label { get; set; }
|
||||||
|
public string country_name { get; set; }
|
||||||
|
public Contact3 contact { get; set; }
|
||||||
|
public Location2 location { get; set; }
|
||||||
|
public int brewery_active { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Item3
|
||||||
|
{
|
||||||
|
public string category_name { get; set; }
|
||||||
|
public string category_id { get; set; }
|
||||||
|
public bool is_primary { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Categories
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public List<Item3> items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location3
|
||||||
|
{
|
||||||
|
public string venue_address { get; set; }
|
||||||
|
public string venue_city { get; set; }
|
||||||
|
public string venue_state { get; set; }
|
||||||
|
public string venue_country { get; set; }
|
||||||
|
public double lat { get; set; }
|
||||||
|
public double lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact4
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string venue_url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Foursquare
|
||||||
|
{
|
||||||
|
public string foursquare_id { get; set; }
|
||||||
|
public string foursquare_url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class VenueIcon
|
||||||
|
{
|
||||||
|
public string sm { get; set; }
|
||||||
|
public string md { get; set; }
|
||||||
|
public string lg { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Venue
|
||||||
|
{
|
||||||
|
public int venue_id { get; set; }
|
||||||
|
public string venue_name { get; set; }
|
||||||
|
public string primary_category { get; set; }
|
||||||
|
public string parent_category_id { get; set; }
|
||||||
|
public Categories categories { get; set; }
|
||||||
|
public Location3 location { get; set; }
|
||||||
|
public Contact4 contact { get; set; }
|
||||||
|
public bool public_venue { get; set; }
|
||||||
|
public Foursquare foursquare { get; set; }
|
||||||
|
public VenueIcon venue_icon { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Comments
|
||||||
|
{
|
||||||
|
public int total_count { get; set; }
|
||||||
|
public int count { get; set; }
|
||||||
|
public List<object> items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class User3
|
||||||
|
{
|
||||||
|
public int uid { get; set; }
|
||||||
|
public string user_name { get; set; }
|
||||||
|
public string first_name { get; set; }
|
||||||
|
public string last_name { get; set; }
|
||||||
|
public string bio { get; set; }
|
||||||
|
public string location { get; set; }
|
||||||
|
public string user_avatar { get; set; }
|
||||||
|
public string user_link { get; set; }
|
||||||
|
public string account_type { get; set; }
|
||||||
|
public List<object> brewery_details { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Item4
|
||||||
|
{
|
||||||
|
public int uid { get; set; }
|
||||||
|
public User3 user { get; set; }
|
||||||
|
public int like_id { get; set; }
|
||||||
|
public bool like_owner { get; set; }
|
||||||
|
public string created_at { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Toasts
|
||||||
|
{
|
||||||
|
public int total_count { get; set; }
|
||||||
|
public int count { get; set; }
|
||||||
|
public object auth_toast { get; set; }
|
||||||
|
public List<Item4> items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Media
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public List<object> items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Source
|
||||||
|
{
|
||||||
|
public string app_name { get; set; }
|
||||||
|
public string app_website { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Badges
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public List<object> items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Item2
|
||||||
|
{
|
||||||
|
public int checkin_id { get; set; }
|
||||||
|
public string created_at { get; set; }
|
||||||
|
public string checkin_comment { get; set; }
|
||||||
|
public double rating_score { get; set; }
|
||||||
|
public User2 user { get; set; }
|
||||||
|
public Beer2 beer { get; set; }
|
||||||
|
public Brewery2 brewery { get; set; }
|
||||||
|
public Venue venue { get; set; }
|
||||||
|
public Comments comments { get; set; }
|
||||||
|
public Toasts toasts { get; set; }
|
||||||
|
public Media media { get; set; }
|
||||||
|
public Source source { get; set; }
|
||||||
|
public Badges badges { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Checkins
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public List<Item2> items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Photo
|
||||||
|
{
|
||||||
|
public string photo_img_sm { get; set; }
|
||||||
|
public string photo_img_md { get; set; }
|
||||||
|
public string photo_img_lg { get; set; }
|
||||||
|
public string photo_img_og { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class User4
|
||||||
|
{
|
||||||
|
public int uid { get; set; }
|
||||||
|
public string user_name { get; set; }
|
||||||
|
public string location { get; set; }
|
||||||
|
public string bio { get; set; }
|
||||||
|
public string first_name { get; set; }
|
||||||
|
public string last_name { get; set; }
|
||||||
|
public string user_avatar { get; set; }
|
||||||
|
public string account_type { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beer3
|
||||||
|
{
|
||||||
|
public int bid { get; set; }
|
||||||
|
public string beer_name { get; set; }
|
||||||
|
public string beer_label { get; set; }
|
||||||
|
public double beer_abv { get; set; }
|
||||||
|
public string beer_style { get; set; }
|
||||||
|
public string beer_description { get; set; }
|
||||||
|
public double auth_rating { get; set; }
|
||||||
|
public bool wish_list { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact5
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string facebook { get; set; }
|
||||||
|
public string instagram { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location4
|
||||||
|
{
|
||||||
|
public string brewery_city { get; set; }
|
||||||
|
public string brewery_state { get; set; }
|
||||||
|
public double lat { get; set; }
|
||||||
|
public double lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery3
|
||||||
|
{
|
||||||
|
public int brewery_id { get; set; }
|
||||||
|
public string brewery_name { get; set; }
|
||||||
|
public string brewery_slug { get; set; }
|
||||||
|
public string brewery_label { get; set; }
|
||||||
|
public string country_name { get; set; }
|
||||||
|
public Contact5 contact { get; set; }
|
||||||
|
public Location4 location { get; set; }
|
||||||
|
public int brewery_active { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Item6
|
||||||
|
{
|
||||||
|
public string category_name { get; set; }
|
||||||
|
public string category_id { get; set; }
|
||||||
|
public bool is_primary { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Categories2
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public List<Item6> items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location5
|
||||||
|
{
|
||||||
|
public string venue_address { get; set; }
|
||||||
|
public string venue_city { get; set; }
|
||||||
|
public string venue_state { get; set; }
|
||||||
|
public string venue_country { get; set; }
|
||||||
|
public double lat { get; set; }
|
||||||
|
public double lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact6
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string venue_url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Foursquare2
|
||||||
|
{
|
||||||
|
public string foursquare_id { get; set; }
|
||||||
|
public string foursquare_url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class VenueIcon2
|
||||||
|
{
|
||||||
|
public string sm { get; set; }
|
||||||
|
public string md { get; set; }
|
||||||
|
public string lg { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Venue2
|
||||||
|
{
|
||||||
|
public int venue_id { get; set; }
|
||||||
|
public string venue_name { get; set; }
|
||||||
|
public string primary_category { get; set; }
|
||||||
|
public string parent_category_id { get; set; }
|
||||||
|
public Categories2 categories { get; set; }
|
||||||
|
public Location5 location { get; set; }
|
||||||
|
public Contact6 contact { get; set; }
|
||||||
|
public bool public_venue { get; set; }
|
||||||
|
public Foursquare2 foursquare { get; set; }
|
||||||
|
public VenueIcon2 venue_icon { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Item5
|
||||||
|
{
|
||||||
|
public int photo_id { get; set; }
|
||||||
|
public Photo photo { get; set; }
|
||||||
|
public string created_at { get; set; }
|
||||||
|
public int checkin_id { get; set; }
|
||||||
|
public User4 user { get; set; }
|
||||||
|
public Beer3 beer { get; set; }
|
||||||
|
public Brewery3 brewery { get; set; }
|
||||||
|
public Venue2 venue { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Media2
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public List<Item5> items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact7
|
||||||
|
{
|
||||||
|
public int foursquare { get; set; }
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public int facebook { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class User
|
||||||
|
{
|
||||||
|
public int uid { get; set; }
|
||||||
|
public int id { get; set; }
|
||||||
|
public string user_name { get; set; }
|
||||||
|
public string first_name { get; set; }
|
||||||
|
public string last_name { get; set; }
|
||||||
|
public string user_avatar { get; set; }
|
||||||
|
public string user_avatar_hd { get; set; }
|
||||||
|
public string user_cover_photo { get; set; }
|
||||||
|
public int user_cover_photo_offset { get; set; }
|
||||||
|
public int is_private { get; set; }
|
||||||
|
public string location { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
public string bio { get; set; }
|
||||||
|
public int is_supporter { get; set; }
|
||||||
|
public object relationship { get; set; }
|
||||||
|
public string untappd_url { get; set; }
|
||||||
|
public string account_type { get; set; }
|
||||||
|
public Stats stats { get; set; }
|
||||||
|
public RecentBrews recent_brews { get; set; }
|
||||||
|
public Checkins checkins { get; set; }
|
||||||
|
public Media2 media { get; set; }
|
||||||
|
public Contact7 contact { get; set; }
|
||||||
|
public string date_joined { get; set; }
|
||||||
|
public List<object> settings { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Response
|
||||||
|
{
|
||||||
|
public User user { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class UserInfoRootobject : BaseRequest
|
||||||
|
{
|
||||||
|
protected override string _EndPoint { get { return "v4/user/info/{0}"; } }
|
||||||
|
public Meta meta { get; set; }
|
||||||
|
public List<object> notifications { get; set; }
|
||||||
|
public Response response { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
77
src/Untappd.Net/Responses/UserWishlist.cs
Normal file
77
src/Untappd.Net/Responses/UserWishlist.cs
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Untappd.Net.Request;
|
||||||
|
|
||||||
|
namespace Untappd.Net.Responses.UserWishlist
|
||||||
|
{
|
||||||
|
|
||||||
|
public class UserWishlistRootobject : BaseRequest
|
||||||
|
{
|
||||||
|
public Beers beers { get; set; }
|
||||||
|
protected override string _EndPoint { get { throw new NotImplementedException(); } }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beers
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public Items items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Items
|
||||||
|
{
|
||||||
|
public string created_at { get; set; }
|
||||||
|
public Beer beer { get; set; }
|
||||||
|
public Brewery brewery { get; set; }
|
||||||
|
public object[] friends { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beer
|
||||||
|
{
|
||||||
|
public int bid { get; set; }
|
||||||
|
public string beer_name { get; set; }
|
||||||
|
public string beer_label { get; set; }
|
||||||
|
public float beer_abv { get; set; }
|
||||||
|
public int beer_ibu { get; set; }
|
||||||
|
public string beer_slug { get; set; }
|
||||||
|
public string beer_description { get; set; }
|
||||||
|
public int is_in_production { get; set; }
|
||||||
|
public string beer_style { get; set; }
|
||||||
|
public string created_at { get; set; }
|
||||||
|
public int auth_rating { get; set; }
|
||||||
|
public float rating_score { get; set; }
|
||||||
|
public int rating_count { get; set; }
|
||||||
|
public bool wish_list { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery
|
||||||
|
{
|
||||||
|
public int brewery_id { get; set; }
|
||||||
|
public string brewery_name { get; set; }
|
||||||
|
public string brewery_slug { get; set; }
|
||||||
|
public string brewery_label { get; set; }
|
||||||
|
public string country_name { get; set; }
|
||||||
|
public Contact contact { get; set; }
|
||||||
|
public Location location { get; set; }
|
||||||
|
public int brewery_active { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string facebook { get; set; }
|
||||||
|
public string instagram { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location
|
||||||
|
{
|
||||||
|
public string brewery_city { get; set; }
|
||||||
|
public string brewery_state { get; set; }
|
||||||
|
public float lat { get; set; }
|
||||||
|
public float lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
292
src/Untappd.Net/Responses/VenueInfo.cs
Normal file
292
src/Untappd.Net/Responses/VenueInfo.cs
Normal file
@@ -0,0 +1,292 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Untappd.Net.Request;
|
||||||
|
|
||||||
|
namespace Untappd.Net.Responses.VenueInfo
|
||||||
|
{
|
||||||
|
|
||||||
|
public class VenueInfoRootobject : BaseRequest
|
||||||
|
{
|
||||||
|
public Venue venue { get; set; }
|
||||||
|
protected override string _EndPoint { get { return "v4/venue/info/{0}"; } }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Venue
|
||||||
|
{
|
||||||
|
public int venue_id { get; set; }
|
||||||
|
public string venue_name { get; set; }
|
||||||
|
public string last_updated { get; set; }
|
||||||
|
public string primary_category { get; set; }
|
||||||
|
public Categories categories { get; set; }
|
||||||
|
public Stats stats { get; set; }
|
||||||
|
public Venue_Icon venue_icon { get; set; }
|
||||||
|
public bool public_venue { get; set; }
|
||||||
|
public Location location { get; set; }
|
||||||
|
public Contact contact { get; set; }
|
||||||
|
public Foursquare foursquare { get; set; }
|
||||||
|
public Media media { get; set; }
|
||||||
|
public Top_Beers top_beers { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Categories
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public Item[] items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Item
|
||||||
|
{
|
||||||
|
public string category_name { get; set; }
|
||||||
|
public string category_id { get; set; }
|
||||||
|
public bool is_primary { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Stats
|
||||||
|
{
|
||||||
|
public int total_count { get; set; }
|
||||||
|
public int user_count { get; set; }
|
||||||
|
public int total_user_count { get; set; }
|
||||||
|
public int monthly_count { get; set; }
|
||||||
|
public int weekly_count { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Venue_Icon
|
||||||
|
{
|
||||||
|
public string sm { get; set; }
|
||||||
|
public string md { get; set; }
|
||||||
|
public string lg { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location
|
||||||
|
{
|
||||||
|
public string venue_address { get; set; }
|
||||||
|
public string venue_city { get; set; }
|
||||||
|
public string venue_state { get; set; }
|
||||||
|
public string venue_country { get; set; }
|
||||||
|
public float lat { get; set; }
|
||||||
|
public float lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string venue_url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Foursquare
|
||||||
|
{
|
||||||
|
public string foursquare_id { get; set; }
|
||||||
|
public string foursquare_url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Media
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public Items items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Items
|
||||||
|
{
|
||||||
|
public int photo_id { get; set; }
|
||||||
|
public Photo photo { get; set; }
|
||||||
|
public string created_at { get; set; }
|
||||||
|
public int checkin_id { get; set; }
|
||||||
|
public Beer beer { get; set; }
|
||||||
|
public Brewery brewery { get; set; }
|
||||||
|
public User user { get; set; }
|
||||||
|
public Venue1 venue { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Photo
|
||||||
|
{
|
||||||
|
public string photo_img_sm { get; set; }
|
||||||
|
public string photo_img_md { get; set; }
|
||||||
|
public string photo_img_lg { get; set; }
|
||||||
|
public string photo_img_og { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beer
|
||||||
|
{
|
||||||
|
public int bid { get; set; }
|
||||||
|
public string beer_name { get; set; }
|
||||||
|
public string beer_label { get; set; }
|
||||||
|
public int beer_abv { get; set; }
|
||||||
|
public int beer_ibu { get; set; }
|
||||||
|
public string beer_slug { get; set; }
|
||||||
|
public string beer_description { get; set; }
|
||||||
|
public int is_in_production { get; set; }
|
||||||
|
public int beer_style_id { get; set; }
|
||||||
|
public string beer_style { get; set; }
|
||||||
|
public int auth_rating { get; set; }
|
||||||
|
public bool wish_list { get; set; }
|
||||||
|
public int beer_active { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery
|
||||||
|
{
|
||||||
|
public int brewery_id { get; set; }
|
||||||
|
public string brewery_name { get; set; }
|
||||||
|
public string brewery_slug { get; set; }
|
||||||
|
public string brewery_label { get; set; }
|
||||||
|
public string country_name { get; set; }
|
||||||
|
public Contact1 contact { get; set; }
|
||||||
|
public Location1 location { get; set; }
|
||||||
|
public int brewery_active { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact1
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string facebook { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location1
|
||||||
|
{
|
||||||
|
public string brewery_city { get; set; }
|
||||||
|
public string brewery_state { get; set; }
|
||||||
|
public float lat { get; set; }
|
||||||
|
public float lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class User
|
||||||
|
{
|
||||||
|
public int uid { get; set; }
|
||||||
|
public string user_name { get; set; }
|
||||||
|
public string first_name { get; set; }
|
||||||
|
public string last_name { get; set; }
|
||||||
|
public string user_avatar { get; set; }
|
||||||
|
public string relationship { get; set; }
|
||||||
|
public int is_private { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Venue1
|
||||||
|
{
|
||||||
|
public int venue_id { get; set; }
|
||||||
|
public string venue_name { get; set; }
|
||||||
|
public string primary_category { get; set; }
|
||||||
|
public string parent_category_id { get; set; }
|
||||||
|
public Categories1 categories { get; set; }
|
||||||
|
public Location2 location { get; set; }
|
||||||
|
public Contact2 contact { get; set; }
|
||||||
|
public bool public_venue { get; set; }
|
||||||
|
public Foursquare1 foursquare { get; set; }
|
||||||
|
public Venue_Icon1 venue_icon { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Categories1
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public Item1[] items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Item1
|
||||||
|
{
|
||||||
|
public string category_name { get; set; }
|
||||||
|
public string category_id { get; set; }
|
||||||
|
public bool is_primary { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location2
|
||||||
|
{
|
||||||
|
public string venue_address { get; set; }
|
||||||
|
public string venue_city { get; set; }
|
||||||
|
public string venue_state { get; set; }
|
||||||
|
public string venue_country { get; set; }
|
||||||
|
public float lat { get; set; }
|
||||||
|
public float lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact2
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string venue_url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Foursquare1
|
||||||
|
{
|
||||||
|
public string foursquare_id { get; set; }
|
||||||
|
public string foursquare_url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Venue_Icon1
|
||||||
|
{
|
||||||
|
public string sm { get; set; }
|
||||||
|
public string md { get; set; }
|
||||||
|
public string lg { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Top_Beers
|
||||||
|
{
|
||||||
|
public int offset { get; set; }
|
||||||
|
public int limit { get; set; }
|
||||||
|
public int count { get; set; }
|
||||||
|
public Items1 items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Items1
|
||||||
|
{
|
||||||
|
public string created_at { get; set; }
|
||||||
|
public int total_count { get; set; }
|
||||||
|
public int your_count { get; set; }
|
||||||
|
public Beer1 beer { get; set; }
|
||||||
|
public Brewery1 brewery { get; set; }
|
||||||
|
public Friends friends { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Beer1
|
||||||
|
{
|
||||||
|
public int bid { get; set; }
|
||||||
|
public string beer_name { get; set; }
|
||||||
|
public string beer_label { get; set; }
|
||||||
|
public int beer_abv { get; set; }
|
||||||
|
public int beer_ibu { get; set; }
|
||||||
|
public string beer_slug { get; set; }
|
||||||
|
public string beer_description { get; set; }
|
||||||
|
public int is_in_production { get; set; }
|
||||||
|
public int beer_style_id { get; set; }
|
||||||
|
public string beer_style { get; set; }
|
||||||
|
public int auth_rating { get; set; }
|
||||||
|
public bool wish_list { get; set; }
|
||||||
|
public int beer_active { get; set; }
|
||||||
|
public float rating_score { get; set; }
|
||||||
|
public int rating_count { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Brewery1
|
||||||
|
{
|
||||||
|
public int brewery_id { get; set; }
|
||||||
|
public string brewery_name { get; set; }
|
||||||
|
public string brewery_slug { get; set; }
|
||||||
|
public string brewery_label { get; set; }
|
||||||
|
public string country_name { get; set; }
|
||||||
|
public Contact3 contact { get; set; }
|
||||||
|
public Location3 location { get; set; }
|
||||||
|
public int brewery_active { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Contact3
|
||||||
|
{
|
||||||
|
public string twitter { get; set; }
|
||||||
|
public string facebook { get; set; }
|
||||||
|
public string url { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Location3
|
||||||
|
{
|
||||||
|
public string brewery_city { get; set; }
|
||||||
|
public string brewery_state { get; set; }
|
||||||
|
public float lat { get; set; }
|
||||||
|
public float lng { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Friends
|
||||||
|
{
|
||||||
|
public int count { get; set; }
|
||||||
|
public object[] items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
78
src/Untappd.Net/Untappd.Net.csproj
Normal file
78
src/Untappd.Net/Untappd.Net.csproj
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{D8571A44-2E86-43A3-B64A-2364614C6934}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>Untappd.Net</RootNamespace>
|
||||||
|
<AssemblyName>Untappd.Net</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="RestSharp">
|
||||||
|
<HintPath>..\..\packages\RestSharp.105.0.1\lib\net4\RestSharp.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Client\AuthenticatedUntappdCredentials.cs" />
|
||||||
|
<Compile Include="Client\IUntappdCredentials.cs" />
|
||||||
|
<Compile Include="Client\UnAuthenticatedUntappdCredentials.cs" />
|
||||||
|
<Compile Include="Request\AuthenticatedRequest.cs" />
|
||||||
|
<Compile Include="Request\BaseRequest.cs" />
|
||||||
|
<Compile Include="Responses\BeerInfo.cs" />
|
||||||
|
<Compile Include="Responses\BeerSearch.cs" />
|
||||||
|
<Compile Include="Responses\BreweryInfo.cs" />
|
||||||
|
<Compile Include="Responses\BrewerySearch.cs" />
|
||||||
|
<Compile Include="Responses\UserBadges.cs" />
|
||||||
|
<Compile Include="Responses\UserDistinctBeer.cs" />
|
||||||
|
<Compile Include="Responses\UserFriends.cs" />
|
||||||
|
<Compile Include="Responses\UserInfo.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<Compile Include="Request\Request.cs" />
|
||||||
|
<Compile Include="Responses\UserWishlist.cs" />
|
||||||
|
<Compile Include="Responses\VenueInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="packages.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
||||||
5
src/Untappd.Net/packages.config
Normal file
5
src/Untappd.Net/packages.config
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
|
||||||
|
<package id="RestSharp" version="105.0.1" targetFramework="net45" />
|
||||||
|
</packages>
|
||||||
Reference in New Issue
Block a user