@@ -84,6 +84,21 @@ public List<AwardEmoji> getIssueNoteAwardEmojis(Object projectIdOrPath, Integer
84
84
return response .readEntity (new GenericType <List <AwardEmoji >>() {});
85
85
}
86
86
87
+ /**
88
+ * Get a list of award emoji for the specified issue note.
89
+ *
90
+ * <pre><code>GitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes/:note_id/award_emoji</code></pre>
91
+ *
92
+ * @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
93
+ * @param issueIid the issue IID of the issue that owns the note
94
+ * @param noteId the note ID to get the award emojis for
95
+ * @return a list of AwardEmoji for the specified note
96
+ * @throws GitLabApiException if any exception occurs
97
+ */
98
+ public List <AwardEmoji > getNoteAwardEmojis (Object projectIdOrPath , Integer issueIid , Integer noteId ) throws GitLabApiException {
99
+ return getIssueNoteAwardEmojis (projectIdOrPath , issueIid , noteId );
100
+ }
101
+
87
102
/**
88
103
* Get a list of award emoji for the specified merge request note.
89
104
*
@@ -170,6 +185,24 @@ public AwardEmoji getIssueNoteAwardEmoji(Object projectIdOrPath, Integer issueIi
170
185
return (response .readEntity (AwardEmoji .class ));
171
186
}
172
187
188
+ /**
189
+ * Get the specified award emoji for the specified issue note.
190
+ *
191
+ * <pre><code>GitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes/:note_id/award_emoji/:award_id</code></pre>
192
+ *
193
+ * @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
194
+ * @param issueIid the issue IID of the issue that owns the note
195
+ * @param noteId the note ID to get the award emoji from
196
+ * @param awardId the ID of the award emoji to get
197
+ * @return an AwardEmoji instance for the specified award emoji
198
+ * @throws GitLabApiException if any exception occurs
199
+ * @deprecated use {@link #getIssueNoteAwardEmoji(Object, Integer, Integer, Integer)} instead
200
+ */
201
+ @ Deprecated
202
+ public AwardEmoji getNoteAwardEmoji (Object projectIdOrPath , Integer issueIid , Integer noteId , Integer awardId ) throws GitLabApiException {
203
+ return getIssueNoteAwardEmoji (projectIdOrPath , issueIid , noteId , awardId );
204
+ }
205
+
173
206
/**
174
207
* Get the specified award emoji for the specified merge request note.
175
208
*
@@ -261,6 +294,24 @@ public AwardEmoji addIssueNoteAwardEmoji(Object projectIdOrPath, Integer issueIi
261
294
return (response .readEntity (AwardEmoji .class ));
262
295
}
263
296
297
+ /**
298
+ * Add an award emoji for the specified issue note.
299
+ *
300
+ * <pre><code>GitLab Endpoint: POST /projects/:id/issues/:issue_iid/notes/:noteId/award_emoji</code></pre>
301
+ *
302
+ * @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
303
+ * @param issueIid the issue IID of the issue that owns the note
304
+ * @param noteId the note ID to add the award emoji to
305
+ * @param name the name of the award emoji to add
306
+ * @return an AwardEmoji instance for the added award emoji
307
+ * @throws GitLabApiException if any exception occurs
308
+ * @deprecated use {@link #addIssueNoteAwardEmoji(Object, Integer, Integer, String)}
309
+ */
310
+ @ Deprecated
311
+ public AwardEmoji addNoteAwardEmoji (Object projectIdOrPath , Integer issueIid , Integer noteId , String name ) throws GitLabApiException {
312
+ return addIssueNoteAwardEmoji (projectIdOrPath , issueIid , noteId , name );
313
+ }
314
+
264
315
/**
265
316
* Add an award emoji for the specified merge request note.
266
317
*
@@ -273,7 +324,7 @@ public AwardEmoji addIssueNoteAwardEmoji(Object projectIdOrPath, Integer issueIi
273
324
* @return an AwardEmoji instance for the added award emoji
274
325
* @throws GitLabApiException if any exception occurs
275
326
*/
276
- public AwardEmoji addNoteAwardEmoji (Object projectIdOrPath , Integer mergeRequestIid , Integer noteId , String name ) throws GitLabApiException {
327
+ public AwardEmoji addMergeRequestAwardEmoji (Object projectIdOrPath , Integer mergeRequestIid , Integer noteId , String name ) throws GitLabApiException {
277
328
GitLabApiForm form = new GitLabApiForm ().withParam ("name" , name , true );
278
329
Response response = post (Response .Status .CREATED , form .asMap (),
279
330
"projects" , getProjectIdOrPath (projectIdOrPath ), "merge_requests" , mergeRequestIid , "notes" , noteId , "award_emoji" );
@@ -336,11 +387,28 @@ public void deleteSnippetAwardEmoji(Object projectIdOrPath, Integer snippetId, I
336
387
* @param awardId the ID of the award emoji to delete
337
388
* @throws GitLabApiException if any exception occurs
338
389
*/
339
- public void deleteNoteAwardEmoji (Object projectIdOrPath , Integer issueIid , Integer noteId , Integer awardId ) throws GitLabApiException {
390
+ public void deleteIssueNoteAwardEmoji (Object projectIdOrPath , Integer issueIid , Integer noteId , Integer awardId ) throws GitLabApiException {
340
391
delete (Response .Status .NO_CONTENT , null ,
341
392
"projects" , getProjectIdOrPath (projectIdOrPath ), "issues" , issueIid , "notes" , noteId , "award_emoji" , awardId );
342
393
}
343
394
395
+ /**
396
+ * Delete an award emoji from the specified issue note.
397
+ *
398
+ * <pre><code>GitLab Endpoint: DELETE /projects/:id/issues/:issue_iid/notes/:note_id/award_emoji/:award_id</code></pre>
399
+ *
400
+ * @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
401
+ * @param issueIid the issue IID that owns the note
402
+ * @param noteId the note ID of the note to delete the award emoji from
403
+ * @param awardId the ID of the award emoji to delete
404
+ * @throws GitLabApiException if any exception occurs
405
+ * @deprecated use {@link #deleteIssueNoteAwardEmoji(Object, Integer, Integer, Integer)} instead
406
+ */
407
+ @ Deprecated
408
+ public void deleteNoteAwardEmoji (Object projectIdOrPath , Integer issueIid , Integer noteId , Integer awardId ) throws GitLabApiException {
409
+ deleteIssueNoteAwardEmoji (projectIdOrPath , issueIid , noteId , awardId );
410
+ }
411
+
344
412
/**
345
413
* Delete an award emoji from the specified merge request note.
346
414
*
@@ -352,7 +420,7 @@ public void deleteNoteAwardEmoji(Object projectIdOrPath, Integer issueIid, Integ
352
420
* @param awardId the ID of the award emoji to delete
353
421
* @throws GitLabApiException if any exception occurs
354
422
*/
355
- public void deleteNoteAwardEmoji (Object projectIdOrPath , Integer mergeRequestIid , Integer noteId , Integer awardId ) throws GitLabApiException {
423
+ public void deleteMergeRequestNoteAwardEmoji (Object projectIdOrPath , Integer mergeRequestIid , Integer noteId , Integer awardId ) throws GitLabApiException {
356
424
delete (Response .Status .NO_CONTENT , null ,
357
425
"projects" , getProjectIdOrPath (projectIdOrPath ), "merge_requests" , mergeRequestIid , "notes" , noteId , "award_emoji" , awardId );
358
426
}
0 commit comments