Exemple #1
0
        private PlaceItem CreatePlaceItem(VisitedPlace place)
        {
            var titem = new PlaceItem(place.Id);

            // get photos count...
            var photos = _photoStore.GetPhotosByTrip(place.Id);

            titem.DisplayName = place.PlaceName;
            titem.NumPictures = photos.Count;
            titem.CoverPhoto  = photos.First();

            return(titem);
        }
Exemple #2
0
 private IHighliteItem CreateHighliteItem(PlaceItem titem)
 => DoCreateHighliteItem(titem.PlaceId, titem.CoverPhoto, titem.NumPictures, HighliteTarget.Trip, titem.DisplayName);