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); }
public CarouselCardsDialog(ForYouResponse forYouResponse) { forYouResponse = forYouResponse; }