MemberInfo

data class MemberInfo(val email: String? = "", val firstName: String? = "", val lastName: String? = "", val memberId: String? = "", val hmacId: String? = "", val accessToken: String? = "", val deviceType: String? = "", val countryCode: String? = "") : Parcelable

Represents member information in the Discovery API.

Holds user details such as email, name, and access token.

Constructors

Link copied to clipboard
constructor(email: String? = "", firstName: String? = "", lastName: String? = "", memberId: String? = "", hmacId: String? = "", accessToken: String? = "", deviceType: String? = "", countryCode: String? = "")

Properties

Link copied to clipboard
@SerializedName(value = "accessToken")
val accessToken: String?

The access token, defaults to empty string if unavailable.

Link copied to clipboard
@SerializedName(value = "countryCode")
val countryCode: String?

The country code, defaults to empty string if unavailable.

Link copied to clipboard
@SerializedName(value = "deviceId")
val deviceType: String?

The device type, defaults to empty string if unavailable.

Link copied to clipboard
@SerializedName(value = "email")
val email: String?

The member's email, defaults to empty string if unavailable.

Link copied to clipboard
@SerializedName(value = "firstName")
val firstName: String?

The member's first name, defaults to empty string if unavailable.

Link copied to clipboard
@SerializedName(value = "hmacId")
val hmacId: String?

The HMAC ID, defaults to empty string if unavailable.

Link copied to clipboard
@SerializedName(value = "lastName")
val lastName: String?

The member's last name, defaults to empty string if unavailable.

Link copied to clipboard
@SerializedName(value = "memberId")
val memberId: String?

The member's ID, defaults to empty string if unavailable.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard

Updates the access token in the member information.

Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)