Added APIHandler

This commit is contained in:
Yorick Rommers
2015-11-27 12:35:52 +01:00
parent 5a1dc5e980
commit badecbeac3
5 changed files with 131 additions and 22 deletions
+27
View File
@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Storage;
namespace HueUWP
{
class APIHandler
{
public static ApplicationData APP_DATA = ApplicationData.Current;
public static ApplicationDataContainer LOCAL_SETTINGS = APP_DATA.LocalSettings;
NetworkHandler nwh;
public APIHandler(NetworkHandler nwh)
{
this.nwh = nwh;
}
public void Register()
{
string id = nwh.RegisterName("Hue", "Kenneth&Yorick").ToString();
//write to file;
}
}
}
+7 -6
View File
@@ -93,6 +93,7 @@
<None Include="project.json" />
</ItemGroup>
<ItemGroup>
<Compile Include="APIHandler.cs" />
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
</Compile>
@@ -132,11 +133,11 @@
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.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>
<!-- 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>
Binary file not shown.
+16 -15
View File
@@ -1,16 +1,17 @@
{
"dependencies": {
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
},
"frameworks": {
"uap10.0": {}
},
"runtimes": {
"win10-arm": {},
"win10-arm-aot": {},
"win10-x86": {},
"win10-x86-aot": {},
"win10-x64": {},
"win10-x64-aot": {}
}
{
"dependencies": {
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0",
"Newtonsoft.Json": "7.0.1"
},
"frameworks": {
"uap10.0": {}
},
"runtimes": {
"win10-arm": {},
"win10-arm-aot": {},
"win10-x86": {},
"win10-x86-aot": {},
"win10-x64": {},
"win10-x64-aot": {}
}
}
+81 -1
View File
@@ -201,6 +201,14 @@
"lib/dotnet/Microsoft.Win32.Primitives.dll": {}
}
},
"Newtonsoft.Json/7.0.1": {
"compile": {
"lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll": {}
},
"runtime": {
"lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll": {}
}
},
"System.AppContext/4.0.0": {
"dependencies": {
"System.Collections": "[4.0.0, )",
@@ -1779,6 +1787,14 @@
"lib/dotnet/Microsoft.Win32.Primitives.dll": {}
}
},
"Newtonsoft.Json/7.0.1": {
"compile": {
"lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll": {}
},
"runtime": {
"lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll": {}
}
},
"System.AppContext/4.0.0": {
"dependencies": {
"System.Collections": "[4.0.0, )",
@@ -3390,6 +3406,14 @@
"lib/dotnet/Microsoft.Win32.Primitives.dll": {}
}
},
"Newtonsoft.Json/7.0.1": {
"compile": {
"lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll": {}
},
"runtime": {
"lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll": {}
}
},
"System.AppContext/4.0.0": {
"dependencies": {
"System.Collections": "[4.0.0, )",
@@ -5006,6 +5030,14 @@
"lib/dotnet/Microsoft.Win32.Primitives.dll": {}
}
},
"Newtonsoft.Json/7.0.1": {
"compile": {
"lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll": {}
},
"runtime": {
"lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll": {}
}
},
"System.AppContext/4.0.0": {
"dependencies": {
"System.Collections": "[4.0.0, )",
@@ -6617,6 +6649,14 @@
"lib/dotnet/Microsoft.Win32.Primitives.dll": {}
}
},
"Newtonsoft.Json/7.0.1": {
"compile": {
"lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll": {}
},
"runtime": {
"lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll": {}
}
},
"System.AppContext/4.0.0": {
"dependencies": {
"System.Collections": "[4.0.0, )",
@@ -8233,6 +8273,14 @@
"lib/dotnet/Microsoft.Win32.Primitives.dll": {}
}
},
"Newtonsoft.Json/7.0.1": {
"compile": {
"lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll": {}
},
"runtime": {
"lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll": {}
}
},
"System.AppContext/4.0.0": {
"dependencies": {
"System.Collections": "[4.0.0, )",
@@ -9844,6 +9892,14 @@
"lib/dotnet/Microsoft.Win32.Primitives.dll": {}
}
},
"Newtonsoft.Json/7.0.1": {
"compile": {
"lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll": {}
},
"runtime": {
"lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll": {}
}
},
"System.AppContext/4.0.0": {
"dependencies": {
"System.Collections": "[4.0.0, )",
@@ -11868,6 +11924,29 @@
"ref/xamarinmac20/_._"
]
},
"Newtonsoft.Json/7.0.1": {
"sha512": "q3V4KLetMLnt1gpAVWgtXnHjKs0UG/RalBc29u2ZKxd5t5Ze4JBL5WiiYIklJyK/5CRiIiNwigVQUo0FgbsuWA==",
"type": "Package",
"files": [
"[Content_Types].xml",
"_rels/.rels",
"lib/net20/Newtonsoft.Json.dll",
"lib/net20/Newtonsoft.Json.xml",
"lib/net35/Newtonsoft.Json.dll",
"lib/net35/Newtonsoft.Json.xml",
"lib/net40/Newtonsoft.Json.dll",
"lib/net40/Newtonsoft.Json.xml",
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
"lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.dll",
"lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.xml",
"lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll",
"lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.xml",
"Newtonsoft.Json.nuspec",
"package/services/metadata/core-properties/49e907fc018c4c7ab632e6d4ad4766f8.psmdcp",
"tools/install.ps1"
]
},
"System.AppContext/4.0.0": {
"sha512": "gUoYgAWDC3+xhKeU5KSLbYDhTdBYk9GssrMSCcWUADzOglW+s0AmwVhOUGt2tL5xUl7ZXoYTPdA88zCgKrlG0A==",
"type": "Package",
@@ -14566,7 +14645,8 @@
},
"projectFileDependencyGroups": {
"": [
"Microsoft.NETCore.UniversalWindowsPlatform >= 5.0.0"
"Microsoft.NETCore.UniversalWindowsPlatform >= 5.0.0",
"Newtonsoft.Json >= 7.0.1"
],
"UAP,Version=v10.0": []
}