Remove unnecessaray parameter of TizenDeviceInfo
[platform/upstream/xamarin-forms.git] / Xamarin.Forms.Pages / JsonSource.cs
1 using System;
2 using System.Threading.Tasks;
3
4 namespace Xamarin.Forms.Pages
5 {
6         public abstract class JsonSource : Element
7         {
8                 public static JsonSource FromString(string json)
9                 {
10                         return new StringJsonSource { Json = json };
11                 }
12
13                 public static JsonSource FromUri(Uri uri)
14                 {
15                         return new UriJsonSource { Uri = uri };
16                 }
17
18                 public abstract Task<string> GetJson();
19
20                 public static implicit operator JsonSource(string json)
21                 {
22                         return FromString(json);
23                 }
24         }
25 }