Пример #1
0
        static void Main(string[] args)
        {
            CommentBuilder comm = new CommentBuilder();

            while (true)
            {
                Console.WriteLine(comm.GetComment());
                Console.ReadLine();
            }
        }
Пример #2
0
        private static async void NewPost(Thing post)
        {
            if (post.Kind == Thing.ThingKind.Link)
            {
                var response = await client.CommentOnThing(post.Data.Name, cb.GetComment());

                var PostResponse = await HttpHelper.HttpResponseToObject <PostResponse>(response);

                if (PostResponse.Success)
                {
                    Console.WriteLine("Successfully posted comment on " + DateTime.Now.ToString());
                }
                else
                {
                    Console.WriteLine("Post comment failed (" + DateTime.Now.ToString() + ")");
                }
            }
        }