BaconographyPortable.Model.Reddit.ListingHelpers.SubredditLinks.GetCachedListing C# (CSharp) Method

GetCachedListing() public method

public GetCachedListing ( object>.Dictionary state ) : Task
state object>.Dictionary
return Task
        public async Task<Listing> GetCachedListing(Dictionary<object, object> state)
        {
            var things = await _offlineService.RetrieveOrderedThings("links:" + _subreddit, TimeSpan.FromDays(14));
            if(things != null)
                return new Listing { Data = new ListingData { Children = new List<Thing>(things) } };
            else
                return new Listing { Data = new ListingData { Children = new List<Thing>() } };
        }