summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Pages.Azure/AzureSource.cs
blob: ec2b2984cda3541b114a617c5c6f86e2b7e9cd63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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();
	}
}