public static IncrementalSubredditGallery FromJson(string s)
        {
            JObject o = JObject.Parse(s);

            Enums.Sort sort      = JsonConvert.DeserializeObject <Enums.Sort>((string)o["sort"]);
            string     subreddit = (string)o["subreddit"];

            return(new IncrementalSubredditGallery(subreddit, sort));
        }
        private async void LoadGallery(string sectionString, string sortString)
        {
            Section          = sectionString;
            IsSectionVisible = true;
            Images           = new ObservableCollection <GalleryItem>();
            Enums.Section section = ToSection(sectionString);
            Enums.Sort    sort    = ToSort(sortString);
            var           gallery = await Gallery.GetGallery(section, sort);

            foreach (var image in gallery)
            {
                var gItem = new GalleryItem(image);
                Images.Add(gItem);
            }
        }
 public IncrementalSubredditGallery(string subreddit, Enums.Sort sort)
 {
     Subreddit = subreddit;
     Sort      = sort;
 }
 protected virtual IncrementalSubredditGallery CreateSubredditGallery(string subreddit, Enums.Sort sort)
 {
     return(new IncrementalSubredditGallery(subreddit, sort));
 }
 public IncrementalSubredditGallery(string subreddit, Enums.Sort sort)
     : base(subreddit, sort)
 {
 }
 protected override Portable.ViewModels.IncrementalSubredditGallery CreateSubredditGallery(string subreddit, Enums.Sort sort)
 {
     return(new IncrementalSubredditGallery(subreddit, sort));
 }