Exemplo n.º 1
0
 public static SlackSection SetMarkdown(this SlackSection section, string markdown)
 {
     section.Text = new SlackMarkdown {
         Text = markdown
     };
     return(section);
 }
Exemplo n.º 2
0
 public static SlackSection SetImageAccessory(this SlackSection section, string imageUrl, string altText = default)
 {
     section.Accessory = new SlackImage {
         ImageUrl = imageUrl, AltText = altText
     };
     return(section);
 }
Exemplo n.º 3
0
 public static SlackSection SetPlainText(this SlackSection section, string text, bool emoji = true)
 {
     section.Text = new SlackPlainText {
         Text = text, Emoji = emoji
     };
     return(section);
 }
Exemplo n.º 4
0
 public static SlackSection SetStaticSelectAccessory(this SlackSection section, Func <SlackStaticSelect, SlackStaticSelect> selectBuilder)
 {
     section.Accessory = selectBuilder(new SlackStaticSelect());
     return(section);
 }
Exemplo n.º 5
0
 public static SlackSection SetUsersSelectAccessory(this SlackSection section)
 {
     section.Accessory = new SlackUsersSelect();
     return(section);
 }