Esempio n. 1
0
        //Post a message using simple strings
        public void PostMessage(string text, string username = null, string channel = null)
        {
            MattermostPayload payload = new MattermostPayload()
            {
                Channel  = channel,
                Username = username,
                Text     = text
            };

            PostMessage(payload);
        }
Esempio n. 2
0
        //Post a message using a Payload object
        public void PostMessage(MattermostPayload payload)
        {
            string payloadJson = JsonConvert.SerializeObject(payload);

            Common.PostCovenant(_uri.ToString(), payloadJson);
        }