@Immutable @Loggable(value=1) public static final class User.Smart extends Object implements User
User.Smart| 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. 
 | 
boolean | 
exists()
Does it exist in GitHub? 
 | 
int | 
followersCount()
Returns the value of followers property of User's JSON. 
 | 
String | 
followersUrl()
Returns the value of followers_url 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 | 
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. 
 | 
void | 
markAsRead(Date lastread)
Marks notifications as read. 
 | 
String | 
name()
Get his name. 
 | 
Notifications | 
notifications()
Notifications for this user. 
 | 
UserOrganizations | 
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 Smart(User usr)
usr - Userpublic boolean exists()
               throws IOException
IOException - If it failspublic int id()
       throws IOException
IOException - If it failspublic URL avatarUrl() throws IOException
IOException - If it failspublic URL url() throws IOException
IOException - If it failspublic String name() throws IOException
IOException - If it failspublic boolean hasName()
                throws IOException
IOException - If it failspublic String company() throws IOException
IOException - If it failspublic String location() throws IOException
IOException - If it failspublic String email() throws IOException
IOException - If it failspublic String login() throws IOException
Userlogin in interface UserIOException - If it failspublic UserOrganizations organizations()
Userorganizations in interface Userpublic PublicKeys keys()
Userpublic UserEmails emails()
Userpublic Notifications notifications() throws IOException
Usernotifications in interface UserIOException - Thrown, if an error during sending request and/or
  receiving response occurs.public void markAsRead(Date lastread) throws IOException
UsermarkAsRead in interface Userlastread - Describes the last point that notifications were
  checked.IOException - Thrown, if an error during sending request and/or
  receiving response occurs.public javax.json.JsonObject json()
                           throws IOException
JsonReadablejson in interface JsonReadableIOException - If there is any I/O problempublic void patch(javax.json.JsonObject json)
           throws IOException
JsonPatchablepatch in interface JsonPatchablejson - JSON objectIOException - If there is any I/O problempublic String gravatar() throws IOException
IOException - If any I/O error occurs.public String htmlUrl() throws IOException
IOException - If any I/O error occurs.public String followersUrl() throws IOException
IOException - If any I/O error occurs.public String followingUrl() throws IOException
IOException - If any I/O error occurs.public String gistsUrl() throws IOException
IOException - If any I/O error occurs.public String starredUrl() throws IOException
IOException - If any I/O error occurs.public String subscriptionsUrl() throws IOException
IOException - If any I/O error occurs.public String organizationsUrl() throws IOException
IOException - If any I/O error occurs.public String reposUrl() throws IOException
IOException - If any I/O error occurs.public String eventsUrl() throws IOException
IOException - If any I/O error occurs.public String receivedEventsUrl() throws IOException
IOException - If any I/O error occurs.public String type() throws IOException
IOException - If any I/O error occurs.public boolean siteAdmin()
                  throws IOException
IOException - If any I/O error occurs.public String blog() throws IOException
IOException - If any I/O error occurs.public boolean hireable()
                 throws IOException
IOException - If any I/O error occurs.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.public Github.Time created() throws IOException
IOException - If any I/O error occurs.public Github.Time updated() throws IOException
IOException - If any I/O error occurs.Copyright © 2012–2018 jcabi.com. All rights reserved.