Exemplo n.º 1
0
        private static IList <Attachment> GetForYouCardsAttachments(ForYouResponse forYou)
        {
            var contentList = new List <Attachment>();

            if (forYou != null && forYou.values.Length > 0)
            {
                foreach (var item in forYou.values)
                {
                    contentList.Add(GetHeroCard(
                                        item.label,
                                        item.subLabel,
                                        item.content.description,
                                        new CardImage(url: item.imagePath),
                                        new CardAction(ActionTypes.OpenUrl, "Learn more", value: "https://azure.microsoft.com/en-us/services/storage/")));
                }
            }
            return(contentList);
        }
Exemplo n.º 2
0
 public CarouselCardsDialog(ForYouResponse forYouResponse)
 {
     forYouResponse = forYouResponse;
 }