Permalink
Browse files

added common config to more platforms

  • Loading branch information...
1 parent 2913f8c commit a878d0d20faea3af0a7571ab17adedf05f276e6f @Redth committed Nov 28, 2012
@@ -82,6 +82,7 @@
<Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
<ItemGroup />
<ItemGroup>
+ <Compile Include="Config.cs" />
<Compile Include="Converters\Converters.cs" />
<Compile Include="Interfaces\IBarcodeScanner.cs" />
<Compile Include="Interfaces\IErrorReporter.cs" />
@@ -13,7 +13,7 @@ namespace WshLst.Web.ViewModels
public class WishListViewModel
{
HttpClient http;
- string azureMobileServiceUrl = "";
+ string azureMobileServiceUrl = WshLst.Core.Config.AZURE_MOBILE_SERVICE_URL;
public WishListViewModel(string wishListGuid)
{
@@ -23,13 +23,9 @@ public WishListViewModel(string wishListGuid)
this.Entries = new List<Entry>();
this.EntryImages = new Dictionary<string, EntryImage>();
-
- //TODO: Load key and url from config.json
- var azureMobileServiceAppKey = "";
- azureMobileServiceUrl = "";
-
+
http = new HttpClient();
- http.DefaultRequestHeaders.Add("X-ZUMO-APPLICATION", azureMobileServiceAppKey);
+ http.DefaultRequestHeaders.Add("X-ZUMO-APPLICATION", WshLst.Core.Config.AZURE_MOBILE_SERVICE_APPKEY);
http.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
}
@@ -110,6 +110,9 @@
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
+ <Compile Include="..\..\WshLst.Core\Config.cs">
+ <Link>Config.cs</Link>
+ </Compile>
<Compile Include="..\..\WshLst.Core\Models\Entry.cs">
<Link>Models\Entry.cs</Link>
</Compile>

0 comments on commit a878d0d

Please sign in to comment.