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
RestApiException
DiffInfo diff() throws RestApiException
RestApiException
DiffInfo diff(String base) throws RestApiException
base
- revision id of the revision to be used as the diff baseRestApiException
DiffInfo diff(int parent) throws RestApiException
parent
- 1-based parent number to diff againstRestApiException
FileApi.DiffRequest diffRequest() throws RestApiException
RestApiException
void setReviewed(boolean reviewed) throws RestApiException
RestApiException