@Immutable public interface Gist extends JsonReadable, JsonPatchable
Modifier and Type | Interface and Description |
---|---|
static class |
Gist.Smart
Smart Gist with extra features.
|
Modifier and Type | Method and Description |
---|---|
GistComments |
comments()
Get all comments of the gist.
|
Gist |
fork()
Fork the gist.
|
Github |
github()
Github we're in.
|
String |
identifier()
Get gist identifier.
|
String |
read(String name)
Read file content.
|
void |
star()
Star a gist.
|
boolean |
starred()
Checks if Gist is starred.
|
void |
unstar()
Unstar a gist.
|
void |
write(String name,
String content)
Write file content.
|
json
patch
@NotNull(message="Identifier is never NULL") String identifier()
@NotNull(message="file content is never NULL") String read(@NotNull(message="file name can\'t be NULL") String name) throws IOException
name
- Name of itIOException
- If there is any I/O problemvoid write(@NotNull(message="file name can\'t be NULL") String name, @NotNull(message="file content can\'t be NULL") String content) throws IOException
name
- Name of itcontent
- Content to writeIOException
- If there is any I/O problemvoid star() throws IOException
IOException
- If there is any I/O problemvoid unstar() throws IOException
IOException
- If there is any I/O problemboolean starred() throws IOException
IOException
- If there is any I/O problem@NotNull(message="gist is never NULL") Gist fork() throws IOException
IOException
- If there is any I/O problem@NotNull(message="comments are never NULL") GistComments comments() throws IOException
IOException
- If there is any I/O problemCopyright © 2012–2014 jcabi.com. All rights reserved.