コード例 #1
0
        public Message ToSlackMessage(ICommentNotification notification, BotElement bot, string channel, bool asUser)
        {
            string header = notification.ToMessage(bot, s => s).First();
            var    fields = new[] {
                new AttachmentField(bot.Text.Comment, notification.Comment, false)
            };

            return(SlackHelper.CreateSlackMessage(header, fields, bot, channel, bot.GetSetting("standardColor"), asUser));
        }
コード例 #2
0
        internal static Message CreateMsTeamsMessage(ICommentNotification notification, BotElement bot)
        {
            string heading = notification.ToMessage(bot, s => s).First();

            return(CreateMsTeamsMessage(heading, new[] { new Fact(bot.Text.Comment, notification.Comment) }, bot.GetSetting("standardColor")));
        }
コード例 #3
0
        public Message ToSlackMessage(ICommentNotification notification, BotElement bot, string channel, bool asUser)
        {
            string header = notification.ToMessage(bot, s => s).First();
            var fields = new[] {
                new AttachmentField(bot.Text.Comment, notification.Comment, false)
            };

            return SlackHelper.CreateSlackMessage(header, fields, bot, channel, bot.GetSetting("standardColor"), asUser);
        }