public FeedItem(FileCache cache, FeedItemResponse response) { Response = response; Thumb = new Lazy <MediaData>(() => cache[MediaPresentation.Thumb].Any(x => x.Id == response.Id) ? cache[MediaPresentation.Thumb].First(x => x.Id == response.Id) : DownloadMedia(cache, MediaType.Image, MediaPresentation.Thumb, response.Thumb)); Image = new Lazy <MediaData>(() => cache[MediaPresentation.Image].Any(x => x.Id == response.Id) ? cache[MediaPresentation.Image].First(x => x.Id == response.Id) : DownloadMedia(cache, Type, MediaPresentation.Image, response.Image)); Fullsize = new Lazy <MediaData>(() => cache[MediaPresentation.Fullsize].Any(x => x.Id == response.Id) ? cache[MediaPresentation.Fullsize].First(x => x.Id == response.Id) : DownloadMedia(cache, MediaType.Image, MediaPresentation.Fullsize, response.Fullsize)); }
public Builder NewerThan(FeedItemResponse value) { this.Make.NewerThan = value; return(this); }