示例#1
0
        public override async Task PostCommentAsync(string text)
        {
            var(res, raw) = await API.PostCommentAsync(_server, _broadcasterId, _liveId.Value, _lastCommentId, text, _cc);

            if (res.Error != null)
            {
                //error
            }
        }
        public async Task PostCommentAsync(string text)
        {
            var(comments, raw) = await API.PostCommentAsync(_server, _broadcasterId, _liveId, _lastCommentId, text, _cc);

            //var ms = new List<ICommentData>();
            //foreach(var c in comments)
            //{
            //    var data = Tools.Parse(c);
            //    Debug.WriteLine($"{data.Id} {Tools.ToText(data.Message)} PostCommentAsync");
            //    ms.Add(data);
            //}
            //OnReceiveComments(ms);
        }
 public override async Task PostCommentAsync(string text)
 {
     var(comments, raw) = await API.PostCommentAsync(_server, _broadcasterId, _liveId.Value, _lastCommentId, text, _cc);
 }