public class AppHistory extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
AppHistory.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<AppHistory> |
CREATOR |
static JSONifiable.Creator<AppHistory> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
AppHistory()
Constructs a new empty instance.
|
|
AppHistory(AppHistory src)
Constructs a new instance that is a deep copy of the source instance.
|
protected |
AppHistory(boolean noInit)
Constructs a new empty instance.
|
|
AppHistory(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.
|
|
AppHistory(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAccount()
Clears the 'account' field, the 'has' method for this field will now return false
|
void |
clearApp()
Clears the 'app' field, the 'has' method for this field will now return false
|
void |
clearApprovalAndroidVersionId()
Clears the 'approval_android_version_id' field, the 'has' method for this field will now return false
|
void |
clearInternalAccount()
Clears the 'internal_account' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
AppHistory |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Reference |
getAccount() |
App |
getApp() |
Long |
getApprovalAndroidVersionId() |
protected GenericClient |
getGenericClient() |
Reference |
getInternalAccount() |
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.
|
boolean |
hasAccount()
Checks whether the 'account' field has been set, however the value could be null
|
boolean |
hasApp()
Checks whether the 'app' field has been set, however the value could be null
|
boolean |
hasApprovalAndroidVersionId()
Checks whether the 'approval_android_version_id' field has been set, however the value could be null
|
boolean |
hasInternalAccount()
Checks whether the 'internal_account' field has been set, however the value could be null
|
boolean |
isNotNullAccount()
Checks whether the 'account' field is set and is not null
|
boolean |
isNotNullApp()
Checks whether the 'app' field is set and is not null
|
boolean |
isNotNullApprovalAndroidVersionId()
Checks whether the 'approval_android_version_id' field is set and is not null
|
boolean |
isNotNullInternalAccount()
Checks whether the 'internal_account' field is set and is not null
|
void |
mergeChanges(AppHistory 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.
|
AppHistory |
setAccount(Reference account)
Sets the field 'account'.
|
AppHistory |
setApp(App app)
Sets the field 'app'.
|
AppHistory |
setApprovalAndroidVersionId(Long approval_android_version_id)
Sets the field 'approval_android_version_id'.
|
AppHistory |
setInternalAccount(Reference internal_account)
Sets the field 'internal_account'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<AppHistory> CREATOR
public static final JSONifiable.Creator<AppHistory> JSON_CREATOR
public AppHistory()
protected AppHistory(boolean noInit)
public AppHistory(String json) throws IllegalArgumentException
IllegalArgumentException
public AppHistory(JSONObject jsonObject)
public AppHistory(AppHistory src)
public App getApp()
public Long getApprovalAndroidVersionId()
public Reference getAccount()
public Reference getInternalAccount()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullApp()
public boolean isNotNullApprovalAndroidVersionId()
public boolean isNotNullAccount()
public boolean isNotNullInternalAccount()
public boolean hasApp()
public boolean hasApprovalAndroidVersionId()
public boolean hasAccount()
public boolean hasInternalAccount()
public AppHistory setApp(App app)
public AppHistory setApprovalAndroidVersionId(Long approval_android_version_id)
public AppHistory setAccount(Reference account)
public AppHistory setInternalAccount(Reference internal_account)
public void clearApp()
public void clearApprovalAndroidVersionId()
public void clearAccount()
public void clearInternalAccount()
public boolean containsChanges()
public void resetChangeLog()
public AppHistory copyChanges()
public void mergeChanges(AppHistory src)