Class CommentsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.workitemtracking.comments.CommentsRequestBuilder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the query parameters.static classRepresents the list query parameters.static classRequest configuration object for the query parameters.static classRepresents the list query parameters.static classRequest configuration object for the query parameters.static classRequest configuration object for the query parameters.Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter -
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer -
Constructor Summary
ConstructorsConstructorDescriptionCommentsRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) -
Method Summary
Modifier and TypeMethodDescriptionAdd a comment on a work item.add(String comment, int workItemId, CommentFormat format) Add a comment on a work item.Add a comment on a work item.addAsync(String comment, int workItemId, CommentFormat format) Add a comment on a work item.delete(int commentId, int workItemId) Delete a comment on a work item.deleteAsync(int commentId, int workItemId) Delete a comment on a work item.get(int commentId, int workItemId) Returns a work item comment.get(int commentId, int workItemId, Consumer<CommentsRequestBuilder.RequestConfiguration> requestConfiguration) Returns a work item comment.getAsync(int commentId, int workItemId) Returns a work item comment.getAsync(int commentId, int workItemId, Consumer<CommentsRequestBuilder.RequestConfiguration> requestConfiguration) Returns a work item comment.list(int workItemId) Returns a list of work item comments, pageable.list(int workItemId, Consumer<CommentsRequestBuilder.ListRequestConfiguration> requestConfiguration) Returns a list of work item comments, pageable.listAsync(int workItemId) Returns a list of work item comments, pageable.listAsync(int workItemId, Consumer<CommentsRequestBuilder.ListRequestConfiguration> requestConfiguration) Returns a list of work item comments, pageable.listBatch(int workItemId, Consumer<CommentsRequestBuilder.ListBatchRequestConfiguration> requestConfiguration) Returns a list of work item comments by ids.listBatchAsync(int workItemId, Consumer<CommentsRequestBuilder.ListBatchRequestConfiguration> requestConfiguration) Returns a list of work item comments by ids.Update a comment on a work item.update(String comment, int commentId, int workItemId, CommentFormat format) Update a comment on a work item.updateAsync(String comment, int workItemId) Update a comment on a work item.updateAsync(String comment, int workItemId, CommentFormat format) Update a comment on a work item.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
CommentsRequestBuilder
-
-
Method Details
-
addAsync
Add a comment on a work item.- Parameters:
comment- Text of the comment.workItemId- Id of a work item.- Returns:
- Comment Object
Comment - Throws:
AzDException- Default Api Exception handler.
-
addAsync
public CompletableFuture<Comment> addAsync(String comment, int workItemId, CommentFormat format) throws AzDException Add a comment on a work item.- Parameters:
comment- Text of the comment.workItemId- Id of a work item.format- Format of a work item comment (Markdown or Html).- Returns:
- Comment Object
Comment - Throws:
AzDException- Default Api Exception handler.
-
getAsync
Returns a work item comment.- Parameters:
commentId- Id of the comment.workItemId- Id of a work item.- Returns:
- Comment Object
Comment - Throws:
AzDException- Default Api Exception handler.
-
getAsync
public CompletableFuture<Comment> getAsync(int commentId, int workItemId, Consumer<CommentsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Returns a work item comment.- Parameters:
commentId- Id of the comment.workItemId- Id of a work item.requestConfiguration- Represents the query parameters.- Returns:
- Comment Object
Comment - Throws:
AzDException- Default Api Exception handler.
-
listAsync
Returns a list of work item comments, pageable.- Parameters:
workItemId- Id of a work item.- Returns:
- List of Comment Object
CommentList - Throws:
AzDException- Default Api Exception handler.
-
listAsync
public CompletableFuture<CommentList> listAsync(int workItemId, Consumer<CommentsRequestBuilder.ListRequestConfiguration> requestConfiguration) throws AzDException Returns a list of work item comments, pageable.- Parameters:
workItemId- Id of a work item.requestConfiguration- Represents the query parameters.- Returns:
- List of Comment Object
CommentList - Throws:
AzDException- Default Api Exception handler.
-
listBatchAsync
public CompletableFuture<CommentList> listBatchAsync(int workItemId, Consumer<CommentsRequestBuilder.ListBatchRequestConfiguration> requestConfiguration) throws AzDException Returns a list of work item comments by ids.- Parameters:
workItemId- Id of a work item.requestConfiguration- Represents the query parameters.- Returns:
- List of Comment Object
CommentList - Throws:
AzDException- Default Api Exception handler.
-
deleteAsync
Delete a comment on a work item.- Parameters:
commentId- Id of the comment.workItemId- Id of a work item.- Throws:
AzDException- Default Api Exception handler.
-
updateAsync
Update a comment on a work item.- Parameters:
comment- Text of the comment.workItemId- Id of a work item.- Returns:
- Comment Object
Comment - Throws:
AzDException- Default Api Exception handler.
-
updateAsync
public CompletableFuture<Comment> updateAsync(String comment, int workItemId, CommentFormat format) throws AzDException Update a comment on a work item.- Parameters:
comment- Text of the comment.workItemId- Id of a work item.format- Format of a work item comment (Markdown or Html).- Returns:
- Comment Object
Comment - Throws:
AzDException- Default Api Exception handler.
-
add
Add a comment on a work item.- Parameters:
comment- Text of the comment.workItemId- Id of a work item.- Returns:
- Comment Object
Comment - Throws:
AzDException- Default Api Exception handler.
-
add
Add a comment on a work item.- Parameters:
comment- Text of the comment.workItemId- Id of a work item.format- Format of a work item comment (Markdown or Html).- Returns:
- Comment Object
Comment - Throws:
AzDException- Default Api Exception handler.
-
get
Returns a work item comment.- Parameters:
commentId- Id of the comment.workItemId- Id of a work item.- Returns:
- Comment Object
Comment - Throws:
AzDException- Default Api Exception handler.
-
get
public Comment get(int commentId, int workItemId, Consumer<CommentsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Returns a work item comment.- Parameters:
commentId- Id of the comment.workItemId- Id of a work item.requestConfiguration- Represents the query parameters.- Returns:
- Comment Object
Comment - Throws:
AzDException- Default Api Exception handler.
-
list
Returns a list of work item comments, pageable.- Parameters:
workItemId- Id of a work item.- Returns:
- List of Comment Object
CommentList - Throws:
AzDException- Default Api Exception handler.
-
list
public CommentList list(int workItemId, Consumer<CommentsRequestBuilder.ListRequestConfiguration> requestConfiguration) throws AzDException Returns a list of work item comments, pageable.- Parameters:
workItemId- Id of a work item.requestConfiguration- Represents the query parameters.- Returns:
- List of Comment Object
CommentList - Throws:
AzDException- Default Api Exception handler.
-
listBatch
public CommentList listBatch(int workItemId, Consumer<CommentsRequestBuilder.ListBatchRequestConfiguration> requestConfiguration) throws AzDException Returns a list of work item comments by ids.- Parameters:
workItemId- Id of a work item.requestConfiguration- Represents the query parameters.- Returns:
- List of Comment Object
CommentList - Throws:
AzDException- Default Api Exception handler.
-
delete
Delete a comment on a work item.- Parameters:
commentId- Id of the comment.workItemId- Id of a work item.- Throws:
AzDException- Default Api Exception handler.
-
update
Update a comment on a work item.- Parameters:
comment- Text of the comment.commentId- Id of the comment.workItemId- Id of a work item.- Returns:
- Comment Object
Comment - Throws:
AzDException- Default Api Exception handler.
-
update
public Comment update(String comment, int commentId, int workItemId, CommentFormat format) throws AzDException Update a comment on a work item.- Parameters:
comment- Text of the comment.commentId- Id of the comment.workItemId- Id of a work item.format- Format of a work item comment (Markdown or Html).- Returns:
- Comment Object
Comment - Throws:
AzDException- Default Api Exception handler.
-