@Immutable public interface User extends JsonReadable, JsonPatchable
Modifier and Type | Interface and Description |
---|---|
static class |
User.Smart
Smart user with extra features.
|
Modifier and Type | Method and Description |
---|---|
UserEmails |
emails()
Get user's emails.
|
Github |
github()
Github we're in.
|
PublicKeys |
keys()
Get his keys.
|
String |
login()
Get his login.
|
void |
markAsRead(Date lastread)
Marks notifications as read.
|
List<Notification> |
notifications()
Returns all notifications of a user.
|
UserOrganizations |
organizations()
Get his organizations.
|
json
patch
Github github()
String login() throws IOException
IOException
- If it failsUserOrganizations organizations()
PublicKeys keys()
UserEmails emails()
List<Notification> notifications() throws IOException
IOException
- Thrown, if an error during sending request and/or
receiving response occurs.void markAsRead(Date lastread)
lastread
- Describes the last point that notifications were
checked.Copyright © 2012–2018 jcabi.com. All rights reserved.