Repository: incubator-usergrid
Updated Branches:
  refs/heads/USERGRID-323-Win-phone 1d003747c -> 1b0f6c9d8


sanitizing code


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/5e1ce248
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/5e1ce248
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/5e1ce248

Branch: refs/heads/USERGRID-323-Win-phone
Commit: 5e1ce24863077317df2e0dbea97b4fa96942ba49
Parents: 1d00374
Author: Shawn Feldman <sfeld...@apache.org>
Authored: Thu Jan 22 16:34:57 2015 -0700
Committer: Shawn Feldman <sfeld...@apache.org>
Committed: Thu Jan 22 16:34:57 2015 -0700

----------------------------------------------------------------------
 .../Usergrid.Notifications/MainPage.xaml        | 22 +++++++++++++++++++-
 .../Usergrid.Notifications/MainPage.xaml.cs     | 15 +++++++------
 .../Package.StoreAssociation.xml                | 21 +++++++++++++++++++
 .../Usergrid.Notifications/Package.appxmanifest | 21 +++++++++++++++++++
 .../Usergrid.Notifications/packages.config      | 21 +++++++++++++++++++
 5 files changed, 93 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/5e1ce248/sdks/dotnet/samples/notifications/Usergrid.Notifications/MainPage.xaml
----------------------------------------------------------------------
diff --git 
a/sdks/dotnet/samples/notifications/Usergrid.Notifications/MainPage.xaml 
b/sdks/dotnet/samples/notifications/Usergrid.Notifications/MainPage.xaml
index 9dc6118..a3597ba 100644
--- a/sdks/dotnet/samples/notifications/Usergrid.Notifications/MainPage.xaml
+++ b/sdks/dotnet/samples/notifications/Usergrid.Notifications/MainPage.xaml
@@ -7,7 +7,27 @@
     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006";
     mc:Ignorable="d"
     Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
-
+  <!--
+    /*
+ *
+ *  * Licensed to the Apache Software Foundation (ASF) under one or more
+ *  *  contributor license agreements.  The ASF licenses this file to You
+ *  * under the Apache License, Version 2.0 (the "License"); you may not
+ *  * use this file except in compliance with the License.
+ *  * You may obtain a copy of the License at
+ *  *
+ *  *     http://www.apache.org/licenses/LICENSE-2.0
+ *  *
+ *  * Unless required by applicable law or agreed to in writing, software
+ *  * distributed under the License is distributed on an "AS IS" BASIS,
+ *  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  * See the License for the specific language governing permissions and
+ *  * limitations under the License.  For additional information regarding
+ *  * copyright in this work, please see the NOTICE file in the top level
+ *  * directory of this distribution.
+ *
+ */
+    -->
     <Grid>
         <TextBox x:Name="pushText" HorizontalAlignment="Left" 
Margin="75,46,0,0" TextWrapping="Wrap" Text="Push Text" VerticalAlignment="Top" 
Width="261" TextChanged="pushText_TextChanged"/>
         <Button x:Name="SendToast"  Content="Toast" HorizontalAlignment="Left" 
Margin="75,118,0,0" VerticalAlignment="Top" Click="Button_Click" Width="39"/>

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/5e1ce248/sdks/dotnet/samples/notifications/Usergrid.Notifications/MainPage.xaml.cs
----------------------------------------------------------------------
diff --git 
a/sdks/dotnet/samples/notifications/Usergrid.Notifications/MainPage.xaml.cs 
b/sdks/dotnet/samples/notifications/Usergrid.Notifications/MainPage.xaml.cs
index 7a13a54..e79dee3 100644
--- a/sdks/dotnet/samples/notifications/Usergrid.Notifications/MainPage.xaml.cs
+++ b/sdks/dotnet/samples/notifications/Usergrid.Notifications/MainPage.xaml.cs
@@ -38,14 +38,17 @@ namespace Usergrid.Notifications
         private string org;
         private string app;
         private string notifier;
+        private string user;
+        private string password;
         public MainPage()
         {
             this.InitializeComponent();
-            var myIp = "10.0.1.20";
-            serverUrl = "http://"; + myIp + ":8080";
-            org = "mobile";
-            app = "sandbox";
-            notifier = "winphone";
+            serverUrl = "http://yourserverurl";;
+            org = "yourorg";
+            app = "yourapp";
+            notifier = "yournotifiername";
+            user = "youruser";
+            password = "password";
             this.NavigationCacheMode = NavigationCacheMode.Required;
             Task t = this.setup();
         }
@@ -53,7 +56,7 @@ namespace Usergrid.Notifications
         private async Task setup()
         {
             usergrid = Client.UsergridFactory.GetInstance(serverUrl, org, app);
-            await usergrid.Authenticate("superuser", "test", true);
+            await usergrid.Authenticate(user, password, true);
             await usergrid.Push.RegisterDevice(notifier);
         }
 

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/5e1ce248/sdks/dotnet/samples/notifications/Usergrid.Notifications/Package.StoreAssociation.xml
----------------------------------------------------------------------
diff --git 
a/sdks/dotnet/samples/notifications/Usergrid.Notifications/Package.StoreAssociation.xml
 
