Package com.jcabi.github
Interface Gist
- All Superinterfaces:
JsonPatchable,JsonReadable
- All Known Implementing Classes:
Gist.Smart
GitHub gist.
- Since:
- 0.1
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classSmart Gist with extra features. -
Method Summary
Methods inherited from interface com.jcabi.github.JsonPatchable
patchMethods inherited from interface com.jcabi.github.JsonReadable
json
-
Method Details
-
github
GitHub github()GitHub we're in.- Returns:
- GitHub
-
identifier
String identifier()Get gist identifier.- Returns:
- Gist identifier
-
read
Read file content.- Parameters:
name- Name of it- Returns:
- File content
- Throws:
IOException- If there is any I/O problem- See Also:
-
write
Write file content.- Parameters:
name- Name of itcontent- Content to write- Throws:
IOException- If there is any I/O problem- See Also:
-
star
Star a gist.- Throws:
IOException- If there is any I/O problem
-
unstar
Unstar a gist.- Throws:
IOException- If there is any I/O problem
-
starred
Checks if Gist is starred.- Returns:
- True if gist is starred
- Throws:
IOException- If there is any I/O problem
-
fork
Fork the gist.- Returns:
- Forked gist
- Throws:
IOException- If there is any I/O problem
-
comments
Get all comments of the gist.- Returns:
- GistComments
- Throws:
IOException- If there is any I/O problem- See Also:
-