@Immutable @Loggable(value=1) public static final class User.Smart extends Object implements User
User.Smart
Constructor and Description |
---|
User.Smart(User usr)
Public ctor.
|
Modifier and Type | Method and Description |
---|---|
URL |
avatarUrl()
Get his avatar URL.
|
String |
bio()
Returns the value of bio property of User's JSON.
|
String |
blog()
Returns the value of blog property of User's JSON.
|
String |
company()
Get his company.
|
Github.Time |
created()
Returns the value of created_at property of User's JSON.
|
String |
email()
Get his email.
|
UserEmails |
emails()
Get user's emails.
|
String |
eventsUrl()
Returns the value of events_url property of User's JSON.
|
int |
followersCount()
Returns the value of followers property of User's JSON.
|
int |
followingCount()
Returns the value of following property of User's JSON.
|
String |
followingUrl()
Returns the value of following_url property of User's JSON.
|
String |
follwersUrl()
Returns the value of followers_url property of User's JSON.
|
String |
gistsUrl()
Returns the value of gists_url property of User's JSON.
|
Github |
github()
Github we're in.
|
String |
gravatar()
Returns the value of gravatar_id property of User's JSON.
|
boolean |
hasName()
Check if user has name.
|
boolean |
hireable()
Returns the value of hireable property of User's JSON.
|
String |
htmlUrl()
Returns the value of html_url property of User's JSON.
|
int |
id()
Get his ID.
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
PublicKeys |
keys()
Get his keys.
|
String |
location()
Get his location.
|
String |
login()
Get his login.
|
String |
name()
Get his name.
|
Organizations |
organizations()
Get his organizations.
|
String |
organizationsUrl()
Returns the value of organizations_url property of User's JSON.
|
void |
patch(javax.json.JsonObject json)
Patch using this JSON object.
|
int |
publicGists()
Returns the value of public_gists property of User's JSON.
|
int |
publicRepos()
Returns the value of public_repos property of User's JSON.
|
String |
receivedEventsUrl()
Returns the value of received_events_url property of User's JSON.
|
String |
reposUrl()
Returns the value of repos_url property of User's JSON.
|
boolean |
siteAdmin()
Returns the value of site_admin property of User's JSON.
|
String |
starredUrl()
Returns the value of starred_url property of User's JSON.
|
String |
subscriptionsUrl()
Returns the value of subscriptions_url property of User's JSON.
|
String |
type()
Returns the value of type property of User's JSON.
|
Github.Time |
updated()
Returns the value of updated_at property of User's JSON.
|
URL |
url()
Get his URL.
|
public int id() throws IOException
IOException
- If it fails@NotNull(message="URL is never NULL") public URL avatarUrl() throws IOException
IOException
- If it fails@NotNull(message="URL is never NULL") public URL url() throws IOException
IOException
- If it fails@NotNull(message="Name is never NULL") public String name() throws IOException
IOException
- If it failspublic boolean hasName() throws IOException
IOException
- If it fails@NotNull(message="Company is never NULL") public String company() throws IOException
IOException
- If it fails@NotNull(message="Location is never NULL") public String location() throws IOException
IOException
- If it fails@NotNull(message="Email is never NULL") public String email() throws IOException
IOException
- If it fails@NotNull(message="Github is never NULL") public Github github()
User
@NotNull(message="Login is never NULL") public String login() throws IOException
User
login
in interface User
IOException
- If it fails@NotNull(message="Organizations is never NULL") public Organizations organizations()
User
organizations
in interface User
@NotNull(message="Keys is never NULL") public PublicKeys keys()
User
@NotNull(message="Emails is never NULL") public UserEmails emails()
User
@NotNull(message="Json is never NULL") public javax.json.JsonObject json() throws IOException
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problempublic void patch(@NotNull(message="Json can\'t be NULL") javax.json.JsonObject json) throws IOException
JsonPatchable
patch
in interface JsonPatchable
json
- JSON objectIOException
- If there is any I/O problem@NotNull(message="Gravatar is never NULL") public String gravatar() throws IOException
IOException
- If any I/O error occurs.@NotNull(message="Html URL is never NULL") public String htmlUrl() throws IOException
IOException
- If any I/O error occurs.@NotNull(message="Followers URL is never NULL") public String follwersUrl() throws IOException
IOException
- If any I/O error occurs.@NotNull(message="Following URL is never NULL") public String followingUrl() throws IOException
IOException
- If any I/O error occurs.@NotNull(message="Gists URL is never NULL") public String gistsUrl() throws IOException
IOException
- If any I/O error occurs.@NotNull(message="Starred URL is never NULL") public String starredUrl() throws IOException
IOException
- If any I/O error occurs.@NotNull(message="Subscriptions URL is never NULL") public String subscriptionsUrl() throws IOException
IOException
- If any I/O error occurs.@NotNull(message="Organizations URL is never NULL") public String organizationsUrl() throws IOException
IOException
- If any I/O error occurs.@NotNull(message="Repos URL is never NULL") public String reposUrl() throws IOException
IOException
- If any I/O error occurs.@NotNull(message="Events URL is never NULL") public String eventsUrl() throws IOException
IOException
- If any I/O error occurs.@NotNull(message="Received enets URL is never NULL") public String receivedEventsUrl() throws IOException
IOException
- If any I/O error occurs.@NotNull(message="Type is never NULL") public String type() throws IOException
IOException
- If any I/O error occurs.public boolean siteAdmin() throws IOException
IOException
- If any I/O error occurs.@NotNull(message="Blog is never NULL") public String blog() throws IOException
IOException
- If any I/O error occurs.@NotNull(message="Hireable is never NULL") public boolean hireable() throws IOException
IOException
- If any I/O error occurs.@NotNull(message="Bio is never NULL") public String bio() throws IOException
IOException
- If any I/O error occurs.public int publicRepos() throws IOException
IOException
- If any I/O error occurs.public int publicGists() throws IOException
IOException
- If any I/O error occurs.public int followersCount() throws IOException
IOException
- If any I/O error occurs.public int followingCount() throws IOException
IOException
- If any I/O error occurs.@NotNull(message="Created time is never NULL") public Github.Time created() throws IOException
IOException
- If any I/O error occurs.@NotNull(message="Updated time is never NULL") public Github.Time updated() throws IOException
IOException
- If any I/O error occurs.Copyright © 2012–2014 jcabi.com. All rights reserved.