public class User extends Resource implements UserId
Constructor and Description |
---|
User(FlattrObject data) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCity()
City the user lives in.
|
String |
getCountry()
Country the user lives in.
|
String |
getDescription()
User's own description.
|
String |
getEmail()
User's email address.
|
String |
getFirstname()
User's real first name.
|
String |
getGravatar()
URL of the user's picture at Gravatar.
|
String |
getIdentifier()
Unique user identifier.
|
String |
getLastname()
User's real last name.
|
String |
getLink()
Human readable link to this resource at Flattr.
|
Date |
getRegisteredAt()
Registration date.
|
String |
getResource()
URL that returns details of this resource as JSON.
|
String |
getUrl()
URL of the user's home page.
|
String |
getUserId()
User id.
|
String |
getUsername()
User login name.
|
int |
hashCode() |
boolean |
isActiveSupporter()
true if the user can flattr other users, false if not. |
static UserId |
withId(String id)
Returns a
UserId for the given User id. |
toFlattrObject, toJSON
public User(FlattrObject data)
public static UserId withId(String id)
UserId
for the given User id.id
- User idUserId
object for this idpublic String getUserId()
Note: At the moment, the user's login name is returned. In a future version, this may change to the user identifier.
public String getIdentifier()
public String getUsername()
getUserId()
instead.public String getResource()
public String getFirstname()
public String getLastname()
public String getCountry()
@RequiredScope(value=EXTENDEDREAD) public String getEmail()
public String getDescription()
public String getGravatar()
public boolean isActiveSupporter()
true
if the user can flattr other users, false
if not.@RequiredScope(value=EXTENDEDREAD) public Date getRegisteredAt()
Copyright © 2010–2017. All rights reserved.