public class AppSubscriptionCountry extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
AppSubscriptionCountry.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<AppSubscriptionCountry> |
CREATOR |
static JSONifiable.Creator<AppSubscriptionCountry> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
AppSubscriptionCountry()
Constructs a new empty instance.
|
|
AppSubscriptionCountry(AppSubscriptionCountry src)
Constructs a new instance that is a deep copy of the source instance.
|
protected |
AppSubscriptionCountry(boolean noInit)
Constructs a new empty instance.
|
|
AppSubscriptionCountry(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.
|
|
AppSubscriptionCountry(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearActive()
Clears the 'active' field, the 'has' method for this field will now return false
|
void |
clearAmount()
Clears the 'amount' field, the 'has' method for this field will now return false
|
void |
clearAppSubscription()
Clears the 'appSubscription' field, the 'has' method for this field will now return false
|
void |
clearCountry()
Clears the 'country' 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 |
clearId()
Clears the 'id' field, the 'has' method for this field will now return false
|
void |
clearInstallCount()
Clears the 'installCount' 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
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
AppSubscriptionCountry |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Boolean |
getActive()
App subscription country active status
|
Long |
getAmount()
The cost of the subscription country
|
Reference |
getAppSubscription()
Reference to subscription this subscription country belongs to
|
String |
getCountry()
The country of the subscription country
|
String |
getDescription()
App subscription country name
|
protected GenericClient |
getGenericClient() |
String |
getId()
Unique identifier
|
Long |
getInstallCount()
The number of merchants that have this app subscription country installed
|
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.
|
String |
getName()
App subscription country name
|
boolean |
hasActive()
Checks whether the 'active' field has been set, however the value could be null
|
boolean |
hasAmount()
Checks whether the 'amount' field has been set, however the value could be null
|
boolean |
hasAppSubscription()
Checks whether the 'appSubscription' field has been set, however the value could be null
|
boolean |
hasCountry()
Checks whether the 'country' 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 |
hasId()
Checks whether the 'id' field has been set, however the value could be null
|
boolean |
hasInstallCount()
Checks whether the 'installCount' 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 |
isNotNullActive()
Checks whether the 'active' field is set and is not null
|
boolean |
isNotNullAmount()
Checks whether the 'amount' field is set and is not null
|
boolean |
isNotNullAppSubscription()
Checks whether the 'appSubscription' field is set and is not null
|
boolean |
isNotNullCountry()
Checks whether the 'country' field is set and is not null
|
boolean |
isNotNullDescription()
Checks whether the 'description' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullInstallCount()
Checks whether the 'installCount' field is set and is not null
|
boolean |
isNotNullName()
Checks whether the 'name' field is set and is not null
|
void |
mergeChanges(AppSubscriptionCountry 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.
|
AppSubscriptionCountry |
setActive(Boolean active)
Sets the field 'active'.
|
AppSubscriptionCountry |
setAmount(Long amount)
Sets the field 'amount'.
|
AppSubscriptionCountry |
setAppSubscription(Reference appSubscription)
Sets the field 'appSubscription'.
|
AppSubscriptionCountry |
setCountry(String country)
Sets the field 'country'.
|
AppSubscriptionCountry |
setDescription(String description)
Sets the field 'description'.
|
AppSubscriptionCountry |
setId(String id)
Sets the field 'id'.
|
AppSubscriptionCountry |
setInstallCount(Long installCount)
Sets the field 'installCount'.
|
AppSubscriptionCountry |
setName(String name)
Sets the field 'name'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<AppSubscriptionCountry> CREATOR
public static final JSONifiable.Creator<AppSubscriptionCountry> JSON_CREATOR
public AppSubscriptionCountry()
protected AppSubscriptionCountry(boolean noInit)
public AppSubscriptionCountry(String json) throws IllegalArgumentException
IllegalArgumentException
public AppSubscriptionCountry(JSONObject jsonObject)
public AppSubscriptionCountry(AppSubscriptionCountry src)
public String getId()
public String getName()
public Long getAmount()
public String getCountry()
public String getDescription()
public Boolean getActive()
public Reference getAppSubscription()
public Long getInstallCount()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullName()
public boolean isNotNullAmount()
public boolean isNotNullCountry()
public boolean isNotNullDescription()
public boolean isNotNullActive()
public boolean isNotNullAppSubscription()
public boolean isNotNullInstallCount()
public boolean hasId()
public boolean hasName()
public boolean hasAmount()
public boolean hasCountry()
public boolean hasDescription()
public boolean hasActive()
public boolean hasAppSubscription()
public boolean hasInstallCount()
public AppSubscriptionCountry setId(String id)
public AppSubscriptionCountry setName(String name)
public AppSubscriptionCountry setAmount(Long amount)
public AppSubscriptionCountry setCountry(String country)
public AppSubscriptionCountry setDescription(String description)
public AppSubscriptionCountry setActive(Boolean active)
public AppSubscriptionCountry setAppSubscription(Reference appSubscription)
public AppSubscriptionCountry setInstallCount(Long installCount)
public void clearId()
public void clearName()
public void clearAmount()
public void clearCountry()
public void clearDescription()
public void clearActive()
public void clearAppSubscription()
public void clearInstallCount()
public boolean containsChanges()
public void resetChangeLog()
public AppSubscriptionCountry copyChanges()
public void mergeChanges(AppSubscriptionCountry src)