Exemplo n.º 1
0
        public async Task <JObject> Comment(string content, ICanReply status, string?picId = null)
        {
            var configResult = await Config();

            return(await $"{HOST}/api/comments/create"
                   .WithHeader("Referer",
                               $"{HOST}/compose/comment?id={status.Id}{(string.IsNullOrEmpty(picId) ? "" : $"&pids={picId}")}")
Exemplo n.º 2
0
 public void ToCommentState(ICanReply model)
 {
     IsSending         = false;
     PostType          = PostType.Comment;
     ReplyModel        = model;
     MaxImageFileCount = 1;
     Content           = string.Empty;
     MaxLength         = 140;
     Files.Clear();
 }