public static CardAttributes GetStandardCardResponse(string title, string textResponse, string smallImageUrl, string largeImageUrl)
        {
            if (string.IsNullOrWhiteSpace(title))
            {
                throw new ArgumentNullException("No title specified.");
            }

            if (string.IsNullOrWhiteSpace(textResponse))
            {
                throw new ArgumentNullException("No textResponse specified.");
            }

            if (string.IsNullOrWhiteSpace(smallImageUrl))
            {
                throw new ArgumentNullException("No smallImageUrl specified.");
            }

            if (string.IsNullOrWhiteSpace(largeImageUrl))
            {
                throw new ArgumentNullException("No largeImageUrl specified.");
            }

            CardAttributes retCard = new CardAttributes();

            retCard.Type            = CardType.Standard;
            retCard.Text            = textResponse;
            retCard.Title           = title;
            retCard.ImageAttributes = new AlexaImageAttributes();
            retCard.ImageAttributes.SmallImageUrl = smallImageUrl;
            retCard.ImageAttributes.LargeImageUrl = largeImageUrl;

            return(retCard);
        }
        private static CardAttributes InternalGetPermissionCardRequet(IEnumerable <PersonalDataType> dataTypes)
        {
            CardAttributes retCard = new CardAttributes();

            retCard.Type = CardType.AskForPermissionsConsent;

            retCard.Permissions = new List <string>();
            foreach (var dataType in dataTypes)
            {
                string permToken = AlexaUserDataManager.GetPermissionToken(dataType);
                retCard.Permissions.Add(permToken);
            }


            if (retCard.Permissions.Count == 0)
            {
                throw new ArgumentException("No permissions requested");
            }

            return(retCard);
        }
        public static CardAttributes GetSimpleCardResponse(string title, string textResponse)
        {
            if (string.IsNullOrWhiteSpace(title))
            {
                throw new ArgumentNullException("No title specified.");
            }

            if (string.IsNullOrWhiteSpace(textResponse))
            {
                throw new ArgumentNullException("No text response specified.");
            }


            CardAttributes retCard = new CardAttributes();

            retCard.Type    = CardType.Simple;
            retCard.Content = textResponse;
            retCard.Title   = title;


            return(retCard);
        }