Esempio n. 1
0
        /// <summary>
        /// Includes an attachment field on the Slack message attachment.
        /// </summary>
        /// <param name="title">The title.</param>
        /// <param name="value">The value.</param>
        /// <param name="isShort">if set to <c>true</c> [is short].</param>
        /// <returns>The client.</returns>
        ISlackAttachmentValues ISlackAttachmentValues.IncludingField(string title, string value, bool isShort)
        {
            var field = new SlackMessageAttachmentField(title, value, isShort);

            pendingSlackMessageAttachment.AddField(field);

            return(this);
        }
        /// <summary>
        /// Adds the field.
        /// </summary>
        /// <param name="field">The field.</param>
        public void AddField(SlackMessageAttachmentField field)
        {
            Guard.Will.ProtectAgainstNullArgument(() => field);

            fields.Add(field);
        }