Class Organization.Smart

    • Constructor Detail

      • Smart

        public Smart​(Organization orgn)
        Public ctor.
        Parameters:
        orgn - Organization
    • Method Detail

      • number

        public int number()
                   throws IOException
        Get this organization's ID.
        Returns:
        Unique organization ID
        Throws:
        IOException - If it fails
      • company

        public String company()
                       throws IOException
        Get its company.
        Returns:
        Company of organization
        Throws:
        IOException - If there is any I/O problem
      • company

        public void company​(String company)
                     throws IOException
        Change its company.
        Parameters:
        company - Company of organization
        Throws:
        IOException - If there is any I/O problem
      • location

        public String location()
                        throws IOException
        Get its location.
        Returns:
        Location of organization
        Throws:
        IOException - If there is any I/O problem
      • location

        public void location​(String location)
                      throws IOException
        Change its location.
        Parameters:
        location - Location of organization
        Throws:
        IOException - If there is any I/O problem
      • name

        public String name()
                    throws IOException
        Get its name.
        Returns:
        Name of organization
        Throws:
        IOException - If there is any I/O problem
      • name

        public void name​(String name)
                  throws IOException
        Change its name.
        Parameters:
        name - Company of organization
        Throws:
        IOException - If there is any I/O problem
      • email

        public String email()
                     throws IOException
        Get its email.
        Returns:
        Email of organization
        Throws:
        IOException - If there is any I/O problem
      • email

        public void email​(String email)
                   throws IOException
        Change its email.
        Parameters:
        email - Email of organization
        Throws:
        IOException - If there is any I/O problem
      • billingEmail

        public String billingEmail()
                            throws IOException
        Get its billingEmail.
        Returns:
        BillingEmail of organization
        Throws:
        IOException - If there is any I/O problem
      • billingEmail

        public void billingEmail​(String billingemail)
                          throws IOException
        Change its billingEmail.
        Parameters:
        billingemail - BillingEmail of organization
        Throws:
        IOException - If there is any I/O problem
      • blog

        public String blog()
                    throws IOException
        Get its blog.
        Returns:
        Blog of organization
        Throws:
        IOException - If there is any I/O problem
      • url

        public URL url()
                throws IOException
        Get its URL.
        Returns:
        URL of organization
        Throws:
        IOException - If there is any I/O problem
      • htmlUrl

        public URL htmlUrl()
                    throws IOException
        Get its HTML URL.
        Returns:
        HTML URL of organization
        Throws:
        IOException - If there is any I/O problem
      • avatarUrl

        public URL avatarUrl()
                      throws IOException
        Get its avatar URL.
        Returns:
        Avatar URL of organization
        Throws:
        IOException - If there is any I/O problem
      • createdAt

        public Date createdAt()
                       throws IOException
        When this organisation was created.
        Returns:
        Date of creation
        Throws:
        IOException - If there is any I/O problem
      • publicRepos

        public int publicRepos()
                        throws IOException
        Get its public repos count.
        Returns:
        Count of public repos of organization
        Throws:
        IOException - If there is any I/O problem
      • publicGists

        public int publicGists()
                        throws IOException
        Get its public gists count.
        Returns:
        Count of public gists of organization
        Throws:
        IOException - If there is any I/O problem
      • followers

        public int followers()
                      throws IOException
        Get its followers count.
        Returns:
        Count of followers of organization
        Throws:
        IOException - If there is any I/O problem
      • following

        public int following()
                      throws IOException
        Get its following count.
        Returns:
        Count of following of organization
        Throws:
        IOException - If there is any I/O problem
      • type

        public String type()
                    throws IOException
        Get its type.
        Returns:
        Type of organization
        Throws:
        IOException - If there is any I/O problem
      • login

        public String login()
        Description copied from interface: Organization
        Get this organization's login.
        Specified by:
        login in interface Organization
        Returns:
        Login name
      • 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