Exemple #1
0
        // Send to the SentimentService
        // Take results and metadata and send to Signalr hub
        void getComment(Comment c, string title)
        {
            var com = InvokeRequestResponseService(c).Result;

            RedditSentiment rs = new RedditSentiment
            {
                Value = com.Results.output1.value.Values[0][1],
                Title = title,
                Url = c.Parent.Shortlink,
                Body = c.Body
            };

            callSentimentSite(rs);

            if (c.Comments.Count > 0)
                c.Comments.ToList().ForEach(a =>
                {
                    getComment(a, title);
                });
        }
Exemple #2
0
 void callSentimentSite(RedditSentiment data)
 {
     connProxy.Invoke(HUB_METHOD, data);
 }