public static async Task <ApiList <Comment> > List(Api api, string fileId, ListRequest request = null) { CommentList r = new CommentList() { Request = request ?? new ListRequest(), MetaData = new MetaData() { Uri = Api.Combine("remote.php/dav/comments/files", fileId) } }; return(await r.Read(api)); }
public CommentList Convert(XElement data) { CommentList result = new CommentList() { MetaData = MetaData, Request = Request, Path = Path, List = new List <Comment>() }; foreach (XElement e in data.Elements()) { JObject props = new JObject(); Api.FillJObject(props, data); result.List.Add(props.ConvertToObject <Comment>()); } return(result); }