@Immutable @LevelUpApi(contract=PUBLIC) public final class AccessToken extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<AccessToken> |
CREATOR
Implements the
Parcelable interface. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
AccessToken(String accessToken)
Public representation of an AccessToken.
|
AccessToken(String accessToken,
Long userId)
Deprecated.
Use
AccessToken(String, Long, Long) instead. |
AccessToken(String accessToken,
Long merchantId,
Long userId) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(Object o) |
String |
getAccessToken()
Access token.
|
Long |
getMerchantId()
User's merchant ID on the web service if the user is associated with a particular merchant.
|
Long |
getUserId()
User's ID on the web service.
|
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<AccessToken> CREATOR
Parcelable interface.@LevelUpApi(contract=PUBLIC) public AccessToken(String accessToken)
accessToken - the access token.@LevelUpApi(contract=ENTERPRISE) @Deprecated public AccessToken(String accessToken, Long userId)
AccessToken(String, Long, Long) instead.accessToken - the access token.userId - the User's ID on the web service.@LevelUpApi(contract=ENTERPRISE) public AccessToken(String accessToken, Long merchantId, Long userId)
accessToken - the access token.merchantId - the User's merchant ID on the web service if the user is associated with a
particular merchant.userId - the User's ID on the web service.public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelablepublic String getAccessToken()
public Long getMerchantId()
public Long getUserId()