summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Pages.Azure/AzureSource.cs
diff options
context:
space:
mode:
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