Ejemplo n.º 1
0
        /// <summary>
        /// Retrieves notes (comments) of an epic.
        /// </summary>
        /// <param name="groupId">The ID, path or <see cref="Group"/> of the group.</param>
        /// <param name="epicId">Id of the epic.</param>
        /// <param name="options">Notes retrieval options.</param>
        /// <returns>Epic satisfying options.</returns>
        public async Task <IList <Note> > GetNotesAsync(GroupId groupId, int epicId, Action <NotesQueryOptions> options = null)
        {
            var queryOptions = new NotesQueryOptions();

            options?.Invoke(queryOptions);

            string url = _notesQueryBuilder.Build($"groups/{groupId}/epics/{epicId}/notes", queryOptions);

            return(await _httpFacade.GetPagedList <Note>(url));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Retrieves notes (comments) of an issue.
        /// </summary>
        /// <param name="projectId">The ID, path or <see cref="Project"/> of the project.</param>
        /// <param name="issueIid">Iid of the issue.</param>
        /// <param name="options">IssueNotes retrieval options.</param>
        /// <returns>Notes satisfying options.</returns>
        public async Task <IList <Note> > GetNotesAsync(ProjectId projectId, int issueIid, Action <NotesQueryOptions> options = null)
        {
            var queryOptions = new NotesQueryOptions();

            options?.Invoke(queryOptions);

            string url = _notesQueryBuilder.Build($"projects/{projectId}/issues/{issueIid}/notes", queryOptions);

            return(await _httpFacade.GetPagedList <Note>(url));
        }