samples of .NET framework

ci
Marc CHEVALDONNE 5 years ago
parent 44a390e7c2
commit 5ef1a58359

@ -0,0 +1,411 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2003
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AlertWebAPI", "AlertWebAPI\AlertWebAPI.csproj", "{0467E7C7-C55C-48F4-9962-A04CB1B3885A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestConsole", "TestConsole\TestConsole.csproj", "{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AlertVisualizer.Android", "AlertVisualizer\AlertVisualizer.Android\AlertVisualizer.Android.csproj", "{CA0F9BF2-560E-4A62-9938-0397DE665417}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AlertVisualizer.iOS", "AlertVisualizer\AlertVisualizer.iOS\AlertVisualizer.iOS.csproj", "{D7329688-827F-42E3-8412-7CD0E7BC049B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AlertVisualizer.UWP", "AlertVisualizer\AlertVisualizer.UWP\AlertVisualizer.UWP.csproj", "{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AlertVisualizer", "AlertVisualizer\AlertVisualizer\AlertVisualizer.csproj", "{834DCA0B-36D9-4E50-B685-4E0B5B57024B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AlertModels", "AlertModels\AlertModels.csproj", "{680C25D5-E2D6-4A27-953B-A875C263D34C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
Ad-Hoc|ARM = Ad-Hoc|ARM
Ad-Hoc|iPhone = Ad-Hoc|iPhone
Ad-Hoc|iPhoneSimulator = Ad-Hoc|iPhoneSimulator
Ad-Hoc|x64 = Ad-Hoc|x64
Ad-Hoc|x86 = Ad-Hoc|x86
AppStore|Any CPU = AppStore|Any CPU
AppStore|ARM = AppStore|ARM
AppStore|iPhone = AppStore|iPhone
AppStore|iPhoneSimulator = AppStore|iPhoneSimulator
AppStore|x64 = AppStore|x64
AppStore|x86 = AppStore|x86
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|iPhone = Debug|iPhone
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|iPhone = Release|iPhone
Release|iPhoneSimulator = Release|iPhoneSimulator
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Ad-Hoc|ARM.Build.0 = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Ad-Hoc|x64.Build.0 = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Ad-Hoc|x86.Build.0 = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.AppStore|Any CPU.Build.0 = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.AppStore|ARM.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.AppStore|ARM.Build.0 = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.AppStore|iPhone.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.AppStore|iPhone.Build.0 = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.AppStore|x64.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.AppStore|x64.Build.0 = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.AppStore|x86.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.AppStore|x86.Build.0 = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Debug|ARM.ActiveCfg = Debug|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Debug|ARM.Build.0 = Debug|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Debug|iPhone.Build.0 = Debug|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Debug|x64.ActiveCfg = Debug|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Debug|x64.Build.0 = Debug|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Debug|x86.ActiveCfg = Debug|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Debug|x86.Build.0 = Debug|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Release|Any CPU.Build.0 = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Release|ARM.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Release|ARM.Build.0 = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Release|iPhone.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Release|iPhone.Build.0 = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Release|x64.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Release|x64.Build.0 = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Release|x86.ActiveCfg = Release|Any CPU
{0467E7C7-C55C-48F4-9962-A04CB1B3885A}.Release|x86.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Ad-Hoc|ARM.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Ad-Hoc|x64.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Ad-Hoc|x86.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.AppStore|Any CPU.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.AppStore|ARM.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.AppStore|ARM.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.AppStore|iPhone.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.AppStore|iPhone.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.AppStore|x64.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.AppStore|x64.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.AppStore|x86.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.AppStore|x86.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Debug|ARM.ActiveCfg = Debug|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Debug|ARM.Build.0 = Debug|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Debug|iPhone.Build.0 = Debug|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Debug|x64.ActiveCfg = Debug|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Debug|x64.Build.0 = Debug|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Debug|x86.ActiveCfg = Debug|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Debug|x86.Build.0 = Debug|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Release|Any CPU.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Release|ARM.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Release|ARM.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Release|iPhone.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Release|iPhone.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Release|x64.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Release|x64.Build.0 = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Release|x86.ActiveCfg = Release|Any CPU
{31AA8818-AC68-48DE-B2A0-ACE11D27BDE0}.Release|x86.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|Any CPU.Deploy.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|ARM.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|ARM.Deploy.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|iPhone.Deploy.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|x64.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|x64.Deploy.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|x86.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Ad-Hoc|x86.Deploy.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|Any CPU.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|Any CPU.Deploy.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|ARM.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|ARM.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|ARM.Deploy.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|iPhone.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|iPhone.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|iPhone.Deploy.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|iPhoneSimulator.Deploy.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|x64.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|x64.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|x64.Deploy.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|x86.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|x86.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.AppStore|x86.Deploy.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|ARM.ActiveCfg = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|ARM.Build.0 = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|ARM.Deploy.0 = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|iPhone.Build.0 = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|iPhone.Deploy.0 = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|x64.ActiveCfg = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|x64.Build.0 = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|x64.Deploy.0 = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|x86.ActiveCfg = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|x86.Build.0 = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Debug|x86.Deploy.0 = Debug|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|Any CPU.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|Any CPU.Deploy.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|ARM.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|ARM.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|ARM.Deploy.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|iPhone.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|iPhone.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|iPhone.Deploy.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|x64.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|x64.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|x64.Deploy.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|x86.ActiveCfg = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|x86.Build.0 = Release|Any CPU
{CA0F9BF2-560E-4A62-9938-0397DE665417}.Release|x86.Deploy.0 = Release|Any CPU
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Ad-Hoc|ARM.ActiveCfg = Ad-Hoc|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Ad-Hoc|x64.ActiveCfg = Ad-Hoc|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Ad-Hoc|x86.ActiveCfg = Ad-Hoc|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.AppStore|Any CPU.ActiveCfg = AppStore|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.AppStore|ARM.ActiveCfg = AppStore|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.AppStore|iPhone.Build.0 = AppStore|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
{D7329688-827F-42E3-8412-7CD0E7BC049B}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
{D7329688-827F-42E3-8412-7CD0E7BC049B}.AppStore|x64.ActiveCfg = AppStore|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.AppStore|x86.ActiveCfg = AppStore|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Debug|Any CPU.ActiveCfg = Debug|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Debug|ARM.ActiveCfg = Debug|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Debug|iPhone.ActiveCfg = Debug|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Debug|iPhone.Build.0 = Debug|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Debug|x64.ActiveCfg = Debug|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Debug|x86.ActiveCfg = Debug|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Release|Any CPU.ActiveCfg = Release|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Release|ARM.ActiveCfg = Release|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Release|iPhone.ActiveCfg = Release|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Release|iPhone.Build.0 = Release|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Release|x64.ActiveCfg = Release|iPhone
{D7329688-827F-42E3-8412-7CD0E7BC049B}.Release|x86.ActiveCfg = Release|iPhone
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|Any CPU.ActiveCfg = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|Any CPU.Build.0 = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|Any CPU.Deploy.0 = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|ARM.ActiveCfg = Release|ARM
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|ARM.Build.0 = Release|ARM
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|ARM.Deploy.0 = Release|ARM
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|iPhone.ActiveCfg = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|iPhone.Build.0 = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|iPhone.Deploy.0 = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|x64.ActiveCfg = Release|x64
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|x64.Build.0 = Release|x64
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|x64.Deploy.0 = Release|x64
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|x86.ActiveCfg = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|x86.Build.0 = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Ad-Hoc|x86.Deploy.0 = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|Any CPU.ActiveCfg = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|Any CPU.Build.0 = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|Any CPU.Deploy.0 = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|ARM.ActiveCfg = Release|ARM
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|ARM.Build.0 = Release|ARM
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|ARM.Deploy.0 = Release|ARM
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|iPhone.ActiveCfg = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|iPhone.Build.0 = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|iPhone.Deploy.0 = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|iPhoneSimulator.ActiveCfg = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|iPhoneSimulator.Build.0 = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|iPhoneSimulator.Deploy.0 = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|x64.ActiveCfg = Release|x64
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|x64.Build.0 = Release|x64
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|x64.Deploy.0 = Release|x64
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|x86.ActiveCfg = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|x86.Build.0 = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.AppStore|x86.Deploy.0 = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Debug|Any CPU.ActiveCfg = Debug|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Debug|ARM.ActiveCfg = Debug|ARM
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Debug|ARM.Build.0 = Debug|ARM
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Debug|ARM.Deploy.0 = Debug|ARM
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Debug|iPhone.ActiveCfg = Debug|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Debug|iPhoneSimulator.ActiveCfg = Debug|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Debug|x64.ActiveCfg = Debug|x64
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Debug|x64.Build.0 = Debug|x64
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Debug|x64.Deploy.0 = Debug|x64
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Debug|x86.ActiveCfg = Debug|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Debug|x86.Build.0 = Debug|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Debug|x86.Deploy.0 = Debug|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Release|Any CPU.ActiveCfg = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Release|ARM.ActiveCfg = Release|ARM
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Release|ARM.Build.0 = Release|ARM
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Release|ARM.Deploy.0 = Release|ARM
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Release|iPhone.ActiveCfg = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Release|iPhoneSimulator.ActiveCfg = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Release|x64.ActiveCfg = Release|x64
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Release|x64.Build.0 = Release|x64
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Release|x64.Deploy.0 = Release|x64
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Release|x86.ActiveCfg = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Release|x86.Build.0 = Release|x86
{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}.Release|x86.Deploy.0 = Release|x86
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Ad-Hoc|ARM.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Ad-Hoc|ARM.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Ad-Hoc|x64.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Ad-Hoc|x64.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Ad-Hoc|x86.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Ad-Hoc|x86.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.AppStore|Any CPU.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.AppStore|ARM.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.AppStore|ARM.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.AppStore|iPhone.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.AppStore|x64.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.AppStore|x64.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.AppStore|x86.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.AppStore|x86.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Debug|ARM.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Debug|ARM.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Debug|iPhone.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Debug|x64.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Debug|x64.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Debug|x86.ActiveCfg = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Debug|x86.Build.0 = Debug|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Release|Any CPU.Build.0 = Release|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Release|ARM.ActiveCfg = Release|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Release|ARM.Build.0 = Release|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Release|iPhone.ActiveCfg = Release|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Release|iPhone.Build.0 = Release|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Release|x64.ActiveCfg = Release|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Release|x64.Build.0 = Release|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Release|x86.ActiveCfg = Release|Any CPU
{834DCA0B-36D9-4E50-B685-4E0B5B57024B}.Release|x86.Build.0 = Release|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Ad-Hoc|ARM.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Ad-Hoc|ARM.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Ad-Hoc|x64.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Ad-Hoc|x64.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Ad-Hoc|x86.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Ad-Hoc|x86.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.AppStore|Any CPU.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.AppStore|ARM.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.AppStore|ARM.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.AppStore|iPhone.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.AppStore|x64.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.AppStore|x64.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.AppStore|x86.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.AppStore|x86.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Debug|ARM.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Debug|ARM.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Debug|iPhone.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Debug|x64.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Debug|x64.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Debug|x86.ActiveCfg = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Debug|x86.Build.0 = Debug|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Release|Any CPU.Build.0 = Release|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Release|ARM.ActiveCfg = Release|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Release|ARM.Build.0 = Release|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Release|iPhone.ActiveCfg = Release|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Release|iPhone.Build.0 = Release|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Release|x64.ActiveCfg = Release|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Release|x64.Build.0 = Release|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Release|x86.ActiveCfg = Release|Any CPU
{680C25D5-E2D6-4A27-953B-A875C263D34C}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E34F71D2-44F4-44EC-B23A-D2666E9A1CEE}
EndGlobalSection
EndGlobal

@ -0,0 +1,92 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{CA0F9BF2-560E-4A62-9938-0397DE665417}</ProjectGuid>
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<RootNamespace>AlertVisualizer.Droid</RootNamespace>
<AssemblyName>AlertVisualizer.Android</AssemblyName>
<TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
<AndroidApplication>True</AndroidApplication>
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
<AndroidResgenClass>Resource</AndroidResgenClass>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
<AndroidUseLatestPlatformSdk>true</AndroidUseLatestPlatformSdk>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidLinkMode>None</AndroidLinkMode>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidManagedSymbols>true</AndroidManagedSymbols>
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="2.5.0.122203" />
<PackageReference Include="Xamarin.Android.Support.Design" Version="25.4.0.2" />
<PackageReference Include="Xamarin.Android.Support.v7.AppCompat" Version="25.4.0.2" />
<PackageReference Include="Xamarin.Android.Support.v4" Version="25.4.0.2" />
<PackageReference Include="Xamarin.Android.Support.v7.CardView" Version="25.4.0.2" />
<PackageReference Include="Xamarin.Android.Support.v7.MediaRouter" Version="25.4.0.2" />
</ItemGroup>
<ItemGroup>
<Compile Include="MainActivity.cs" />
<Compile Include="Resources\Resource.Designer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\AboutResources.txt" />
<None Include="Assets\AboutAssets.txt" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\icon.png" />
<AndroidResource Include="Resources\drawable-hdpi\icon.png" />
<AndroidResource Include="Resources\drawable-xhdpi\icon.png" />
<AndroidResource Include="Resources\drawable-xxhdpi\icon.png" />
</ItemGroup>
<ItemGroup>
<None Include="Properties\AndroidManifest.xml" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\layout\Tabbar.axml" />
<AndroidResource Include="Resources\layout\Toolbar.axml" />
<AndroidResource Include="Resources\values\styles.xml">
<SubType>Designer</SubType>
</AndroidResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AlertVisualizer\AlertVisualizer.csproj">
<Project>{FA3DFBB0-5528-47C3-9B50-971B6FD662FC}</Project>
<Name>AlertVisualizer</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\dundlermifflin.jpg" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>

@ -0,0 +1,19 @@
Any raw assets you want to be deployed with your application can be placed in
this directory (and child directories) and given a Build Action of "AndroidAsset".
These files will be deployed with you package and will be accessible using Android's
AssetManager, like this:
public class ReadAsset : Activity
{
protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);
InputStream input = Assets.Open ("my_asset.txt");
}
}
Additionally, some Android functions will automatically load asset files:
Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");

@ -0,0 +1,27 @@
using System;
using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
namespace AlertVisualizer.Droid
{
[Activity(Label = "AlertVisualizer", Icon = "@drawable/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
protected override void OnCreate(Bundle bundle)
{
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;
base.OnCreate(bundle);
global::Xamarin.Forms.Forms.Init(this, bundle);
LoadApplication(new App());
}
}
}

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.AlertVisualizer">
<uses-sdk android:minSdkVersion="15" />
<application android:label="AlertVisualizer.Android"></application>
</manifest>

@ -0,0 +1,34 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Android.App;
// 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("AlertVisualizer.Android")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("AlertVisualizer.Android")]
[assembly: AssemblyCopyright("Copyright © 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
// 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")]
// Add some common permissions, these can be removed if not needed
[assembly: UsesPermission(Android.Manifest.Permission.Internet)]
[assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]

@ -0,0 +1,50 @@
Images, layout descriptions, binary blobs and string dictionaries can be included
in your application as resource files. Various Android APIs are designed to
operate on the resource IDs instead of dealing with images, strings or binary blobs
directly.
For example, a sample Android app that contains a user interface layout (main.xml),
an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
would keep its resources in the "Resources" directory of the application:
Resources/
drawable-hdpi/
icon.png
drawable-ldpi/
icon.png
drawable-mdpi/
icon.png
layout/
main.xml
values/
strings.xml
In order to get the build system to recognize Android resources, set the build action to
"AndroidResource". The native Android APIs do not operate directly with filenames, but
instead operate on resource IDs. When you compile an Android application that uses resources,
the build system will package the resources for distribution and generate a class called
"Resource" that contains the tokens for each one of the resources included. For example,
for the above Resources layout, this is what the Resource class would expose:
public class Resource {
public class drawable {
public const int icon = 0x123;
}
public class layout {
public const int main = 0x456;
}
public class strings {
public const int first_string = 0xabc;
public const int second_string = 0xbcd;
}
}
You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main
to reference the layout/main.xml file, or Resource.strings.first_string to reference the first
string in the dictionary file values/strings.xml.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent">
<Button android:id="@+id/myButton" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/hello" />
</LinearLayout>

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.TabLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/sliding_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:tabIndicatorColor="@android:color/white"
app:tabGravity="fill"
app:tabMode="fixed" />

@ -0,0 +1,9 @@
<android.support.v7.widget.Toolbar
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:popupTheme="@style/ThemeOverlay.AppCompat.Light" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, Click Me!</string>
<string name="app_name">AlertVisualizer.Droid</string>
</resources>

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8" ?>
<resources>
<style name="MainTheme" parent="MainTheme.Base">
</style>
<!-- Base theme applied no matter what API -->
<style name="MainTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
<!--If you are using revision 22.1 please use just windowNoTitle. Without android:-->
<item name="windowNoTitle">true</item>
<!--We will be using the toolbar so no need to show ActionBar-->
<item name="windowActionBar">false</item>
<!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette -->
<!-- colorPrimary is used for the default action bar background -->
<item name="colorPrimary">#2196F3</item>
<!-- colorPrimaryDark is used for the status bar -->
<item name="colorPrimaryDark">#1976D2</item>
<!-- colorAccent is used as the default value for colorControlActivated
which is used to tint widgets -->
<item name="colorAccent">#FF4081</item>
<!-- You can also set colorControlNormal, colorControlActivated
colorControlHighlight and colorSwitchThumbNormal. -->
<item name="windowActionModeOverlay">true</item>
<item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item>
</style>
<style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog">
<item name="colorAccent">#FF4081</item>
</style>
</resources>

@ -0,0 +1,169 @@
<?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)' == '' ">x86</Platform>
<ProjectGuid>{6E6970AA-C6AA-4ADC-9C48-676F4B7B7627}</ProjectGuid>
<OutputType>AppContainerExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>AlertVisualizer.UWP</RootNamespace>
<AssemblyName>AlertVisualizer.UWP</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0.16299.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.16299.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
<EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<PackageCertificateKeyFile>AlertVisualizer.UWP_TemporaryKey.pfx</PackageCertificateKeyFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\ARM\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
<OutputPath>bin\ARM\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<ItemGroup>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
</Compile>
<Compile Include="MainPage.xaml.cs">
<DependentUpon>MainPage.xaml</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
<None Include="AlertVisualizer.UWP_TemporaryKey.pfx" />
</ItemGroup>
<ItemGroup>
<Content Include="dundlermifflin.jpg" />
<Content Include="Properties\Default.rd.xml" />
<Content Include="Assets\LockScreenLogo.scale-100.png" />
<Content Include="Assets\LockScreenLogo.scale-125.png" />
<Content Include="Assets\LockScreenLogo.scale-150.png" />
<Content Include="Assets\LockScreenLogo.scale-200.png" />
<Content Include="Assets\LockScreenLogo.scale-400.png" />
<Content Include="Assets\SplashScreen.scale-100.png" />
<Content Include="Assets\SplashScreen.scale-125.png" />
<Content Include="Assets\SplashScreen.scale-150.png" />
<Content Include="Assets\SplashScreen.scale-200.png" />
<Content Include="Assets\SplashScreen.scale-400.png" />
<Content Include="Assets\Square150x150Logo.scale-100.png" />
<Content Include="Assets\Square150x150Logo.scale-125.png" />
<Content Include="Assets\Square150x150Logo.scale-150.png" />
<Content Include="Assets\Square150x150Logo.scale-200.png" />
<Content Include="Assets\Square150x150Logo.scale-400.png" />
<Content Include="Assets\Square44x44Logo.scale-100.png" />
<Content Include="Assets\Square44x44Logo.scale-125.png" />
<Content Include="Assets\Square44x44Logo.scale-150.png" />
<Content Include="Assets\Square44x44Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.scale-400.png" />
<Content Include="Assets\Square44x44Logo.targetsize-16_altform-unplated.png" />
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="Assets\Square44x44Logo.targetsize-32_altform-unplated.png" />
<Content Include="Assets\Square44x44Logo.targetsize-48_altform-unplated.png" />
<Content Include="Assets\Square44x44Logo.targetsize-256_altform-unplated.png" />
<Content Include="Assets\StoreLogo.png" />
<Content Include="Assets\Wide310x150Logo.scale-100.png" />
<Content Include="Assets\Wide310x150Logo.scale-125.png" />
<Content Include="Assets\Wide310x150Logo.scale-150.png" />
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
<Content Include="Assets\Wide310x150Logo.scale-400.png" />
<Content Include="selfie.jpg" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="MainPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.NotificationHubs">
<Version>2.0.0-preview1</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="2.5.0.122203" />
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.0.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AlertVisualizer\AlertVisualizer.csproj">
<Project>{FA3DFBB0-5528-47C3-9B50-971B6FD662FC}</Project>
<Name>AlertVisualizer</Name>
</ProjectReference>
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
</Project>

@ -0,0 +1,8 @@
<Application
x:Class="AlertVisualizer.UWP.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:AlertVisualizer.UWP"
RequestedTheme="Light">
</Application>

@ -0,0 +1,101 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
namespace AlertVisualizer.UWP
{
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// </summary>
sealed partial class App : Application
{
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
public App()
{
this.InitializeComponent();
this.Suspending += OnSuspending;
}
/// <summary>
/// Invoked when the application is launched normally by the end user. Other entry points
/// will be used such as when the application is launched to open a specific file.
/// </summary>
/// <param name="e">Details about the launch request and process.</param>
protected override void OnLaunched(LaunchActivatedEventArgs e)
{
Frame rootFrame = Window.Current.Content as Frame;
// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (rootFrame == null)
{
// Create a Frame to act as the navigation context and navigate to the first page
rootFrame = new Frame();
rootFrame.NavigationFailed += OnNavigationFailed;
Xamarin.Forms.Forms.Init(e);
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
{
//TODO: Load state from previously suspended application
}
// Place the frame in the current Window
Window.Current.Content = rootFrame;
}
if (rootFrame.Content == null)
{
// When the navigation stack isn't restored navigate to the first page,
// configuring the new page by passing required information as a navigation
// parameter
rootFrame.Navigate(typeof(MainPage), e.Arguments);
}
// Ensure the current window is active
Window.Current.Activate();
}
/// <summary>
/// Invoked when Navigation to a certain page fails
/// </summary>
/// <param name="sender">The Frame which failed navigation</param>
/// <param name="e">Details about the navigation failure</param>
void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
{
throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
}
/// <summary>
/// Invoked when application execution is being suspended. Application state is saved
/// without knowing whether the application will be terminated or resumed with the contents
/// of memory still intact.
/// </summary>
/// <param name="sender">The source of the suspend request.</param>
/// <param name="e">Details about the suspend request.</param>
private void OnSuspending(object sender, SuspendingEventArgs e)
{
var deferral = e.SuspendingOperation.GetDeferral();
//TODO: Save application state and stop any background activity
deferral.Complete();
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 431 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 758 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1019 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 563 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 658 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 921 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

@ -0,0 +1,15 @@
<forms:WindowsPage
x:Class="AlertVisualizer.UWP.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:forms="using:Xamarin.Forms.Platform.UWP"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:AlertVisualizer.UWP"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
</Grid>
</forms:WindowsPage>

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
namespace AlertVisualizer.UWP
{
public sealed partial class MainPage
{
public MainPage()
{
this.InitializeComponent();
LoadApplication(new AlertVisualizer.App());
}
}
}

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
IgnorableNamespaces="uap mp">
<Identity
Name="ec0cc741-fd3e-485c-81be-68815c480690"
Publisher="CN=Pierce Boggan"
Version="1.0.0.0" />
<mp:PhoneIdentity PhoneProductId="ec0cc741-fd3e-485c-81be-68815c480690" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
<Properties>
<DisplayName>AlertVisualizer.UWP</DisplayName>
<PublisherDisplayName>Pierce Boggan</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
</Dependencies>
<Resources>
<Resource Language="x-generate"/>
</Resources>
<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="AlertVisualizer.UWP.App">
<uap:VisualElements
DisplayName="AlertVisualizer.UWP"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png"
Description="AlertVisualizer.UWP"
BackgroundColor="transparent">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
<uap:SplashScreen Image="Assets\SplashScreen.png" />
</uap:VisualElements>
</Application>
</Applications>
<Capabilities>
<Capability Name="internetClient" />
</Capabilities>
</Package>

@ -0,0 +1,29 @@
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("AlertVisualizer.UWP")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("AlertVisualizer.UWP")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 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")]
[assembly: ComVisible(false)]

@ -0,0 +1,31 @@
<!--
This file contains Runtime Directives used by .NET Native. The defaults here are suitable for most
developers. However, you can modify these parameters to modify the behavior of the .NET Native
optimizer.
Runtime Directives are documented at http://go.microsoft.com/fwlink/?LinkID=391919
To fully enable reflection for App1.MyClass and all of its public/private members
<Type Name="App1.MyClass" Dynamic="Required All"/>
To enable dynamic creation of the specific instantiation of AppClass<T> over System.Int32
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
Using the Namespace directive to apply reflection policy to all the types in a particular namespace
<Namespace Name="DataClasses.ViewModels" Seralize="All" />
-->
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
<Application>
<!--
An Assembly element with Name="*Application*" applies to all assemblies in
the application package. The asterisks are not wildcards.
-->
<Assembly Name="*Application*" Dynamic="Required All" />
<!-- Add your application specific runtime directives here. -->
</Application>
</Directives>

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

@ -0,0 +1,131 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{D7329688-827F-42E3-8412-7CD0E7BC049B}</ProjectGuid>
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Exe</OutputType>
<RootNamespace>AlertVisualizer.iOS</RootNamespace>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
<AssemblyName>AlertVisualizer.iOS</AssemblyName>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<MtouchArch>x86_64</MtouchArch>
<MtouchLink>None</MtouchLink>
<MtouchDebug>true</MtouchDebug>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\iPhoneSimulator\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<MtouchLink>None</MtouchLink>
<MtouchArch>x86_64</MtouchArch>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\iPhone\Debug</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<MtouchArch>ARM64</MtouchArch>
<CodesignKey>iPhone Developer</CodesignKey>
<MtouchDebug>true</MtouchDebug>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\iPhone\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<MtouchArch>ARM64</MtouchArch>
<ConsolePause>false</ConsolePause>
<CodesignKey>iPhone Developer</CodesignKey>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">
<DebugType>none</DebugType>
<Optimize>True</Optimize>
<OutputPath>bin\iPhone\Ad-Hoc</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
<MtouchArch>ARM64</MtouchArch>
<BuildIpa>True</BuildIpa>
<CodesignProvision>Automatic:AdHoc</CodesignProvision>
<CodesignKey>iPhone Distribution</CodesignKey>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|iPhone' ">
<DebugType>none</DebugType>
<Optimize>True</Optimize>
<OutputPath>bin\iPhone\AppStore</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
<MtouchArch>ARM64</MtouchArch>
<CodesignProvision>Automatic:AppStore</CodesignProvision>
<CodesignKey>iPhone Distribution</CodesignKey>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
</PropertyGroup>
<ItemGroup>
<Compile Include="Main.cs" />
<Compile Include="AppDelegate.cs" />
<None Include="Entitlements.plist" />
<None Include="Info.plist" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\Default-568h%402x.png" />
<BundleResource Include="Resources\Default-Portrait.png" />
<BundleResource Include="Resources\Default-Portrait%402x.png" />
<BundleResource Include="Resources\Default.png" />
<BundleResource Include="Resources\Default%402x.png" />
<BundleResource Include="Resources\Icon-60%402x.png" />
<BundleResource Include="Resources\Icon-60%403x.png" />
<BundleResource Include="Resources\Icon-76.png" />
<BundleResource Include="Resources\Icon-76%402x.png" />
<BundleResource Include="Resources\Icon-Small-40.png" />
<BundleResource Include="Resources\Icon-Small-40%402x.png" />
<BundleResource Include="Resources\Icon-Small-40%403x.png" />
<BundleResource Include="Resources\Icon-Small.png" />
<BundleResource Include="Resources\Icon-Small%402x.png" />
<BundleResource Include="Resources\Icon-Small%403x.png" />
<InterfaceDefinition Include="Resources\LaunchScreen.storyboard" />
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Xamarin.iOS" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="2.5.0.122203" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
<ItemGroup>
<ProjectReference Include="..\AlertVisualizer\AlertVisualizer.csproj">
<Project>{FA3DFBB0-5528-47C3-9B50-971B6FD662FC}</Project>
<Name>AlertVisualizer</Name>
</ProjectReference>
</ItemGroup>
</Project>

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;
namespace AlertVisualizer.iOS
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// application events from iOS.
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
//
// This method is invoked when the application has loaded and is ready to run. In this
// method you should instantiate the window, load the UI into it and then make the window
// visible.
//
// You have 17 seconds to return from this method, or iOS will terminate your application.
//
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
LoadApplication(new App());
return base.FinishedLaunching(app, options);
}
}
}

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
</dict>
</plist>

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>MinimumOSVersion</key>
<string>10.3</string>
<key>CFBundleDisplayName</key>
<string>AlertVisualizer</string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.AlertVisualizer</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>CFBundleIconFiles</key>
<array>
<string>Icon-60@2x</string>
<string>Icon-60@3x</string>
<string>Icon-76</string>
<string>Icon-76@2x</string>
<string>Default</string>
<string>Default@2x</string>
<string>Default-568h@2x</string>
<string>Default-Portrait</string>
<string>Default-Portrait@2x</string>
<string>Icon-Small-40</string>
<string>Icon-Small-40@2x</string>
<string>Icon-Small-40@3x</string>
<string>Icon-Small</string>
<string>Icon-Small@2x</string>
<string>Icon-Small@3x</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>CFBundleName</key>
<string>AlertVisualizer</string>
</dict>
</plist>

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;
namespace AlertVisualizer.iOS
{
public class Application
{
// This is the main entry point of the application.
static void Main(string[] args)
{
// if you want to use a different Application Delegate class from "AppDelegate"
// you can specify it here.
UIApplication.Main(args, null, "AppDelegate");
}
}
}

@ -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("AlertVisualizer.iOS")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("AlertVisualizer.iOS")]
[assembly: AssemblyCopyright("Copyright © 2014")]
[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("72bdc44f-c588-44f3-b6df-9aace7daafdd")]
// 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")]

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 729 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 955 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6245" systemVersion="13F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="X5k-f2-b5h">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6238"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="gAE-YM-kbH">
<objects>
<viewController id="X5k-f2-b5h" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Y8P-hJ-Z43"/>
<viewControllerLayoutGuide type="bottom" id="9ZL-r4-8FZ"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="yd7-JS-zBw">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" misplaced="YES" image="Icon-60.png" translatesAutoresizingMaskIntoConstraints="NO" id="23">
<rect key="frame" x="270" y="270" width="60" height="60"/>
<rect key="contentStretch" x="0.0" y="0.0" width="0.0" height="0.0"/>
</imageView>
</subviews>
<color key="backgroundColor" red="0.20392156862745098" green="0.59607843137254901" blue="0.85882352941176465" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="23" firstAttribute="centerY" secondItem="yd7-JS-zBw" secondAttribute="centerY" priority="1" id="39"/>
<constraint firstItem="23" firstAttribute="centerX" secondItem="yd7-JS-zBw" secondAttribute="centerX" priority="1" id="41"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="XAI-xm-WK6" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="349" y="339"/>
</scene>
</scenes>
<resources>
<image name="Icon-60.png" width="180" height="180"/>
</resources>
</document>

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Xamarin.Forms" version="2.4.0.266-pre1" targetFramework="xamarinios10" />
</packages>

@ -0,0 +1,33 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
<PackageReference Include="Xamarin.Forms" Version="2.5.0.122203" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\AlertModels\AlertModels.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Condition=" '$(EnableDefaultCompileItems)' == 'true' " Update="App.xaml.cs">
<DependentUpon>*.xaml</DependentUpon>
</Compile>
<Compile Condition=" '$(EnableDefaultCompileItems)' == 'true' " Update="MainPage.xaml.cs">
<DependentUpon>*.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="AboutPage.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
<EmbeddedResource Update="AlertsView.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
</ItemGroup>
</Project>

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="AlertVisualizer.AlertsView"
Appearing="AlertsView_Appearing">
<ContentPage.Content>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Label Text="Alerts"/>
<ListView Grid.Row="1"
ItemsSource="{Binding AlertItems}"
ItemSelected="AlertsView_ItemSelected">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Label Text="Name:"/>
<Label Text="Author:" Grid.Row="1"/>
<Label Text="Type:" Grid.Row="2"/>
<Label Text="Date:" Grid.Row="3"/>
<Label Text="Done:" Grid.Row="4"/>
<Label Text="{Binding Name}" Grid.Column="1"/>
<Label Text="{Binding SignaledBy}" Grid.Row="1" Grid.Column="1"/>
<Label Text="{Binding Type}" Grid.Row="2" Grid.Column="1"/>
<Label Text="{Binding Date}" Grid.Row="3" Grid.Column="1"/>
<Label Text="{Binding IsManaged}" Grid.Row="4" Grid.Column="1"/>
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Grid>
</ContentPage.Content>
</ContentPage>

@ -0,0 +1,106 @@
using AlertModels;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace AlertVisualizer
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class AlertsView : ContentPage
{
public AlertsView ()
{
InitializeComponent ();
BindingContext = this;
}
/// <summary>
/// Token obtenu grâce au login/password
/// </summary>
private string Token
{
get { return (Application.Current as App).Token; }
set { (Application.Current as App).Token = value; }
}
/// <summary>
/// client Http qui permettra de lancer les requêtes (Get, Post, Put, Delete)
/// </summary>
HttpClient Client { get { return (Application.Current as App).Client; } }
public ObservableCollection<AlertItem> AlertItems { get; }
= new ObservableCollection<AlertItem>();
private async void AlertsView_Appearing(object sender, EventArgs e)
{
await UpdateAlerts();
}
private async Task UpdateAlerts()
{
AlertItems.Clear();
foreach (var alert in await GetAll())
{
AlertItems.Add(alert);
}
}
private async void AlertsView_ItemSelected(object sender, SelectedItemChangedEventArgs e)
{
ListView maListView = (sender as ListView);
if (maListView == null) return;
AlertItem item = (maListView.SelectedItem as AlertItem);
if (item == null) return;
item.IsManaged = !item.IsManaged;
await UpdateItem(item.Id, item);
await UpdateAlerts();
}
public async Task<List<AlertItem>> GetAll()
{
var items = new List<AlertItem>();
var requestMessage = new HttpRequestMessage(HttpMethod.Get, $"{App.BaseUri}api/alert");
requestMessage.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Token);
var alertsResponse = await Client.SendAsync(requestMessage);
if (HttpStatusCode.OK != alertsResponse.StatusCode) throw new NotSupportedException();
var alertsResponseString = await alertsResponse.Content.ReadAsStringAsync();
var alertsResponseJson = JArray.Parse(alertsResponseString);
items = JsonConvert.DeserializeObject<List<AlertItem>>(alertsResponseString);
return items;
}
public async Task UpdateItem(Guid id, AlertItem updatedItem)
{
var json = JsonConvert.SerializeObject(updatedItem);
//var response = await client.PutAsync($"{baseUri}api/alert/{id}", new StringContent(json, Encoding.UTF8, "application/json"));
//if (HttpStatusCode.OK != response.StatusCode) throw new NotSupportedException();
var requestMessage = new HttpRequestMessage(HttpMethod.Put, $"{App.BaseUri}api/alert/{id}");
requestMessage.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Token);
requestMessage.Content = new StringContent(json, Encoding.UTF8, "application/json");
var alertResponse = await Client.SendAsync(requestMessage);
if (HttpStatusCode.NoContent != alertResponse.StatusCode) throw new NotSupportedException();
}
}
}

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<Application xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="AlertVisualizer.App">
<Application.Resources>
<ResourceDictionary>
<Style TargetType="Button">
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>

@ -0,0 +1,54 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using Xamarin.Forms;
namespace AlertVisualizer
{
public partial class App : Application
{
/// <summary>
/// Token obtenu grâce au login/password
/// </summary>
internal string Token
{
get;
set;
}
/// <summary>
/// client Http qui permettra de lancer les requêtes (Get, Post, Put, Delete)
/// </summary>
internal HttpClient Client { get; } = new HttpClient() { MaxResponseContentBufferSize = 256000 };
/// <summary>
/// Uri de base (vers le serveur sur Azure)
/// </summary>
internal const string BaseUri = @"http://alertwebapi20180205014115.azurewebsites.net/";
public App ()
{
InitializeComponent();
MainPage = new NavigationPage(new MainPage());
}
protected override void OnStart ()
{
// Handle when your app starts
}
protected override void OnSleep ()
{
// Handle when your app sleeps
}
protected override void OnResume ()
{
// Handle when your app resumes
}
}
}

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:AlertVisualizer"
x:Class="AlertVisualizer.MainPage">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Image Source="dundlermifflin.jpg"
Grid.ColumnSpan="2"/>
<Label Text="Login : " Grid.Row="1" HorizontalOptions="End" Margin="4"
VerticalOptions="Center"/>
<Entry x:Name="entryLogin" Margin="4"
Grid.Row="1" Grid.Column="1" HorizontalOptions="FillAndExpand"
VerticalOptions="Center"
Placeholder="Enter your login here !"/>
<Label Text="Password : " Grid.Row="2" HorizontalOptions="End" Margin="4"
VerticalOptions="Center"/>
<Entry x:Name="entryPassword" Margin="4"
Grid.Row="2" Grid.Column="1" HorizontalOptions="FillAndExpand"
VerticalOptions="Center"
IsPassword="True" Placeholder="Enter your password here !"/>
<Label x:Name="labelConnectionResult" Grid.Row="3" Grid.ColumnSpan="2"
HorizontalOptions="Center" IsVisible="False"/>
<ActivityIndicator x:Name="activityIndicator"
Grid.Row="3" Grid.ColumnSpan="2"
IsVisible="true" HeightRequest="20"
VerticalOptions="Center" IsRunning="True"
HorizontalOptions="CenterAndExpand"
WidthRequest="400"/>
<Button Grid.Row="4" Grid.ColumnSpan="2" Text="OK" Margin="4"
Clicked="ButtonOKClicked" />
</Grid>
</ContentPage>

@ -0,0 +1,127 @@
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace AlertVisualizer
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
/// <summary>
/// méthode abonnée via le XAML (cf. event Clicked dans <Button.../>)
/// Cette méthode est donc appelée à chaque fois que vous cliquerez sur OK.
///
/// note : cette méthode est déclarée 'async', i.e. asynchrone pour ne pas bloquer
/// l'interface graphique (l'application reste responsive malgré le calcul de GetToken).
/// </summary>
/// <param name="sender">indispensable mais inutile ici</param>
/// <param name="e">indispensable mais inutile ici</param>
private async void ButtonOKClicked(object sender, EventArgs e)
{
labelConnectionResult.IsVisible = false;
activityIndicator.IsVisible = true;
activityIndicator.IsRunning = true;
//appel de GetToken avec le login rentré dans entryLogin (cf. XAML)
// et le password rentré dans entryPassword (cf. XAML)
HttpStatusCode statusCode =
await GetToken(entryLogin.Text, entryPassword.Text);
activityIndicator.IsVisible = false;
activityIndicator.IsRunning = false;
labelConnectionResult.IsVisible = true;
//on évalue le résultat de GetToken
// si == Unauthorized, alors le login/password rentrés étaient non connus
// on met donc à jour le labelConnectionResult (cf. XAML) pour renseigner l'utilisateur
if (statusCode == HttpStatusCode.Unauthorized)
{
labelConnectionResult.Text = "Le login/password fourni ne correspond à aucun compte connu";
return;
}
if (statusCode == HttpStatusCode.OK)
{
labelConnectionResult.Text = "Connection réussie !";
await Task.Delay(1000);
//attention, pour que ça marche, vérifiez que dans le constructeur de App
//(dans App.xaml.cs), vous avez bien modifié la ligne :
//MainPage = new MainPage();
//en :
//MainPage = new NavigationPage(new MainPage());
await Navigation.PushAsync(new AlertsView());
//autre solution, sans la pile de navigation
//(Application.Current as App).MainPage = new AlertsView();
}
}
/// <summary>
/// client Http qui permettra de lancer les requêtes (Get, Post, Put, Delete)
/// </summary>
HttpClient Client { get { return (Application.Current as App).Client; } }
/// <summary>
/// Token obtenu grâce au login/password
/// </summary>
private string Token
{
get { return (Application.Current as App).Token; }
set { (Application.Current as App).Token = value; }
}
/// <summary>
/// méthode qui essaye d'attribuer un Token au login/password fourni
/// </summary>
/// <param name="login">login de l'utilisateur</param>
/// <param name="password">password de l'utilisateur</param>
/// <returns>status code de l'opération : Unauthorized si échec, OK si réussie</returns>
private async Task<HttpStatusCode> GetToken(string login, string password)
{
//triche pour faire croire que c'est une opération importante
await Task.Delay(2000);
//construction du bodyString contenant le login/password
var bodyString = $@"{{username: ""{login}"", password: ""{password}""}}";
//envoie de la requête Post avec le login/password
var response = await Client.PostAsync($"{App.BaseUri}api/token",
new StringContent(bodyString, Encoding.UTF8, "application/json"));
//affichage en Debug du StatusCode obtenu (Unauthorized ou OK)
Debug.WriteLine(response.StatusCode);
//si échec (Unauthorized), Token est donc null et on rend Unauthorized
if (response.StatusCode == HttpStatusCode.Unauthorized)
{
Token = null;
return response.StatusCode;
}
//sinon, on parse le Token
var responseString = await response.Content.ReadAsStringAsync();
var responseJson = JObject.Parse(responseString);
Token = (string)responseJson["token"];
//on l'affiche en Debug
Debug.WriteLine(Token);
//on rend OK
return response.StatusCode;
}
}
}

@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.3" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.1" />
</ItemGroup>
</Project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<NameOfLastUsedPublishProfile>AlertWebAPI20180205014115 - Web Deploy</NameOfLastUsedPublishProfile>
</PropertyGroup>
</Project>

@ -0,0 +1,272 @@
// ========================================================================
//
// Copyright (C) 2017-2018 MARC CHEVALDONNE
// marc.chevaldonne.free.fr
//
// Module : AlertController.cs
// Author : Marc Chevaldonné
// Creation date : 2018-02-12
//
// ========================================================================
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using AlertWebAPI.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
//using Microsoft.Azure.NotificationHubs;
//using Microsoft.Azure.Mobile.Server.Config;
//using Microsoft.Azure.Mobile.Server;
namespace AlertWebAPI.Controllers
{
/// <summary>
/// controller to access the "alerts" database through the web service
/// </summary>
[Authorize] //"authorize" does not allow anonymous use of the public methods of AlertController
[Route("api/alert")]
public class AlertController : Controller
{
/// <summary>
/// context to the EntityFramework "alerts" database
/// </summary>
private readonly AlertDbContext context;
/// <summary>
/// constructor that will be automatically called by the web api when needed
/// </summary>
/// <param name="context">context to the EntityFramework database</param>
public AlertController(AlertDbContext context)
{
this.context = context;
//fills the database with stubbed data if it is empty
StubData(context);
}
//[Conditional("DEBUG")]
private void StubData(AlertDbContext context)
{
if (context.AlertItems.Count() == 0)
{
InitializeData(context);
context.SaveChanges();
}
}
/// <summary>
/// adds three fake alerts to the database
/// </summary>
/// <param name="context"></param>
private void InitializeData(AlertDbContext context)
{
context.AlertItems.Add(new AlertItem
{
Id = new Guid("D61C83CA-1BFB-43EB-A952-C0364D77E40F"),
Name = "Alert 1",
Date = new DateTime(2018, 2, 4, 22, 53, 00),
Decription = "une petite alerte...",
Type = AlertType.Low,
IsManaged = false,
SignaledBy = "Dwight Schrute"
});
context.AlertItems.Add(new AlertItem
{
Id = new Guid("9E1F9662-02C0-435C-8027-0062BAB38143"),
Name = "Alert 2",
Date = new DateTime(2018, 2, 4, 22, 55, 00),
Decription = "une alerte...",
Type = AlertType.Medium,
IsManaged = false,
SignaledBy = "Dwight Schrute"
});
context.AlertItems.Add(new AlertItem
{
Id = new Guid("371E0CBC-F339-433B-8629-3C5A38DC2822"),
Name = "Alert 3",
Date = new DateTime(2018, 2, 4, 22, 56, 00),
Decription = "une grosse alerte...",
Type = AlertType.High,
IsManaged = false,
SignaledBy = "Dwight Schrute"
});
context.AlertItems.Add(new AlertItem
{
Id = new Guid("79CEF2C8-4CC6-4A95-8DA8-B00DEDB5E3A8"),
Name = "Alert 4",
Date = new DateTime(2018, 3, 5, 17, 11, 00),
Decription = "une alerte de ouf...",
Type = AlertType.High,
IsManaged = false,
SignaledBy = "Michael Scott"
});
}
/// <summary>
/// gets all the alerts in the database
/// GET: api/<controller>
/// </summary>
/// <returns>a collection of alerts</returns>
[HttpGet]
public IEnumerable<AlertItem> GetAll()
{
return context.AlertItems.ToList();
}
//the previous method could have used IActionResult as a return parameter
//IActionResult allows methods to have different methods to use (NotFound, ObjectResult, BadRequest, NoContentResult, Ok...)
//[HttpGet]
//public IActionResult GetAll()
//{
// return new ObjectResult(context.AlertItems.ToList());
//}
/// <summary>
/// get an alert by giving its id
/// GET api/<controller>/5
/// {id} indicates the part of the request representing the id
/// </summary>
/// <param name="id">the id of the alert to get</param>
/// <returns>the alert owning this id or null</returns>
[HttpGet("{id}", Name = "GetAlert")]
public IActionResult GetById(Guid id)
{
var alertItem = context.AlertItems.FirstOrDefault(alert => alert.Id == id);
if(alertItem == null)
{
return NotFound();
}
return new ObjectResult(alertItem);
}
/// <summary>
/// a post request allows to add a new alert in the database
/// POST api/<controller>
/// </summary>
/// <param name="alert">the alert to add</param>
/// <returns></returns>
[HttpPost]
public IActionResult Post([FromBody]AlertItem alert)
{
//returns a BadRequest if the alert to add is null
if (alert == null)
{
return BadRequest();
}
//adds the alert to the database
context.AlertItems.Add(alert);
context.SaveChanges();
//await PushMethode(alert);
//returns the route allowing to access this alert
//the route is defined as "GetAlert", defined in the previous methode GetById
return CreatedAtRoute("GetAlert", new { id = alert.Id }, alert);
}
//private async System.Threading.Tasks.Task PushMethode(AlertItem alert)
//{
// //// Get the settings for the server project.
// //System.Web.Http.HttpConfiguration config = this.Configuration;
// //MobileAppSettingsDictionary settings =
// // this.Configuration.GetMobileAppSettingsProvider().GetMobileAppSettings();
// //// Get the Notification Hubs credentials for the mobile app.
// //string notificationHubName = settings.NotificationHubName;
// //string notificationHubConnection = settings
// // .Connections[MobileAppSettingsKeys.NotificationHubConnectionString].ConnectionString;
// // Create a new Notification Hub client.
// NotificationHubClient hub = NotificationHubClient
// //.CreateClientFromConnectionString(notificationHubConnection, notificationHubName);
// .CreateClientFromConnectionString(@"Endpoint=sb://alertsetsis.servicebus.windows.net/;SharedAccessKeyName=DefaultFullSharedAccessSignature;SharedAccessKey=T83QPDWgowEYoQYMyWvKSJte1/wMsiE8Opa0RCK8AZs=",
// "alertsetsisnotificationhub");
// // Send the message so that all template registrations that contain "messageParam"
// // receive the notifications. This includes APNS, GCM, WNS, and MPNS template registrations.
// Dictionary<string, string> templateParams = new Dictionary<string, string>();
// templateParams["messageParam"] = $"new alert: {alert.Name}";//item.Text + " was added to the list.";
// try
// {
// // Send the push notification and log the results.
// var result = await hub.SendTemplateNotificationAsync(templateParams);
// // Write the success result to the logs.
// //config.Services.GetTraceWriter().Info(result.State.ToString());
// }
// catch (System.Exception ex)
// {
// // Write the failure result to the logs.
// //config.Services.GetTraceWriter()
// // .Error(ex.Message, null, "Push.SendAsync Error");
// }
//}
/// <summary>
/// updates an alert
/// PUT api/<controller>/5
/// </summary>
/// <param name="id">the id of the alert to update</param>
/// <param name="item">the alert to update</param>
/// <returns></returns>
[HttpPut("{id}")]
public IActionResult Put(Guid id, [FromBody]AlertItem item)
{
//returns a BadRequest if the alert is null or does not have the good id
if (item == null || item.Id != id)
{
return BadRequest();
}
//gets the alert in the database with the given id
var alert = context.AlertItems.FirstOrDefault(a => a.Id == id);
if (alert == null)
{
return NotFound();
}
//updates the alert
alert.Date = item.Date;
alert.Decription = item.Decription;
alert.IsManaged = item.IsManaged;
alert.ManagedBy = item.ManagedBy;
alert.Name = item.Name;
alert.SignaledBy = item.SignaledBy;
alert.Type = item.Type;
context.AlertItems.Update(alert);
context.SaveChanges();
return new NoContentResult();
}
/// <summary>
/// deletes an alert in the database
/// DELETE api/<controller>/5
/// </summary>
/// <param name="id">the id of the alert to delete</param>
/// <returns></returns>
[HttpDelete("{id}")]
public IActionResult Delete(Guid id)
{
//retrieves the alert to delete in the database
var alertItem = context.AlertItems.FirstOrDefault(a => a.Id == id);
if (alertItem == null)
{
return NotFound();
}
//removes it from the database
context.AlertItems.Remove(alertItem);
context.SaveChanges();
return new NoContentResult();
}
}
}

@ -0,0 +1,143 @@
// ========================================================================
//
// Copyright (C) 2017-2018 MARC CHEVALDONNE
// marc.chevaldonne.free.fr
//
// Module : TokenController.cs
// Author : Marc Chevaldonné
// Creation date : 2018-02-12
//
// ========================================================================
using AlertWebAPI.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.IdentityModel.Tokens;
using System;
using System.Diagnostics;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using System.Text;
namespace AlertWebAPI.Controllers
{
/// <summary>
/// allows to create a token on the alert database by authenticating
/// </summary>
[Route("api/token")]
public class TokenController : Controller
{
private IConfiguration _config;
/// <summary>
/// context allowing to access the database containing the logins and passwords
/// </summary>
private readonly UserDbContext context;
/// <summary>
/// constructor
/// </summary>
/// <param name="config"></param>
public TokenController(IConfiguration config)
{
_config = config;
//creates the context to the Users database
this.context = new UserDbContext();
//if the users database is empty, creates a fake user and adds it to the database
StubData();
}
[Conditional("DEBUG")]
private void StubData()
{
if (context.Users.Count() == 0)
{
InitializeData(context);
context.SaveChanges();
}
}
/// <summary>
/// creates stub data for the users database
/// </summary>
/// <param name="context"></param>
private void InitializeData(UserDbContext context)
{
context.Users.Add(new User
{
Name = "Dwight Schrute",
UserName = "dwight",
Password = "boss",
Email = "dwight.schrute@dundlermifflin.com"
});
}
/// <summary>
/// creates a token for accessing the alert database
/// [AllowAnonymous] authorizes anonymous access to this method
/// </summary>
/// <param name="login">username/password of the user asking for a token</param>
/// <returns>a token to access the alert database</returns>
[AllowAnonymous]
[HttpPost]
public IActionResult CreateToken([FromBody]Login login)
{
IActionResult response = Unauthorized();
//tries to authenticate with the login data
var user = Authenticate(login);
//if authentication succeeds, builds a token and returns it
if (user != null)
{
var tokenString = BuildToken(user);
response = Ok(new { token = tokenString });
}
//else, returns a Status401Unauthorized response
return response;
}
/// <summary>
/// builds the token with the user data
/// note that it uses the config file (Key and Issuer), defined in appsettings.json
/// </summary>
/// <param name="user">the user who will get the token</param>
/// <returns>the token built</returns>
private string BuildToken(User user)
{
var key = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(_config["Jwt:Key"]));
var creds = new SigningCredentials(key, SecurityAlgorithms.HmacSha256);
var token = new JwtSecurityToken(_config["Jwt:Issuer"],
_config["Jwt:Issuer"],
expires: DateTime.Now.AddMinutes(30),
signingCredentials: creds);
return new JwtSecurityTokenHandler().WriteToken(token);
}
/// <summary>
/// authenticates the login/password
/// </summary>
/// <param name="login">login/password to authenticate</param>
/// <returns>the user if authentication succeeds, null if not</returns>
private User Authenticate(Login login)
{
User user = null;
//retrieves the first user in the database with the given login and password
user = context.Users.FirstOrDefault(u => u.UserName == login.Username && u.Password == login.Password);
//methods without users database and hard-saved login/password
//if (login.Username == "dwight" && login.Password == "boss")
//{
// user = new User { Name = "Dwight Schrute", Email = "dwight.schrute@dundlermifflin.com" };
//}
return user;
}
}
}

