summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Pages.Azure/AzureSource.cs
diff options
context:
space:
mode:
authorJason Smith <jason.smith@xamarin.com>2016-04-27 18:48:28 (GMT)
committerRui Marinho <me@ruimarinho.net>2016-04-27 18:48:28 (GMT)
commit8a00a96ffb34058bfb03f8cc16c28b38a79791a4 (patch)
tree294842819c3b051e9b4050971475fda48431f109 /Xamarin.Forms.Pages.Azure/AzureSource.cs
parent2d9288eee6e6f197364a64308183725e7bd561f9 (diff)
downloadxamarin-forms-8a00a96ffb34058bfb03f8cc16c28b38a79791a4.zip
xamarin-forms-8a00a96ffb34058bfb03f8cc16c28b38a79791a4.tar.gz
xamarin-forms-8a00a96ffb34058bfb03f8cc16c28b38a79791a4.tar.bz2
Azure support (#143)
* Initial import of azure support for pages * Add nuspec for azure * move azure nuspec to correct location * Update Newtonsoft.Json to 6.0.4 * Add converters * Fix package
Diffstat (limited to 'Xamarin.Forms.Pages.Azure/AzureSource.cs')
-rw-r--r--Xamarin.Forms.Pages.Azure/AzureSource.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/Xamarin.Forms.Pages.Azure/AzureSource.cs b/Xamarin.Forms.Pages.Azure/AzureSource.cs
new file mode 100644
index 0000000..ec2b298
--- /dev/null
+++ b/Xamarin.Forms.Pages.Azure/AzureSource.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Threading.Tasks;
+using Newtonsoft.Json.Linq;
+
+namespace Xamarin.Forms.Pages.Azure
+{
+ public abstract class AzureSource : Element
+ {
+ public static readonly BindableProperty UriProperty =
+ BindableProperty.Create(nameof(Uri), typeof(Uri), typeof(AzureSource), null);
+
+ [TypeConverter(typeof(UriTypeConverter))]
+ public Uri Uri
+ {
+ get { return (Uri)GetValue(UriProperty); }
+ set { SetValue(UriProperty, value); }
+ }
+
+ public abstract Task<JToken> GetJson();
+ }
+} \ No newline at end of file