LoyaltyPoints
Stay organized with collections
Save and categorize content based on your preferences.
Parcelable representing the loyalty reward points label, balance, and type.
Inherited Constant Summary
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Inherited Method Summary
From class java.lang.Object
From interface android.os.Parcelable
abstract int |
describeContents
()
|
abstract void |
writeToParcel
( Parcel
arg0,
int arg1)
|
Public Methods
public String
getType
()
This method is deprecated.This value is no longer used.
public TimeInterval
getValidTimeInterval
()
This method is deprecated.This value is unused by the platform and will be removed in the future.
public void
writeToParcel
( Parcel
dest, int
flags)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eLoyaltyPoints\u003c/code\u003e is a Parcelable class representing loyalty reward points with label, balance, and type.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to get the balance, label, and type of loyalty points.\u003c/p\u003e\n"],["\u003cp\u003eIncludes a builder (\u003ccode\u003eLoyaltyPoints.Builder\u003c/code\u003e) for creating \u003ccode\u003eLoyaltyPoints\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eDeprecated methods \u003ccode\u003egetType()\u003c/code\u003e and \u003ccode\u003egetValidTimeInterval()\u003c/code\u003e are present but no longer used.\u003c/p\u003e\n"],["\u003cp\u003eIt implements the \u003ccode\u003eParcelable\u003c/code\u003e interface for data serialization.\u003c/p\u003e\n"]]],[],null,["# LoyaltyPoints\n\npublic final class **LoyaltyPoints** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nimplements [Parcelable](//developer.android.com/reference/android/os/Parcelable.html) \nParcelable representing the loyalty reward points label, balance, and type. \n\n### Nested Class Summary\n\n|-------|---|---|-----------------------------------------------------------------------------------------------------------|\n| class | [LoyaltyPoints.Builder](/android/reference/com/google/android/gms/wallet/wobs/LoyaltyPoints.Builder) || Builder to create a [LoyaltyPoints](/android/reference/com/google/android/gms/wallet/wobs/LoyaltyPoints). |\n\n### Inherited Constant Summary\n\nFrom interface android.os.Parcelable \n\n|-----|-------------------------------|---|\n| int | CONTENTS_FILE_DESCRIPTOR | |\n| int | PARCELABLE_WRITE_RETURN_VALUE | |\n\n### Field Summary\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|---|\n| public static final [Creator](//developer.android.com/reference/android/os/Parcelable.Creator.html)\\\u003c[LoyaltyPoints](/android/reference/com/google/android/gms/wallet/wobs/LoyaltyPoints)\\\u003e | [CREATOR](/android/reference/com/google/android/gms/wallet/wobs/LoyaltyPoints#CREATOR) | |\n\n### Public Method Summary\n\n|-------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [LoyaltyPointsBalance](/android/reference/com/google/android/gms/wallet/wobs/LoyaltyPointsBalance) | [getBalance](/android/reference/com/google/android/gms/wallet/wobs/LoyaltyPoints#getBalance())() Returns the balance. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [getLabel](/android/reference/com/google/android/gms/wallet/wobs/LoyaltyPoints#getLabel())() Returns the label. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [getType](/android/reference/com/google/android/gms/wallet/wobs/LoyaltyPoints#getType())() *This method is deprecated. This value is no longer used.* |\n| [TimeInterval](/android/reference/com/google/android/gms/wallet/wobs/TimeInterval) | [getValidTimeInterval](/android/reference/com/google/android/gms/wallet/wobs/LoyaltyPoints#getValidTimeInterval())() *This method is deprecated. This value is unused by the platform and will be removed in the future.* |\n| static [LoyaltyPoints.Builder](/android/reference/com/google/android/gms/wallet/wobs/LoyaltyPoints.Builder) | [newBuilder](/android/reference/com/google/android/gms/wallet/wobs/LoyaltyPoints#newBuilder())() |\n| void | [writeToParcel](/android/reference/com/google/android/gms/wallet/wobs/LoyaltyPoints#writeToParcel(android.os.Parcel,%20int))([Parcel](//developer.android.com/reference/android/os/Parcel.html) dest, int flags) |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface android.os.Parcelable \n\n|---------------|--------------------------------------------------------------------------------------------------|\n| abstract int | describeContents() |\n| abstract void | writeToParcel([Parcel](//developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |\n\nFields\n------\n\n#### public static final [Creator](//developer.android.com/reference/android/os/Parcelable.Creator.html)\\\u003c[LoyaltyPoints](/android/reference/com/google/android/gms/wallet/wobs/LoyaltyPoints)\\\u003e\n**CREATOR**\n\nPublic Methods\n--------------\n\n#### public [LoyaltyPointsBalance](/android/reference/com/google/android/gms/wallet/wobs/LoyaltyPointsBalance)\n**getBalance** ()\n\nReturns the balance. \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **getLabel** ()\n\nReturns the label. \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **getType** ()\n\n**This method is deprecated.** \n\nThis value is no longer used. \n\n#### public [TimeInterval](/android/reference/com/google/android/gms/wallet/wobs/TimeInterval)\n**getValidTimeInterval** ()\n\n**This method is deprecated.** \n\nThis value is unused by the platform and will be removed in the future. \n\n##### Returns\n\n- the valid time interval \n\n#### public static [LoyaltyPoints.Builder](/android/reference/com/google/android/gms/wallet/wobs/LoyaltyPoints.Builder)\n**newBuilder** ()\n\n#### public void **writeToParcel** ([Parcel](//developer.android.com/reference/android/os/Parcel.html) dest, int flags)"]]