b/sdks/dotnet/samples/notifications/Usergrid.Notifications/Package.StoreAssociation.xml
index c6278a4..56bb3a6 100644
--- 
a/sdks/dotnet/samples/notifications/Usergrid.Notifications/Package.StoreAssociation.xml
+++ 
b/sdks/dotnet/samples/notifications/Usergrid.Notifications/Package.StoreAssociation.xml
@@ -1,5 +1,26 @@
 <?xml version="1.0" encoding="utf-8"?>
 <StoreAssociation 
xmlns="http://schemas.microsoft.com/appx/2010/storeassociation";>
+  <!--
+    /*
+ *
+ *  * Licensed to the Apache Software Foundation (ASF) under one or more
+ *  *  contributor license agreements.  The ASF licenses this file to You
+ *  * under the Apache License, Version 2.0 (the "License"); you may not
+ *  * use this file except in compliance with the License.
+ *  * You may obtain a copy of the License at
+ *  *
+ *  *     http://www.apache.org/licenses/LICENSE-2.0
+ *  *
+ *  * Unless required by applicable law or agreed to in writing, software
+ *  * distributed under the License is distributed on an "AS IS" BASIS,
+ *  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  * See the License for the specific language governing permissions and
+ *  * limitations under the License.  For additional information regarding
+ *  * copyright in this work, please see the NOTICE file in the top level
+ *  * directory of this distribution.
+ *
+ */
+    -->
   <Publisher>CN=AC3A1EB7-E4EA-48C0-9556-C37AA8BAE0CF</Publisher>
   <PublisherDisplayName>feldrocker</PublisherDisplayName>
   
<GeneratePackageHash>http://www.w3.org/2001/04/xmlenc#sha256</GeneratePackageHash>

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/5e1ce248/sdks/dotnet/samples/notifications/Usergrid.Notifications/Package.appxmanifest
----------------------------------------------------------------------
diff --git 
a/sdks/dotnet/samples/notifications/Usergrid.Notifications/Package.appxmanifest 
b/sdks/dotnet/samples/notifications/Usergrid.Notifications/Package.appxmanifest
index a47ef82..bf51901 100644
--- 
a/sdks/dotnet/samples/notifications/Usergrid.Notifications/Package.appxmanifest
+++ 
b/sdks/dotnet/samples/notifications/Usergrid.Notifications/Package.appxmanifest
@@ -1,5 +1,26 @@
 <?xml version="1.0" encoding="utf-8"?>
 <Package xmlns="http://schemas.microsoft.com/appx/2010/manifest"; 
xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest"; 
xmlns:m3="http://schemas.microsoft.com/appx/2014/manifest"; 
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest";>
+  <!--
+    /*
+ *
+ *  * Licensed to the Apache Software Foundation (ASF) under one or more
+ *  *  contributor license agreements.  The ASF licenses this file to You
+ *  * under the Apache License, Version 2.0 (the "License"); you may not
+ *  * use this file except in compliance with the License.
+ *  * You may obtain a copy of the License at
+ *  *
+ *  *     http://www.apache.org/licenses/LICENSE-2.0
+ *  *
+ *  * Unless required by applicable law or agreed to in writing, software
+ *  * distributed under the License is distributed on an "AS IS" BASIS,
+ *  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  * See the License for the specific language governing permissions and
+ *  * limitations under the License.  For additional information regarding
+ *  * copyright in this work, please see the NOTICE file in the top level
+ *  * directory of this distribution.
+ *
+ */
+    -->
   <Identity Name="15661feldrocker.usergridsample" 
Publisher="CN=AC3A1EB7-E4EA-48C0-9556-C37AA8BAE0CF" Version="1.1.0.0" />
   <mp:PhoneIdentity PhoneProductId="c05b658a-0b41-4187-a6e4-ca186c2338de" 
PhonePublisherId="00000000-0000-0000-0000-000000000000" />
   <Properties>

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/5e1ce248/sdks/dotnet/samples/notifications/Usergrid.Notifications/packages.config
----------------------------------------------------------------------
diff --git 
a/sdks/dotnet/samples/notifications/Usergrid.Notifications/packages.config 
b/sdks/dotnet/samples/notifications/Usergrid.Notifications/packages.config
index efaa424..2a3ff3c 100644
--- a/sdks/dotnet/samples/notifications/Usergrid.Notifications/packages.config
+++ b/sdks/dotnet/samples/notifications/Usergrid.Notifications/packages.config
@@ -1,4 +1,25 @@
 <?xml version="1.0" encoding="utf-8"?>
 <packages>
+  <!--
+    /*
+ *
+ *  * Licensed to the Apache Software Foundation (ASF) under one or more
+ *  *  contributor license agreements.  The ASF licenses this file to You
+ *  * under the Apache License, Version 2.0 (the "License"); you may not
+ *  * use this file except in compliance with the License.
+ *  * You may obtain a copy of the License at
+ *  *
+ *  *     http://www.apache.org/licenses/LICENSE-2.0
+ *  *
+ *  * Unless required by applicable law or agreed to in writing, software
+ *  * distributed under the License is distributed on an "AS IS" BASIS,
+ *  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  * See the License for the specific language governing permissions and
+ *  * limitations under the License.  For additional information regarding
+ *  * copyright in this work, please see the NOTICE file in the top level
+ *  * directory of this distribution.
+ *
+ */
+    -->
   <package id="Newtonsoft.Json" version="6.0.8" targetFramework="wpa81" />
 </packages>
\ No newline at end of file

Reply via email to