Ejemplo n.º 1
0
        public string Get(SlackPostModel slack)
        {
            var reply = new SlackReply();

            reply.Text                     = "hei hei!"
                                   var att = new Attachment();

            att.text = "wat da!"
        }
        public void CueSubscriberSlack(SlackReply reply, ILambdaContext ctx)
        {
            processor.Logger = new LambdaLogger(ctx.Logger);
            processor.Logger.Info($"Version : {Version}");
            processor.Logger.Info(JsonTools.Serialize(reply));
            Cue      cue      = Slack.CreateCue(reply);
            CueReply cueReply = processor.ReceiveCue(cue);

            processor.Logger.Info(JsonTools.Serialize(cueReply));
            String slackReply = Slack.FormatResponse(cue, cueReply);

            processor.Logger.Info(slackReply);
            Slack.SendResponse(cue.Payload.ResponseUrl, slackReply);
        }