Merge "submitted_together: accept standard formatting options"
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user