public SearchResultViewModel(
     SearchResult searchResult,
     Images.ImageCacheService imageCacheService)
 {
     _searchResult = searchResult;
     _imageCacheService = imageCacheService;
 }
Example #2
0
        public static SearchResult FromMessage(Message message)
        {
            string feedUrl = message.Body.FeedUrl;
            string title = message.Body.Title;
            string subtitle = message.Body.Subtitle;
            string author = message.Body.Author;
            string imageUri = message.Body.ImageUri;

            var searchResult = new SearchResult(
                new Uri(feedUrl, UriKind.Absolute),
                title,
                subtitle,
                author,
                new Uri(imageUri, UriKind.Absolute),
                message.Hash);
            return searchResult;
        }
 private Podcast CreatePodcast(SearchResult searchResult)
 {
     var podcast = new Podcast
     {
         Title = searchResult.Title,
         Subtitle = searchResult.Subtitle,
         Author = searchResult.Author,
         FeedUrl = searchResult.FeedUrl,
         ImageUri = searchResult.ImageUri
     };
     _podcastService.BeginLoadPodcast(podcast);
     return podcast;
 }