public interface FileApi
| Modifier and Type | Interface and Description |
|---|---|
static class |
FileApi.DiffRequest |
static class |
FileApi.NotImplemented
A default implementation which allows source compatibility when adding new methods to the
interface.
|
| Modifier and Type | Method and Description |
|---|---|
BinaryResult |
content() |
DiffInfo |
diff()
Diff against the revision's parent version of the file.
|
DiffInfo |
diff(int parent) |
DiffInfo |
diff(String base) |
FileApi.DiffRequest |
diffRequest()
Creates a request to retrieve the diff.
|
void |
setReviewed(boolean reviewed)
Set the file reviewed or not reviewed
|
BinaryResult content() throws RestApiException
RestApiExceptionDiffInfo diff() throws RestApiException
RestApiExceptionDiffInfo diff(String base) throws RestApiException
base - revision id of the revision to be used as the diff baseRestApiExceptionDiffInfo diff(int parent) throws RestApiException
parent - 1-based parent number to diff againstRestApiExceptionFileApi.DiffRequest diffRequest() throws RestApiException
RestApiExceptionvoid setReviewed(boolean reviewed)
throws RestApiException
RestApiException