C# Class Microsoft.AspNet.WebHooks.SlackAttachment

The SlackAttachment is used to describe the contents of an SlackSlashResponse.
Mostra file Open project: aspnet/WebHooks Class Usage Examples

Private Properties

Property Type Description
SlackAttachment System

Public Methods

Method Description
SlackAttachment ( string text, string fallback ) : System

Initializes a new instance of the SlackAttachment class with the given text and fallback.

Private Methods

Method Description
SlackAttachment ( ) : System

Default constructor for serialization purposes

Method Details

SlackAttachment() public method

Initializes a new instance of the SlackAttachment class with the given text and fallback.
public SlackAttachment ( string text, string fallback ) : System
text string The main text in a message attachment. The text may contain Markdown-style formatting /// as described in https://api.slack.com/docs/formatting. The contents will automatically be collapsed /// if it contains more than 700 characters or more than 5 line breaks. In this case it will be displayed with /// a "Show more..." link to the contents. ///
fallback string A plain-text summary of the attachment which will be used in clients /// that don't show formatted text (e.g. IRC, mobile notifications). It should not contain any markup.
return System