Plugin API: Add method for adding reviewers with string as argument

This change simplifies adding reviewers.

Change-Id: I5ec0b5d22f7f3a41fbadf889e8b4c82be5a52e5c
This commit is contained in:
David Ostrovsky 2014-01-17 23:57:16 +01:00
parent 90f9e89ce9
commit 256f9f4afd
2 changed files with 8 additions and 0 deletions

View File

@ -33,4 +33,5 @@ public interface ChangeApi {
ChangeApi revert(RevertInput in) throws RestApiException;
void addReviewer(AddReviewerInput in) throws RestApiException;
void addReviewer(String in) throws RestApiException;
}

View File

@ -137,6 +137,13 @@ class ChangeApiImpl implements ChangeApi {
}
}
@Override
public void addReviewer(String reviewer) throws RestApiException {
AddReviewerInput in = new AddReviewerInput();
in.reviewer = reviewer;
addReviewer(in);
}
@Override
public void addReviewer(AddReviewerInput in) throws RestApiException {
try {