Click or drag to resize

Message Class

Holds information about the message to send to Slack.
Inheritance Hierarchy
SystemObject
  NetQuarry.Services.SlackMessage

Namespace:  NetQuarry.Services.Slack
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public class Message

The Message type exposes the following members.

Constructors
  NameDescription
Public methodMessage
Initializes a new instance of the Message class
Top
Properties
  NameDescription
Public propertychannel
The channel. If not specified then the default channel for the configured webhook is used.
Public propertycolor
The color of the line to the left of the attachment. Can either be one of 'good', 'warning', 'danger', or any hex color code.
Public propertyimage_url
A valid URL to an image file that will be displayed inside a message attachment. We currently support the following formats: GIF, JPEG, PNG, and BMP. Large images will be resized to a maximum width of 360px or a maximum height of 500px, while still maintaining the original aspect ratio.
Public propertysubject
The subject of the message. Displayed as the message before the attachment.
Public propertytext
The text under the title.
Public propertythumb_url
A valid URL to an image file that will be displayed as a thumbnail on the right side of a message attachment. We currently support the following formats: GIF, JPEG, PNG, and BMP. The thumbnail's longest dimension will be scaled down to 75px while maintaining the aspect ratio of the image. The filesize of the image must also be less than 500 KB. For best results, please use images that are already 75px by 75px.
Public propertytitle
The title of the message. This is displayed in bold next to the formatted line. Similar to an attachment.
Public propertytitle_link
By passing a valid URL in the title_link parameter (optional), the title text will be hyperlinked.
Public propertyurl
The webhook url. If this is null then the service property is used.
Public propertyusername
The user name or 'from' address used. This does not need to be a valid Slack user.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
Determines if the object value is equal to another object. If the two objects are null, then this returns true. There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways). If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.)
Top
See Also