Merge "submitted_together: accept standard formatting options"

This commit is contained in:
Shawn Pearce
2016-09-21 15:50:39 +00:00
committed by Gerrit Code Review
6 changed files with 131 additions and 31 deletions

View File

@@ -97,6 +97,9 @@ public interface ChangeApi {
List<ChangeInfo> submittedTogether() throws RestApiException;
SubmittedTogetherInfo submittedTogether(
EnumSet<SubmittedTogetherOption> options) throws RestApiException;
SubmittedTogetherInfo submittedTogether(
EnumSet<ListChangesOption> listOptions,
EnumSet<SubmittedTogetherOption> submitOptions) throws RestApiException;
/**
* Publishes a draft change.
@@ -360,5 +363,12 @@ public interface ChangeApi {
EnumSet<SubmittedTogetherOption> options) throws RestApiException {
throw new NotImplementedException();
}
@Override
public SubmittedTogetherInfo submittedTogether(
EnumSet<ListChangesOption> a,
EnumSet<SubmittedTogetherOption> b) throws RestApiException {
throw new NotImplementedException();
}
}
}

View File

@@ -16,15 +16,5 @@ package com.google.gerrit.extensions.api.changes;
/** Output options available for submitted_together requests. */
public enum SubmittedTogetherOption {
NON_VISIBLE_CHANGES(0);
private final int value;
SubmittedTogetherOption(int v) {
value = v;
}
public int getValue() {
return value;
}
NON_VISIBLE_CHANGES;
}