public static Task <string> AddNGCommentDataAsync(NiconicoContext context, NGCommentType type, string source) { var dict = new Dictionary <string, string>(); dict.Add("mode", "add"); dict.Add("language", "0"); dict.Add("type", type.ToString()); dict.Add("source", source); return(context.PostAsync(NiconicoUrls.UserNGCommentUrl, dict)); }
public static Task <NGCommentResponseCore> DeleteNGCommentAsync(NiconicoContext context, NGCommentType type, string source) { return(DeleteNGCommentDataAsync(context, type, source) .ContinueWith(prevTask => ParseNGCommentListXml <NGCommentResponseCore>(prevTask.Result))); }