public final class Account
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Account> |
CREATOR |
Constructor and Description |
---|
Account(java.lang.String id,
PhoneNumber phoneNumber,
java.lang.String email)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object other) |
java.lang.String |
getEmail()
Getter for the email of the account (if used).
|
java.lang.String |
getId()
Getter for the id of the account.
|
PhoneNumber |
getPhoneNumber()
Getter for the phone number of the account (if used)
|
int |
hashCode() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Account> CREATOR
public Account(java.lang.String id, @Nullable PhoneNumber phoneNumber, @Nullable java.lang.String email)
id
- The id of the account.phoneNumber
- The phoneNumber of the account (if used)email
- The email of the account (if used)public java.lang.String getEmail()
public java.lang.String getId()
public PhoneNumber getPhoneNumber()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable