OpenWeatherMap API: always use nullable data
authorgu.martinm@gmail.com <gu.martinm@gmail.com>
Sun, 17 Aug 2014 17:20:42 +0000 (19:20 +0200)
committergu.martinm@gmail.com <gu.martinm@gmail.com>
Sun, 17 Aug 2014 17:20:42 +0000 (19:20 +0200)
In this way we can check whether we have remote received data.

23 files changed:
Allgemeines/openweathermap/jsonparser/jsonparser.MonoDevelop.sln [new file with mode: 0644]
Allgemeines/openweathermap/jsonparser/jsonparser.Windows.sln [new file with mode: 0644]
Allgemeines/openweathermap/jsonparser/jsonparser.sln [deleted file]
Allgemeines/openweathermap/jsonparser/jsonparser/App.config [new file with mode: 0644]
Allgemeines/openweathermap/jsonparser/jsonparser/Program.cs
Allgemeines/openweathermap/jsonparser/jsonparser/currentweather/Clouds.cs
Allgemeines/openweathermap/jsonparser/jsonparser/currentweather/Coord.cs
Allgemeines/openweathermap/jsonparser/jsonparser/currentweather/CurrentWeather.cs
Allgemeines/openweathermap/jsonparser/jsonparser/currentweather/Main.cs
Allgemeines/openweathermap/jsonparser/jsonparser/currentweather/Rain.cs
Allgemeines/openweathermap/jsonparser/jsonparser/currentweather/Sys.cs
Allgemeines/openweathermap/jsonparser/jsonparser/currentweather/Weather.cs
Allgemeines/openweathermap/jsonparser/jsonparser/currentweather/Wind.cs
Allgemeines/openweathermap/jsonparser/jsonparser/forecastweather/City.cs
Allgemeines/openweathermap/jsonparser/jsonparser/forecastweather/Coord.cs
Allgemeines/openweathermap/jsonparser/jsonparser/forecastweather/ForecastWeather.cs
Allgemeines/openweathermap/jsonparser/jsonparser/forecastweather/List.cs
Allgemeines/openweathermap/jsonparser/jsonparser/forecastweather/Temp.cs
Allgemeines/openweathermap/jsonparser/jsonparser/forecastweather/Weather.cs
Allgemeines/openweathermap/jsonparser/jsonparser/jsonparser.MonoDevelop.csproj [new file with mode: 0644]
Allgemeines/openweathermap/jsonparser/jsonparser/jsonparser.Windows.csproj [new file with mode: 0644]
Allgemeines/openweathermap/jsonparser/jsonparser/jsonparser.csproj [deleted file]
Allgemeines/openweathermap/jsonparser/jsonparser/packages.config [new file with mode: 0644]

diff --git a/Allgemeines/openweathermap/jsonparser/jsonparser.MonoDevelop.sln b/Allgemeines/openweathermap/jsonparser/jsonparser.MonoDevelop.sln
new file mode 100644 (file)
index 0000000..5a7f4c4
--- /dev/null
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "jsonparser", "jsonparser\jsonparser.MonoDevelop.csproj", "{8F70E570-9D59-4E94-825C-62087D3BB1F6}"
+EndProject
+Global
+       GlobalSection(SolutionConfigurationPlatforms) = preSolution
+               Debug|x86 = Debug|x86
+               Release|x86 = Release|x86
+       EndGlobalSection
+       GlobalSection(ProjectConfigurationPlatforms) = postSolution
+               {8F70E570-9D59-4E94-825C-62087D3BB1F6}.Debug|x86.ActiveCfg = Debug|x86
+               {8F70E570-9D59-4E94-825C-62087D3BB1F6}.Debug|x86.Build.0 = Debug|x86
+               {8F70E570-9D59-4E94-825C-62087D3BB1F6}.Release|x86.ActiveCfg = Release|x86
+               {8F70E570-9D59-4E94-825C-62087D3BB1F6}.Release|x86.Build.0 = Release|x86
+       EndGlobalSection
+       GlobalSection(MonoDevelopProperties) = preSolution
+               StartupItem = jsonparser\jsonparser.csproj
+       EndGlobalSection
+EndGlobal
diff --git a/Allgemeines/openweathermap/jsonparser/jsonparser.Windows.sln b/Allgemeines/openweathermap/jsonparser/jsonparser.Windows.sln
new file mode 100644 (file)
index 0000000..7256289
--- /dev/null
@@ -0,0 +1,22 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.30501.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "jsonparser", "jsonparser\jsonparser.Windows.csproj", "{A49EB2A0-A969-494C-840D-A89B0989150C}"
+EndProject
+Global
+       GlobalSection(SolutionConfigurationPlatforms) = preSolution
+               Debug|Any CPU = Debug|Any CPU
+               Release|Any CPU = Release|Any CPU
+       EndGlobalSection
+       GlobalSection(ProjectConfigurationPlatforms) = postSolution
+               {A49EB2A0-A969-494C-840D-A89B0989150C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+               {A49EB2A0-A969-494C-840D-A89B0989150C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+               {A49EB2A0-A969-494C-840D-A89B0989150C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+               {A49EB2A0-A969-494C-840D-A89B0989150C}.Release|Any CPU.Build.0 = Release|Any CPU
+       EndGlobalSection
+       GlobalSection(SolutionProperties) = preSolution
+               HideSolutionNode = FALSE
+       EndGlobalSection
+EndGlobal
diff --git a/Allgemeines/openweathermap/jsonparser/jsonparser.sln b/Allgemeines/openweathermap/jsonparser/jsonparser.sln
deleted file mode 100644 (file)
index df0cb7b..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2012
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "jsonparser", "jsonparser\jsonparser.csproj", "{8F70E570-9D59-4E94-825C-62087D3BB1F6}"
-EndProject
-Global
-       GlobalSection(SolutionConfigurationPlatforms) = preSolution
-               Debug|x86 = Debug|x86
-               Release|x86 = Release|x86
-       EndGlobalSection
-       GlobalSection(ProjectConfigurationPlatforms) = postSolution
-               {8F70E570-9D59-4E94-825C-62087D3BB1F6}.Debug|x86.ActiveCfg = Debug|x86
-               {8F70E570-9D59-4E94-825C-62087D3BB1F6}.Debug|x86.Build.0 = Debug|x86
-               {8F70E570-9D59-4E94-825C-62087D3BB1F6}.Release|x86.ActiveCfg = Release|x86
-               {8F70E570-9D59-4E94-825C-62087D3BB1F6}.Release|x86.Build.0 = Release|x86
-       EndGlobalSection
-       GlobalSection(MonoDevelopProperties) = preSolution
-               StartupItem = jsonparser\jsonparser.csproj
-       EndGlobalSection
-EndGlobal
diff --git a/Allgemeines/openweathermap/jsonparser/jsonparser/App.config b/Allgemeines/openweathermap/jsonparser/jsonparser/App.config
new file mode 100644 (file)
index 0000000..9c05822
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+    <startup> 
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
+    </startup>
+</configuration>
\ No newline at end of file
index 89a7951..e9f4e13 100644 (file)
@@ -80,37 +80,42 @@ namespace jsonparser
 
             CurrentWeather current = JsonConvert.DeserializeObject<CurrentWeather>(jsonCurrentWeatherData, _jsonSettings);
 
-            Console.WriteLine("lat: " + current.coord.lat);
-            Console.WriteLine("lon: " + current.coord.lon);
+            Console.WriteLine("lat: " + current.coord.lat ?? "");
+            Console.WriteLine("lon: " + current.coord.lon ?? "");
             foreach (jsonparser.currentweather.Weather weather in current.weather)
             {
-                Console.WriteLine("description: " + weather.description);
-                Console.WriteLine("main: " + weather.main);
-                Console.WriteLine("id: " + weather.id);
-                Console.WriteLine("icon: " + weather.icon);
+                Console.WriteLine("description: " + weather.description ?? "");
+                Console.WriteLine("main: " + weather.main ?? "");
+                Console.WriteLine("id: " + weather.id ?? "");
+                Console.WriteLine("icon: " + weather.icon ?? "");
             }
-            Console.WriteLine("humidity: " + current.main.humidity);
-            Console.WriteLine("pressure: " + current.main.pressure);
-            Console.WriteLine("temp: " + current.main.temp);
-            Console.WriteLine("temp_min: " + current.main.temp_min);
-            Console.WriteLine("temp_max: " + current.main.temp_max);
-            Console.WriteLine("rain: " + current.rain.get3h());
-            Console.WriteLine("clouds: " + current.clouds.all);
+            Console.WriteLine("humidity: " + current.main.humidity ?? "");
+            Console.WriteLine("pressure: " + current.main.pressure ?? "");
+            Console.WriteLine("temp: " + current.main.temp ?? "");
+            Console.WriteLine("temp_min: " + current.main.temp_min ?? "");
+            Console.WriteLine("temp_max: " + current.main.temp_max ?? "");
+            Console.WriteLine("rain: " + current.rain.get3h() ?? "");
+            Console.WriteLine("clouds: " + current.clouds.all ?? "");
+
+            Console.ReadLine();
+
 
 
             ForecastWeather forecast = JsonConvert.DeserializeObject<ForecastWeather>(jsonForeCastWeatherData, _jsonSettings);
 
-            Console.WriteLine("lat: " + forecast.city.coord.lat);
-            Console.WriteLine("lon: " + forecast.city.coord.lon);
-            Console.WriteLine("name: " + forecast.city.name);
+            Console.WriteLine("lat: " + forecast.city.coord.lat ?? "");
+            Console.WriteLine("lon: " + forecast.city.coord.lon ?? "");
+            Console.WriteLine("name: " + forecast.city.name ?? "");
 
             foreach (jsonparser.forecastweather.List list in forecast.list)
             {
-                Console.WriteLine("temp day: " + list.temp.day);
-                Console.WriteLine("temp eve: " + list.temp.eve);
-                Console.WriteLine("temp max: " + list.temp.max);
-                Console.WriteLine("temp min: " + list.temp.min);
+                Console.WriteLine("temp day: " + list.temp.day ?? "");
+                Console.WriteLine("temp eve: " + list.temp.eve ?? "");
+                Console.WriteLine("temp max: " + list.temp.max ?? "");
+                Console.WriteLine("temp min: " + list.temp.min ?? "");
             }
+
+            Console.ReadLine();
         }
     }
 }
index e24f278..561bcaf 100644 (file)
@@ -4,7 +4,7 @@ namespace jsonparser.currentweather
 {
     public class Clouds
     {
-        public int all { get; set; }
+        public int? all { get; set; }
     }
 }
 
index c053510..d3693b4 100644 (file)
@@ -4,8 +4,8 @@ namespace jsonparser.currentweather
 {
     public class Coord
     {
-        public double lon { get; set; }
-        public int lat { get; set; }
+        public double? lon { get; set; }
+        public double? lat { get; set; }
     }
 }
 
index 4fec718..bb6909b 100644 (file)
@@ -13,10 +13,10 @@ namespace jsonparser.currentweather
         public Wind wind { get; set; }
         public Rain rain { get; set; }
         public Clouds clouds { get; set; }
-        public int dt { get; set; }
-        public int id { get; set; }
+        public int? dt { get; set; }
+        public int? id { get; set; }
         public string name { get; set; }
-        public int cod { get; set; }
+        public int? cod { get; set; }
     }
 }
 
index 39a7dd9..c972bcf 100644 (file)
@@ -4,11 +4,11 @@ namespace jsonparser.currentweather
 {
     public class Main
     {
-        public double temp { get; set; }
-        public int pressure { get; set; }
-        public int humidity { get; set; }
-        public double temp_min { get; set; }
-        public double temp_max { get; set; }
+        public double? temp { get; set; }
+        public int? pressure { get; set; }
+        public int? humidity { get; set; }
+        public double? temp_min { get; set; }
+        public double? temp_max { get; set; }
     }
 }
 
index edff969..5498788 100644 (file)
@@ -4,14 +4,14 @@ namespace jsonparser.currentweather
 {
     public class Rain
     {
-        private double threeHours;
+        private double? threeHours;
 
         public void set3h(double three)
         {
             this.threeHours = three;
         }
 
-        public double get3h()
+        public double? get3h()
         {
             return this.threeHours;
         }
index 06cff86..1ea4afd 100644 (file)
@@ -4,10 +4,10 @@ namespace jsonparser.currentweather
 {
     public class Sys
     {
-        public double message { get; set; }
+        public double? message { get; set; }
         public string country { get; set; }
-        public int sunrise { get; set; }
-        public int sunset { get; set; }
+        public int? sunrise { get; set; }
+        public int? sunset { get; set; }
     }
 }
 
index 77bfffd..bd0d5f2 100644 (file)
@@ -4,7 +4,7 @@ namespace jsonparser.currentweather
 {
     public class Weather
     {
-        public int id { get; set; }
+        public int? id { get; set; }
         public string main { get; set; }
         public string description { get; set; }
         public string icon { get; set; }
index e4f1087..5aaf6d5 100644 (file)
@@ -4,8 +4,8 @@ namespace jsonparser.currentweather
 {
     public class Wind
     {
-        public double speed { get; set; }
-        public int deg { get; set; }
+        public double? speed { get; set; }
+        public double? deg { get; set; }
     }
 }
 
index 5d301c4..11308ed 100644 (file)
@@ -4,11 +4,11 @@ namespace jsonparser.forecastweather
 {
     public class City
     {
-        public int id { get; set; }
+        public int? id { get; set; }
         public string name { get; set; }
         public Coord coord { get; set; }
         public string country { get; set; }
-        public int population { get; set; }
+        public int? population { get; set; }
     }
 }
 
index 065cb6d..0c93ba3 100644 (file)
@@ -4,8 +4,8 @@ namespace jsonparser.forecastweather
 {
     public class Coord
     {
-        public double lon { get; set; }
-        public double lat { get; set; }
+        public double? lon { get; set; }
+        public double? lat { get; set; }
     }
 }
 
index 9d29ded..eec8a54 100644 (file)
@@ -6,9 +6,9 @@ namespace jsonparser.forecastweather
     public class ForecastWeather
     {
         public string cod { get; set; }
-        public double message { get; set; }
+        public double? message { get; set; }
         public City city { get; set; }
-        public int cnt { get; set; }
+        public int? cnt { get; set; }
         public List<jsonparser.forecastweather.List> list { get; set; }
     }
 }
index 2d3d487..acac33b 100644 (file)
@@ -5,15 +5,15 @@ namespace jsonparser.forecastweather
 {
     public class List
     {
-        public int dt { get; set; }
+        public int? dt { get; set; }
         public Temp temp { get; set; }
-        public double pressure { get; set; }
-        public int humidity { get; set; }
+        public double? pressure { get; set; }
+        public int? humidity { get; set; }
         public List<Weather> weather { get; set; }
-        public double speed { get; set; }
-        public int deg { get; set; }
-        public int clouds { get; set; }
-        public double rain { get; set; }
+        public double? speed { get; set; }
+        public int? deg { get; set; }
+        public int? clouds { get; set; }
+        public double? rain { get; set; }
     }
 }
 
index dce70c2..91506f6 100644 (file)
@@ -4,12 +4,12 @@ namespace jsonparser.forecastweather
 {
     public class Temp
     {
-        public double day { get; set; }
-        public double min { get; set; }
-        public double max { get; set; }
-        public double night { get; set; }
-        public double eve { get; set; }
-        public double morn { get; set; }
+        public double? day { get; set; }
+        public double? min { get; set; }
+        public double? max { get; set; }
+        public double? night { get; set; }
+        public double? eve { get; set; }
+        public double? morn { get; set; }
     }
 }
 
index 8c60109..31324eb 100644 (file)
@@ -4,7 +4,7 @@ namespace jsonparser.forecastweather
 {
     public class Weather
     {
-        public int id { get; set; }
+        public int? id { get; set; }
         public string main { get; set; }
         public string description { get; set; }
         public string icon { get; set; }
diff --git a/Allgemeines/openweathermap/jsonparser/jsonparser/jsonparser.MonoDevelop.csproj b/Allgemeines/openweathermap/jsonparser/jsonparser/jsonparser.MonoDevelop.csproj
new file mode 100644 (file)
index 0000000..bd9e900
--- /dev/null
@@ -0,0 +1,63 @@
+<?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)' == '' ">x86</Platform>
+    <ProductVersion>12.0.0</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{8F70E570-9D59-4E94-825C-62087D3BB1F6}</ProjectGuid>
+    <OutputType>Exe</OutputType>
+    <RootNamespace>jsonparser</RootNamespace>
+    <AssemblyName>jsonparser</AssemblyName>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug</OutputPath>
+    <DefineConstants>DEBUG;</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <Externalconsole>true</Externalconsole>
+    <PlatformTarget>x86</PlatformTarget>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+    <DebugType>full</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release</OutputPath>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <Externalconsole>true</Externalconsole>
+    <PlatformTarget>x86</PlatformTarget>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=c7439020c8fedf87">
+      <Package>monodevelop</Package>
+      <Private>True</Private>
+    </Reference>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Program.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="currentweather\Clouds.cs" />
+    <Compile Include="currentweather\Coord.cs" />
+    <Compile Include="currentweather\CurrentWeather.cs" />
+    <Compile Include="currentweather\Main.cs" />
+    <Compile Include="currentweather\Rain.cs" />
+    <Compile Include="currentweather\Sys.cs" />
+    <Compile Include="currentweather\Weather.cs" />
+    <Compile Include="currentweather\Wind.cs" />
+    <Compile Include="forecastweather\Coord.cs" />
+    <Compile Include="forecastweather\City.cs" />
+    <Compile Include="forecastweather\Temp.cs" />
+    <Compile Include="forecastweather\Weather.cs" />
+    <Compile Include="forecastweather\List.cs" />
+    <Compile Include="forecastweather\ForecastWeather.cs" />
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <ItemGroup>
+    <Folder Include="currentweather\" />
+    <Folder Include="forecastweather\" />
+  </ItemGroup>
+</Project>
\ No newline at end of file
diff --git a/Allgemeines/openweathermap/jsonparser/jsonparser/jsonparser.Windows.csproj b/Allgemeines/openweathermap/jsonparser/jsonparser/jsonparser.Windows.csproj
new file mode 100644 (file)
index 0000000..09d90e8
--- /dev/null
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProjectGuid>{A49EB2A0-A969-494C-840D-A89B0989150C}</ProjectGuid>
+    <OutputType>Exe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>jsonparser</RootNamespace>
+    <AssemblyName>jsonparser</AssemblyName>
+    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+    <PublishUrl>publicar\</PublishUrl>
+    <Install>true</Install>
+    <InstallFrom>Disk</InstallFrom>
+    <UpdateEnabled>false</UpdateEnabled>
+    <UpdateMode>Foreground</UpdateMode>
+    <UpdateInterval>7</UpdateInterval>
+    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
+    <UpdatePeriodically>false</UpdatePeriodically>
+    <UpdateRequired>false</UpdateRequired>
+    <MapFileExtensions>true</MapFileExtensions>
+    <ApplicationRevision>0</ApplicationRevision>
+    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
+    <IsWebBootstrapper>false</IsWebBootstrapper>
+    <UseApplicationTrust>false</UseApplicationTrust>
+    <BootstrapperEnabled>true</BootstrapperEnabled>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup />
+  <ItemGroup>
+    <Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll</HintPath>
+    </Reference>
+    <Reference Include="System" />
+    <Reference Include="System.Core" />
+    <Reference Include="System.Xml.Linq" />
+    <Reference Include="System.Data.DataSetExtensions" />
+    <Reference Include="Microsoft.CSharp" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="currentweather\Clouds.cs" />
+    <Compile Include="currentweather\Coord.cs" />
+    <Compile Include="currentweather\CurrentWeather.cs" />
+    <Compile Include="currentweather\Main.cs" />
+    <Compile Include="currentweather\Rain.cs" />
+    <Compile Include="currentweather\Sys.cs" />
+    <Compile Include="currentweather\Weather.cs" />
+    <Compile Include="currentweather\Wind.cs" />
+    <Compile Include="forecastweather\City.cs" />
+    <Compile Include="forecastweather\Coord.cs" />
+    <Compile Include="forecastweather\ForecastWeather.cs" />
+    <Compile Include="forecastweather\List.cs" />
+    <Compile Include="forecastweather\Temp.cs" />
+    <Compile Include="forecastweather\Weather.cs" />
+    <Compile Include="Program.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="App.config" />
+    <None Include="packages.config" />
+  </ItemGroup>
+  <ItemGroup>
+    <BootstrapperPackage Include=".NETFramework,Version=v4.5">
+      <Visible>False</Visible>
+      <ProductName>Microsoft .NET Framework 4.5 %28x86 y x64%29</ProductName>
+      <Install>true</Install>
+    </BootstrapperPackage>
+    <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
+      <Visible>False</Visible>
+      <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
+      <Install>false</Install>
+    </BootstrapperPackage>
+    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
+      <Visible>False</Visible>
+      <ProductName>.NET Framework 3.5 SP1</ProductName>
+      <Install>false</Install>
+    </BootstrapperPackage>
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file
diff --git a/Allgemeines/openweathermap/jsonparser/jsonparser/jsonparser.csproj b/Allgemeines/openweathermap/jsonparser/jsonparser/jsonparser.csproj
deleted file mode 100644 (file)
index bd9e900..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<?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)' == '' ">x86</Platform>
-    <ProductVersion>12.0.0</ProductVersion>
-    <SchemaVersion>2.0</SchemaVersion>
-    <ProjectGuid>{8F70E570-9D59-4E94-825C-62087D3BB1F6}</ProjectGuid>
-    <OutputType>Exe</OutputType>
-    <RootNamespace>jsonparser</RootNamespace>
-    <AssemblyName>jsonparser</AssemblyName>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
-    <DebugSymbols>true</DebugSymbols>
-    <DebugType>full</DebugType>
-    <Optimize>false</Optimize>
-    <OutputPath>bin\Debug</OutputPath>
-    <DefineConstants>DEBUG;</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-    <Externalconsole>true</Externalconsole>
-    <PlatformTarget>x86</PlatformTarget>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
-    <DebugType>full</DebugType>
-    <Optimize>true</Optimize>
-    <OutputPath>bin\Release</OutputPath>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-    <Externalconsole>true</Externalconsole>
-    <PlatformTarget>x86</PlatformTarget>
-  </PropertyGroup>
-  <ItemGroup>
-    <Reference Include="System" />
-    <Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=c7439020c8fedf87">
-      <Package>monodevelop</Package>
-      <Private>True</Private>
-    </Reference>
-  </ItemGroup>
-  <ItemGroup>
-    <Compile Include="Program.cs" />
-    <Compile Include="Properties\AssemblyInfo.cs" />
-    <Compile Include="currentweather\Clouds.cs" />
-    <Compile Include="currentweather\Coord.cs" />
-    <Compile Include="currentweather\CurrentWeather.cs" />
-    <Compile Include="currentweather\Main.cs" />
-    <Compile Include="currentweather\Rain.cs" />
-    <Compile Include="currentweather\Sys.cs" />
-    <Compile Include="currentweather\Weather.cs" />
-    <Compile Include="currentweather\Wind.cs" />
-    <Compile Include="forecastweather\Coord.cs" />
-    <Compile Include="forecastweather\City.cs" />
-    <Compile Include="forecastweather\Temp.cs" />
-    <Compile Include="forecastweather\Weather.cs" />
-    <Compile Include="forecastweather\List.cs" />
-    <Compile Include="forecastweather\ForecastWeather.cs" />
-  </ItemGroup>
-  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
-  <ItemGroup>
-    <Folder Include="currentweather\" />
-    <Folder Include="forecastweather\" />
-  </ItemGroup>
-</Project>
\ No newline at end of file
diff --git a/Allgemeines/openweathermap/jsonparser/jsonparser/packages.config b/Allgemeines/openweathermap/jsonparser/jsonparser/packages.config
new file mode 100644 (file)
index 0000000..992a6e6
--- /dev/null
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+  <package id="Newtonsoft.Json" version="6.0.4" targetFramework="net45" />
+</packages>
\ No newline at end of file