@Immutable @LevelUpApi(contract=INTERNAL) public final class AppConstants extends Object implements Parcelable
These are constants that are retrieved from the server. This makes it possible to do things like changing the Menu URL that is loaded in the menu Activity, simply by changing the URL on the server.
Modifier and Type | Class and Description |
---|---|
static class |
AppConstants.AppConstantsBuilder |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<AppConstants> |
CREATOR
Implements the
Parcelable interface. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
AppConstants(String androidDeeplinkPrefix,
String description,
int[] displayMerchantIds,
int id,
String imageUrl,
String iosDeeplinkPrefix,
String menuUrl,
String name,
String onlineOrderUrl,
String windowsDeeplinkPrefix) |
Modifier and Type | Method and Description |
---|---|
static AppConstants.AppConstantsBuilder |
builder() |
int |
describeContents() |
boolean |
equals(Object o) |
String |
getAndroidDeeplinkPrefix()
The deeplink prefix for Android.
|
String |
getDescription()
The app description.
|
int[] |
getDisplayMerchantIds()
The display merchant IDs.
|
int |
getId()
The app ID.
|
String |
getImageUrl()
The image URL.
|
String |
getIosDeeplinkPrefix()
The deeplink prefix for iOS.
|
String |
getMenuUrl()
The menu URL.
|
String |
getName()
The app name.
|
String |
getOnlineOrderUrl()
The online order URL.
|
String |
getWindowsDeeplinkPrefix()
The deeplink prefix for Windows.
|
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<AppConstants> CREATOR
Parcelable
interface.public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public static AppConstants.AppConstantsBuilder builder()
public String getAndroidDeeplinkPrefix()
public String getDescription()
public int[] getDisplayMerchantIds()
public int getId()
public String getImageUrl()
public String getIosDeeplinkPrefix()
public String getMenuUrl()
public String getName()
public String getOnlineOrderUrl()
public String getWindowsDeeplinkPrefix()