@Immutable @LevelUpApi(contract=PUBLIC) public final class User extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
User.Gender
Represents selectable options for the user's gender (an optional field).
|
static class |
User.UserBuilder |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<User> |
CREATOR
Implements the
Parcelable interface. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
User(String bornAt,
boolean isConnectedToFacebook,
Map<String,String> customAttributes,
boolean isDebitCardOnly,
String email,
String firstName,
User.Gender gender,
MonetaryValue globalCredit,
Long id,
String lastName,
int merchantsVisitedCount,
int ordersCount,
String termsAcceptedAt,
MonetaryValue totalSavings) |
Modifier and Type | Method and Description |
---|---|
static User.UserBuilder |
builder() |
int |
describeContents() |
boolean |
equals(Object o) |
String |
getBornAt()
The timestamp when the user was born.
|
Map<String,String> |
getCustomAttributes()
A map of custom attributes for the user.
|
String |
getEmail()
The user's email address.
|
String |
getFirstName()
The user's first name.
|
User.Gender |
getGender()
The user's gender.
|
MonetaryValue |
getGlobalCredit()
The amount of global credit the user has.
|
Long |
getId()
The user's web service ID.
|
String |
getLastName()
The user's last name.
|
int |
getMerchantsVisitedCount()
The number of merchants the user has visited.
|
int |
getOrdersCount()
The user's total number of orders placed on LevelUp.
|
String |
getTermsAcceptedAt()
The time the user accepted the LevelUp terms and conditions.
|
MonetaryValue |
getTotalSavings()
The total amount the user has saved by using LevelUp.
|
int |
hashCode() |
boolean |
isConnectedToFacebook()
Determines whether the user is connected to Facebook.
|
boolean |
isDebitCardOnly()
Determines whether the user is only allowed to link debit cards.
|
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<User> CREATOR
Parcelable
interface.public User(String bornAt, boolean isConnectedToFacebook, Map<String,String> customAttributes, boolean isDebitCardOnly, String email, String firstName, User.Gender gender, MonetaryValue globalCredit, Long id, String lastName, int merchantsVisitedCount, int ordersCount, String termsAcceptedAt, MonetaryValue totalSavings)
bornAt
- the timestamp when the user was born.isConnectedToFacebook
- determines whether the user is connected to Facebook.customAttributes
- map of custom attributes for the user.isDebitCardOnly
- determines whether the user is only allowed to link debit cards.email
- the user's email address.firstName
- the user's first name.gender
- the user's gender.globalCredit
- the amount of global credit the user has.id
- the user's web service ID.lastName
- the user's last name.merchantsVisitedCount
- the number of merchants the user has visited.ordersCount
- the user's total number of orders placed on LevelUp.termsAcceptedAt
- the time the user accepted the LevelUp terms and conditions.totalSavings
- the total amount the user has saved by using LevelUp.public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public static User.UserBuilder builder()
public String getBornAt()
public boolean isConnectedToFacebook()
public Map<String,String> getCustomAttributes()
public boolean isDebitCardOnly()
public String getEmail()
public String getFirstName()
public User.Gender getGender()
public MonetaryValue getGlobalCredit()
public Long getId()
public String getLastName()
public int getMerchantsVisitedCount()
public int getOrdersCount()
public String getTermsAcceptedAt()
public MonetaryValue getTotalSavings()