Class GHDiscussion

    • Constructor Detail

      • GHDiscussion

        public GHDiscussion()
    • Method Detail

      • getTeam

        @Nonnull
        public GHTeam getTeam()
        Get the team to which this discussion belongs.
        Returns:
        the team for this discussion
      • getTitle

        public String getTitle()
        Get the title of the discussion.
        Returns:
        the title
      • getBody

        public String getBody()
        The description of this discussion.
        Returns:
        the body
      • getNumber

        public long getNumber()
        The number of this discussion.
        Returns:
        the number
      • getId

        public long getId()
        The id number of this discussion. GitHub discussions have "number" instead of "id". This is provided for convenience.
        Overrides:
        getId in class GHObject
        Returns:
        the id number for this discussion
        See Also:
        getNumber()
      • isPrivate

        public boolean isPrivate()
        Whether the discussion is private to the team.
        Returns:
        true if discussion is private.
      • delete

        public void delete()
                    throws IOException
        Delete the discussion
        Throws:
        IOException - the io exception
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object