Beispiel #1
0
        public async Task <CommentPostResult> PostComment(string message, TimeSpan position, IEnumerable <CommandType> commands)
        {
            var res = await CommentClient.SubmitComment(message, position, string.Join(" ", commands.Select(x => x.ToString())));

            var chatResult = res.Chat_result;

            return(new CommentPostResult()
            {
                CommentNo = chatResult.No,
                StatusCode = chatResult.__Status,
                ThreadId = chatResult.Thread,
                VideoPosition = position,
            });
        }
Beispiel #2
0
        public async Task <CommentPostResult> PostComment(string message, TimeSpan position, string commands)
        {
            var res = await CommentClient.SubmitComment(message, position, commands);

            var chatResult = res.Chat_result;

            return(new CommentPostResult()
            {
                CommentNo = chatResult.No,
                StatusCode = chatResult.__Status,
                ThreadId = chatResult.Thread,
                VideoPosition = position,
            });
        }