Package com.jcabi.github
Class Organization.Smart
- java.lang.Object
-
- com.jcabi.github.Organization.Smart
-
- All Implemented Interfaces:
JsonPatchable,JsonReadable,Organization,Comparable<Organization>
- Enclosing interface:
- Organization
@Immutable @Loggable(1) public static final class Organization.Smart extends Object implements Organization
Smart Organization with extra features.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.github.Organization
Organization.Smart
-
-
Constructor Summary
Constructors Constructor Description Smart(Organization orgn)Public ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLavatarUrl()Get its avatar URL.StringbillingEmail()Get its billingEmail.voidbillingEmail(String billingemail)Change its billingEmail.Stringblog()Get its blog.Stringcompany()Get its company.voidcompany(String company)Change its company.intcompareTo(Organization obj)DatecreatedAt()When this organisation was created.Stringemail()Get its email.voidemail(String email)Change its email.intfollowers()Get its followers count.intfollowing()Get its following count.Githubgithub()Github we're in.URLhtmlUrl()Get its HTML URL.javax.json.JsonObjectjson()Describe it in a JSON object.Stringlocation()Get its location.voidlocation(String location)Change its location.Stringlogin()Get this organization's login.Stringname()Get its name.voidname(String name)Change its name.intnumber()Get this organization's ID.voidpatch(javax.json.JsonObject json)Patch using this JSON object.intpublicGists()Get its public gists count.PublicMemberspublicMembers()Get this organization's public members.intpublicRepos()Get its public repos count.Stringtype()Get its type.URLurl()Get its URL.
-
-
-
Constructor Detail
-
Smart
public Smart(Organization orgn)
Public ctor.- Parameters:
orgn- Organization
-
-
Method Detail
-
number
public int number() throws IOExceptionGet 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 IOExceptionGet 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 IOExceptionGet 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 IOExceptionGet its followers count.- Returns:
- Count of followers of organization
- Throws:
IOException- If there is any I/O problem
-
following
public int following() throws IOExceptionGet 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:OrganizationGet this organization's login.- Specified by:
loginin interfaceOrganization- Returns:
- Login name
-
github
public Github github()
Description copied from interface:OrganizationGithub we're in.- Specified by:
githubin interfaceOrganization- Returns:
- Github
-
publicMembers
public PublicMembers publicMembers()
Description copied from interface:OrganizationGet this organization's public members.- Specified by:
publicMembersin interfaceOrganization- Returns:
- Public members
-
json
public javax.json.JsonObject json() throws IOExceptionDescription copied from interface:JsonReadableDescribe it in a JSON object.- Specified by:
jsonin interfaceJsonReadable- Returns:
- JSON object
- Throws:
IOException- If there is any I/O problem
-
patch
public void patch(javax.json.JsonObject json) throws IOExceptionDescription copied from interface:JsonPatchablePatch using this JSON object.- Specified by:
patchin interfaceJsonPatchable- Parameters:
json- JSON object- Throws:
IOException- If there is any I/O problem
-
compareTo
public int compareTo(Organization obj)
- Specified by:
compareToin interfaceComparable<Organization>
-
-