Skip to content

Commit

Permalink
Add Device location Api
Browse files Browse the repository at this point in the history
  • Loading branch information
StenmannsAr committed Apr 10, 2017
1 parent 41a8acf commit 2f083eb
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 65 deletions.
9 changes: 3 additions & 6 deletions Alexa.NET.sln
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
# Visual Studio 15
VisualStudioVersion = 15.0.26403.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{FF85BDE3-45A9-44DB-951B-960ADAA73ED7}"
ProjectSection(SolutionItems) = preProject
global.json = global.json
EndProjectSection
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Alexa.NET", "Alexa.NET\Alexa.NET.xproj", "{C5D40122-BB51-40D8-8934-0468BCC6C92B}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Alexa.NET", "Alexa.NET\Alexa.NET.csproj", "{C5D40122-BB51-40D8-8934-0468BCC6C92B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
27 changes: 27 additions & 0 deletions Alexa.NET/Alexa.NET.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>A simple .NET Core library for handling Alexa Skill request/responses.</Description>
<AssemblyTitle>Alexa.NET</AssemblyTitle>
<VersionPrefix>1.0.0-beta-6</VersionPrefix>
<Authors>Tim Heuer</Authors>
<TargetFramework>netstandard1.6</TargetFramework>
<AssemblyName>Alexa.NET</AssemblyName>
<PackageId>Alexa.NET</PackageId>
<PackageTags>amazon;alexa;echo;dot;echo dot;skills</PackageTags>
<PackageReleaseNotes>Added AskWithCard options</PackageReleaseNotes>
<PackageProjectUrl>https://github.com/timheuer/alexa-skills-dotnet</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/timheuer/alexa-skills-dotnet/blob/master/LICENSE</PackageLicenseUrl>
<RepositoryUrl>https://github.com/timheuer/alexa-skills-dotnet</RepositoryUrl>
<NetStandardImplicitPackageVersion>1.6.0</NetStandardImplicitPackageVersion>
<PackageTargetFallback>$(PackageTargetFallback);dnxcore50</PackageTargetFallback>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
</ItemGroup>

</Project>
21 changes: 0 additions & 21 deletions Alexa.NET/Alexa.NET.xproj

This file was deleted.

3 changes: 3 additions & 0 deletions Alexa.NET/Request/Device.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ namespace Alexa.NET.Request
{
public class Device
{
[JsonProperty("deviceId")]
public string DeviceID { get; set; }

[JsonProperty("supportedInterfaces")]
public Dictionary<string, object> SupportedInterfaces { get; set; }

Expand Down
10 changes: 10 additions & 0 deletions Alexa.NET/Request/Permissions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using Newtonsoft.Json;

namespace Alexa.NET.Request
{
public class Permissions
{
[JsonProperty("consentToken")]
public string ConsentToken { get; set; }
}
}
3 changes: 3 additions & 0 deletions Alexa.NET/Request/System.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ namespace Alexa.NET.Request
{
public class AlexaSystem
{
[JsonProperty("apiEndpoint")]
public string ApiEndpoint { get; set; }

[JsonProperty("application")]
public Application Application { get; set; }

Expand Down
3 changes: 3 additions & 0 deletions Alexa.NET/Request/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ public class User

[JsonProperty("accessToken")]
public string AccessToken { get; set; }

[JsonProperty("permissions")]
public Permissions Permissions { get; set; }
}
}
32 changes: 0 additions & 32 deletions Alexa.NET/project.json

This file was deleted.

6 changes: 0 additions & 6 deletions global.json

This file was deleted.

0 comments on commit 2f083eb

Please sign in to comment.