Пример #1
0
        private IList <Attachment> GetTheaterCardsAttachments(List <Theater> theaters)
        {
            List <Attachment> retVal = new List <Attachment>();

            foreach (var theater in theaters)
            {
                retVal.Add(MovieSeekerUtilities.GetHeroCard(theater.Name, theater.Location, selectedMovie.Name, new CardImage(url: theater.Cordinates), new CardAction(ActionTypes.OpenUrl, "Location", value: theater.Map)));
            }

            return(retVal);
        }
Пример #2
0
        private IList <Attachment> GetMovieCardsAttachments(List <Movie> theaters)
        {
            List <Attachment> retVal = new List <Attachment>();

            foreach (var movie in movieList)
            {
                retVal.Add(MovieSeekerUtilities.GetHeroCard(movie.Name, movie.Genre, $"Cast: {movie.Cast}", new CardImage(url: movie.Poster), new CardAction(ActionTypes.PostBack, movie.Name, value: movie.Id.ToString())));
            }

            return(retVal);
        }