Ejemplo n.º 1
0
        private static DetailMessage createDetailMessage(string AcumaticaURL, SlackMessage message)
        {
            DetailMessage detailMsg = new DetailMessage()
            {
                Channel     = message.Channel,
                Attachments = new List <MessageAttachment>()
                {
                    new MessageAttachment()
                    {
                        Pretext  = message.Pretext,
                        Username = message.Username,
                        Title    = message.Title,
                        Text     = String.Format("<{0}{1}|{2}>", AcumaticaURL, message.ScreenURL, message.ScreenURLDescr),
                        Color    = message.Color,
                        Fallback = message.Fallback
                    }
                }
            };

            return(detailMsg);
        }