public class AppCarousel extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
AppCarousel.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<AppCarousel> |
CREATOR |
static JSONifiable.Creator<AppCarousel> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
AppCarousel()
Constructs a new empty instance.
|
|
AppCarousel(AppCarousel src)
Constructs a new instance that is a deep copy of the source instance.
|
protected |
AppCarousel(boolean noInit)
Constructs a new empty instance.
|
|
AppCarousel(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be
reflected in this instance and vice-versa.
|
|
AppCarousel(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAppPopulatedBy()
Clears the 'appPopulatedBy' field, the 'has' method for this field will now return false
|
void |
clearAutoInstall()
Clears the 'autoInstall' field, the 'has' method for this field will now return false
|
void |
clearCarouselApps()
Clears the 'carouselApps' field, the 'has' method for this field will now return false
|
void |
clearCollectionGroup()
Clears the 'collectionGroup' field, the 'has' method for this field will now return false
|
void |
clearCollectionStyle()
Clears the 'collectionStyle' field, the 'has' method for this field will now return false
|
void |
clearCountryCode()
Clears the 'countryCode' field, the 'has' method for this field will now return false
|
void |
clearDescription()
Clears the 'description' field, the 'has' method for this field will now return false
|
void |
clearDisplayName()
Clears the 'displayName' field, the 'has' method for this field will now return false
|
void |
clearId()
Clears the 'id' field, the 'has' method for this field will now return false
|
void |
clearMaxSize()
Clears the 'maxSize' field, the 'has' method for this field will now return false
|
void |
clearMerchantGroup()
Clears the 'merchantGroup' field, the 'has' method for this field will now return false
|
void |
clearName()
Clears the 'name' field, the 'has' method for this field will now return false
|
void |
clearReseller()
Clears the 'reseller' field, the 'has' method for this field will now return false
|
void |
clearResultLabel()
Clears the 'resultLabel' field, the 'has' method for this field will now return false
|
void |
clearShowInAppDetail()
Clears the 'showInAppDetail' field, the 'has' method for this field will now return false
|
void |
clearShowInAppMarket()
Clears the 'showInAppMarket' field, the 'has' method for this field will now return false
|
void |
clearShowInDashboard()
Clears the 'showInDashboard' field, the 'has' method for this field will now return false
|
void |
clearSortBy()
Clears the 'sortBy' field, the 'has' method for this field will now return false
|
void |
clearSortOrder()
Clears the 'sortOrder' field, the 'has' method for this field will now return false
|
void |
clearViewAllButton()
Clears the 'viewAllButton' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
AppCarousel |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
AppCollectionPopulation |
getAppPopulatedBy()
Population strategy to populated apps in a collection
|
Boolean |
getAutoInstall()
When true, apps in this carousel will be installed to merchants in the associated merchant group.
|
List<Reference> |
getCarouselApps()
List of apps to be in a collection
|
AppCollectionGroup |
getCollectionGroup()
Group a collection belong to.
|
AppCollectionStyle |
getCollectionStyle()
Style to be used for consistent display across clients.
|
String |
getCountryCode() |
String |
getDescription()
Description about the collection
|
String |
getDisplayName()
Display name of the collection
|
protected GenericClient |
getGenericClient() |
String |
getId()
Unique identifier
|
JSONObject |
getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be
reflected in this instance and vice-versa.
|
Integer |
getMaxSize()
Maximum number of apps in a collection
|
Reference |
getMerchantGroup() |
String |
getName()
Name of the collection
|
Reference |
getReseller() |
String |
getResultLabel() |
Boolean |
getShowInAppDetail()
Boolean to decide whether collection needs to be shown in app detail page
|
Boolean |
getShowInAppMarket()
Boolean to decide whether collection needs to be shown in app market page
|
Boolean |
getShowInDashboard()
Boolean to decide whether collection needs to be shown in merchant dashboard
|
CarouselSortBy |
getSortBy()
Sort strategy to order apps in a collection
|
Long |
getSortOrder() |
String |
getViewAllButton() |
boolean |
hasAppPopulatedBy()
Checks whether the 'appPopulatedBy' field has been set, however the value could be null
|
boolean |
hasAutoInstall()
Checks whether the 'autoInstall' field has been set, however the value could be null
|
boolean |
hasCarouselApps()
Checks whether the 'carouselApps' field has been set, however the value could be null
|
boolean |
hasCollectionGroup()
Checks whether the 'collectionGroup' field has been set, however the value could be null
|
boolean |
hasCollectionStyle()
Checks whether the 'collectionStyle' field has been set, however the value could be null
|
boolean |
hasCountryCode()
Checks whether the 'countryCode' field has been set, however the value could be null
|
boolean |
hasDescription()
Checks whether the 'description' field has been set, however the value could be null
|
boolean |
hasDisplayName()
Checks whether the 'displayName' field has been set, however the value could be null
|
boolean |
hasId()
Checks whether the 'id' field has been set, however the value could be null
|
boolean |
hasMaxSize()
Checks whether the 'maxSize' field has been set, however the value could be null
|
boolean |
hasMerchantGroup()
Checks whether the 'merchantGroup' field has been set, however the value could be null
|
boolean |
hasName()
Checks whether the 'name' field has been set, however the value could be null
|
boolean |
hasReseller()
Checks whether the 'reseller' field has been set, however the value could be null
|
boolean |
hasResultLabel()
Checks whether the 'resultLabel' field has been set, however the value could be null
|
boolean |
hasShowInAppDetail()
Checks whether the 'showInAppDetail' field has been set, however the value could be null
|
boolean |
hasShowInAppMarket()
Checks whether the 'showInAppMarket' field has been set, however the value could be null
|
boolean |
hasShowInDashboard()
Checks whether the 'showInDashboard' field has been set, however the value could be null
|
boolean |
hasSortBy()
Checks whether the 'sortBy' field has been set, however the value could be null
|
boolean |
hasSortOrder()
Checks whether the 'sortOrder' field has been set, however the value could be null
|
boolean |
hasViewAllButton()
Checks whether the 'viewAllButton' field has been set, however the value could be null
|
boolean |
isNotEmptyCarouselApps()
Checks whether the 'carouselApps' field is set and is not null and is not empty
|
boolean |
isNotNullAppPopulatedBy()
Checks whether the 'appPopulatedBy' field is set and is not null
|
boolean |
isNotNullAutoInstall()
Checks whether the 'autoInstall' field is set and is not null
|
boolean |
isNotNullCarouselApps()
Checks whether the 'carouselApps' field is set and is not null
|
boolean |
isNotNullCollectionGroup()
Checks whether the 'collectionGroup' field is set and is not null
|
boolean |
isNotNullCollectionStyle()
Checks whether the 'collectionStyle' field is set and is not null
|
boolean |
isNotNullCountryCode()
Checks whether the 'countryCode' field is set and is not null
|
boolean |
isNotNullDescription()
Checks whether the 'description' field is set and is not null
|
boolean |
isNotNullDisplayName()
Checks whether the 'displayName' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullMaxSize()
Checks whether the 'maxSize' field is set and is not null
|
boolean |
isNotNullMerchantGroup()
Checks whether the 'merchantGroup' field is set and is not null
|
boolean |
isNotNullName()
Checks whether the 'name' field is set and is not null
|
boolean |
isNotNullReseller()
Checks whether the 'reseller' field is set and is not null
|
boolean |
isNotNullResultLabel()
Checks whether the 'resultLabel' field is set and is not null
|
boolean |
isNotNullShowInAppDetail()
Checks whether the 'showInAppDetail' field is set and is not null
|
boolean |
isNotNullShowInAppMarket()
Checks whether the 'showInAppMarket' field is set and is not null
|
boolean |
isNotNullShowInDashboard()
Checks whether the 'showInDashboard' field is set and is not null
|
boolean |
isNotNullSortBy()
Checks whether the 'sortBy' field is set and is not null
|
boolean |
isNotNullSortOrder()
Checks whether the 'sortOrder' field is set and is not null
|
boolean |
isNotNullViewAllButton()
Checks whether the 'viewAllButton' field is set and is not null
|
void |
mergeChanges(AppCarousel src)
Copy all the changed fields from the given source to this instance.
|
void |
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
|
AppCarousel |
setAppPopulatedBy(AppCollectionPopulation appPopulatedBy)
Sets the field 'appPopulatedBy'.
|
AppCarousel |
setAutoInstall(Boolean autoInstall)
Sets the field 'autoInstall'.
|
AppCarousel |
setCarouselApps(List<Reference> carouselApps)
Sets the field 'carouselApps'.
|
AppCarousel |
setCollectionGroup(AppCollectionGroup collectionGroup)
Sets the field 'collectionGroup'.
|
AppCarousel |
setCollectionStyle(AppCollectionStyle collectionStyle)
Sets the field 'collectionStyle'.
|
AppCarousel |
setCountryCode(String countryCode)
Sets the field 'countryCode'.
|
AppCarousel |
setDescription(String description)
Sets the field 'description'.
|
AppCarousel |
setDisplayName(String displayName)
Sets the field 'displayName'.
|
AppCarousel |
setId(String id)
Sets the field 'id'.
|
AppCarousel |
setMaxSize(Integer maxSize)
Sets the field 'maxSize'.
|
AppCarousel |
setMerchantGroup(Reference merchantGroup)
Sets the field 'merchantGroup'.
|
AppCarousel |
setName(String name)
Sets the field 'name'.
|
AppCarousel |
setReseller(Reference reseller)
Sets the field 'reseller'.
|
AppCarousel |
setResultLabel(String resultLabel)
Sets the field 'resultLabel'.
|
AppCarousel |
setShowInAppDetail(Boolean showInAppDetail)
Sets the field 'showInAppDetail'.
|
AppCarousel |
setShowInAppMarket(Boolean showInAppMarket)
Sets the field 'showInAppMarket'.
|
AppCarousel |
setShowInDashboard(Boolean showInDashboard)
Sets the field 'showInDashboard'.
|
AppCarousel |
setSortBy(CarouselSortBy sortBy)
Sets the field 'sortBy'.
|
AppCarousel |
setSortOrder(Long sortOrder)
Sets the field 'sortOrder'.
|
AppCarousel |
setViewAllButton(String viewAllButton)
Sets the field 'viewAllButton'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<AppCarousel> CREATOR
public static final JSONifiable.Creator<AppCarousel> JSON_CREATOR
public AppCarousel()
protected AppCarousel(boolean noInit)
public AppCarousel(String json) throws IllegalArgumentException
IllegalArgumentException
public AppCarousel(JSONObject jsonObject)
public AppCarousel(AppCarousel src)
public String getId()
public String getName()
public String getDisplayName()
public String getDescription()
public String getCountryCode()
public Reference getReseller()
public Reference getMerchantGroup()
public Integer getMaxSize()
public Long getSortOrder()
public String getViewAllButton()
public String getResultLabel()
public Boolean getAutoInstall()
public CarouselSortBy getSortBy()
public AppCollectionPopulation getAppPopulatedBy()
public AppCollectionGroup getCollectionGroup()
public AppCollectionStyle getCollectionStyle()
public Boolean getShowInAppMarket()
public Boolean getShowInAppDetail()
public Boolean getShowInDashboard()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullName()
public boolean isNotNullDisplayName()
public boolean isNotNullDescription()
public boolean isNotNullCountryCode()
public boolean isNotNullReseller()
public boolean isNotNullMerchantGroup()
public boolean isNotNullMaxSize()
public boolean isNotNullSortOrder()
public boolean isNotNullViewAllButton()
public boolean isNotNullResultLabel()
public boolean isNotNullAutoInstall()
public boolean isNotNullCarouselApps()
public boolean isNotEmptyCarouselApps()
public boolean isNotNullSortBy()
public boolean isNotNullAppPopulatedBy()
public boolean isNotNullCollectionGroup()
public boolean isNotNullCollectionStyle()
public boolean isNotNullShowInAppMarket()
public boolean isNotNullShowInAppDetail()
public boolean isNotNullShowInDashboard()
public boolean hasId()
public boolean hasName()
public boolean hasDisplayName()
public boolean hasDescription()
public boolean hasCountryCode()
public boolean hasReseller()
public boolean hasMerchantGroup()
public boolean hasMaxSize()
public boolean hasSortOrder()
public boolean hasViewAllButton()
public boolean hasResultLabel()
public boolean hasAutoInstall()
public boolean hasCarouselApps()
public boolean hasSortBy()
public boolean hasAppPopulatedBy()
public boolean hasCollectionGroup()
public boolean hasCollectionStyle()
public boolean hasShowInAppMarket()
public boolean hasShowInAppDetail()
public boolean hasShowInDashboard()
public AppCarousel setId(String id)
public AppCarousel setName(String name)
public AppCarousel setDisplayName(String displayName)
public AppCarousel setDescription(String description)
public AppCarousel setCountryCode(String countryCode)
public AppCarousel setReseller(Reference reseller)
public AppCarousel setMerchantGroup(Reference merchantGroup)
public AppCarousel setMaxSize(Integer maxSize)
public AppCarousel setSortOrder(Long sortOrder)
public AppCarousel setViewAllButton(String viewAllButton)
public AppCarousel setResultLabel(String resultLabel)
public AppCarousel setAutoInstall(Boolean autoInstall)
public AppCarousel setCarouselApps(List<Reference> carouselApps)
public AppCarousel setSortBy(CarouselSortBy sortBy)
public AppCarousel setAppPopulatedBy(AppCollectionPopulation appPopulatedBy)
public AppCarousel setCollectionGroup(AppCollectionGroup collectionGroup)
public AppCarousel setCollectionStyle(AppCollectionStyle collectionStyle)
public AppCarousel setShowInAppMarket(Boolean showInAppMarket)
public AppCarousel setShowInAppDetail(Boolean showInAppDetail)
public AppCarousel setShowInDashboard(Boolean showInDashboard)
public void clearId()
public void clearName()
public void clearDisplayName()
public void clearDescription()
public void clearCountryCode()
public void clearReseller()
public void clearMerchantGroup()
public void clearMaxSize()
public void clearSortOrder()
public void clearViewAllButton()
public void clearResultLabel()
public void clearAutoInstall()
public void clearCarouselApps()
public void clearSortBy()
public void clearAppPopulatedBy()
public void clearCollectionGroup()
public void clearCollectionStyle()
public void clearShowInAppMarket()
public void clearShowInAppDetail()
public void clearShowInDashboard()
public boolean containsChanges()
public void resetChangeLog()
public AppCarousel copyChanges()
public void mergeChanges(AppCarousel src)