@ -0,0 +1,29 @@
// ========================================================================
//
// Copyright (C) 2017-2018 MARC CHEVALDONNE
// marc.chevaldonne.free.fr
//
// Module : AlertDbContext.cs
// Author : Marc Chevaldonné
// Creation date : 2018-02-12
//
// ========================================================================
using Microsoft.EntityFrameworkCore;
namespace AlertWebAPI.Models
{
/// <summary>
/// This classe deriving from DbContext allows CRUD operations on the model.
/// It owns a DbSet<T> allowing CRUD operations on type T, here AlertItem.
/// </summary>
public class AlertDbContext : DbContext
{
public AlertDbContext(DbContextOptions<AlertDbContext> options)
: base(options)
{
}
public DbSet<AlertItem> AlertItems { get; set; }
}
}

@ -0,0 +1,51 @@
// ========================================================================
//
// Copyright (C) 2017-2018 MARC CHEVALDONNE
// marc.chevaldonne.free.fr
//
// Module : AlertItem.cs
// Author : Marc Chevaldonné
// Creation date : 2018-02-12
//
// ========================================================================
using System;
using System.ComponentModel.DataAnnotations;
namespace AlertWebAPI.Models
{
/// <summary>
/// AlertItem is a POCO class, i.e. Plain Old CLR Object.
/// It contains data about an alert and respect EntityFramework conventions.
/// </summary>
public class AlertItem
{
[Required]
public Guid Id { get; set; }
[Required]
public string Name { get; set; }
public string Decription { get; set; }
[Required]
public DateTime Date { get; set; }
public string SignaledBy { get; set; }
[Required]
public bool IsManaged { get; set; }
public string ManagedBy { get; set; }
[Required]
public AlertType Type { get; set; }
}
public enum AlertType
{
Low,
Medium,
High
}
}

@ -0,0 +1,22 @@
// ========================================================================
//
// Copyright (C) 2017-2018 MARC CHEVALDONNE
// marc.chevaldonne.free.fr
//
// Module : Login.cs
// Author : Marc Chevaldonné
// Creation date : 2018-02-12
//
// ========================================================================
namespace AlertWebAPI.Models
{
/// <summary>
/// POCO class for username/password couples
/// </summary>
public class Login
{
public string Username { get; set; }
public string Password { get; set; }
}
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save