Example #1
0
        public MarkdownBlock(string text, TextTypeEnum type = TextTypeEnum.mrkdwn, string accessoryImageUrl = null)
        {
            Markdown = new MarkdownSection(text, type);

            if (!string.IsNullOrEmpty(accessoryImageUrl))
            {
                Accessory = new ImageAccessorySection(accessoryImageUrl);
            }
        }
 public LinkButtonElement(string buttonContent, string linkUrl, ButtonStyle buttonStyle = ButtonStyle.primary)
 {
     Text  = new MarkdownSection(buttonContent, TextTypeEnum.plain_text);
     Url   = linkUrl;
     Style = buttonStyle.ToString();
 }