Class Gist.Smart

    • Constructor Detail

      • Smart

        public Smart​(Gist gst)
        Public ctor.
        Parameters:
        gst - Gist
    • Method Detail

      • identifier

        public String identifier()
        Get gist id.
        Specified by:
        identifier in interface Gist
        Returns:
        Gist id
      • github

        public Github github()
        Description copied from interface: Gist
        Github we're in.
        Specified by:
        github in interface Gist
        Returns:
        Github
      • write

        public void write​(String name,
                          String content)
                   throws IOException
        Description copied from interface: Gist
        Write file content.
        Specified by:
        write in interface Gist
        Parameters:
        name - Name of it
        content - Content to write
        Throws:
        IOException - If there is any I/O problem
        See Also:
        Edit a Gist
      • star

        public void star()
                  throws IOException
        Description copied from interface: Gist
        Star a gist.
        Specified by:
        star in interface Gist
        Throws:
        IOException - If there is any I/O problem
      • unstar

        public void unstar()
                    throws IOException
        Description copied from interface: Gist
        Unstar a gist.
        Specified by:
        unstar in interface Gist
        Throws:
        IOException - If there is any I/O problem
      • starred

        public boolean starred()
                        throws IOException
        Description copied from interface: Gist
        Checks if Gist is starred.
        Specified by:
        starred in interface Gist
        Returns:
        True if gist is starred
        Throws:
        IOException - If there is any I/O problem
      • fork

        public Gist fork()
                  throws IOException
        Description copied from interface: Gist
        Fork the gist.
        Specified by:
        fork in interface Gist
        Returns:
        Forked gist
        Throws:
        IOException - If there is any I/O problem
      • json

        public javax.json.JsonObject json()
                                   throws IOException
        Description copied from interface: JsonReadable
        Describe it in a JSON object.
        Specified by:
        json in interface JsonReadable
        Returns:
        JSON object
        Throws:
        IOException - If there is any I/O problem
      • patch

        public void patch​(javax.json.JsonObject json)
                   throws IOException
        Description copied from interface: JsonPatchable
        Patch using this JSON object.
        Specified by:
        patch in interface JsonPatchable
        Parameters:
        json - JSON object
        Throws:
        IOException - If there is any I/O problem