Package com.clover.sdk.v3.apps
Class AppHistory
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.apps.AppHistory
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class AppHistory extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AppHistory.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<AppHistory>
CREATOR
static JSONifiable.Creator<AppHistory>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description AppHistory()
Constructs a new empty instance.protected
AppHistory(boolean noInit)
Constructs a new empty instance.AppHistory(AppHistory src)
Constructs a new instance that is a deep copy of the source instance.AppHistory(String json)
Constructs a new instance from the given JSON String.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAccount()
Clears the 'account' field, the 'has' method for this field will now return falsevoid
clearApp()
Clears the 'app' field, the 'has' method for this field will now return falsevoid
clearApprovalAndroidVersionId()
Clears the 'approval_android_version_id' field, the 'has' method for this field will now return falsevoid
clearInternalAccount()
Clears the 'internal_account' field, the 'has' method for this field will now return falseboolean
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 nullboolean
hasApp()
Checks whether the 'app' field has been set, however the value could be nullboolean
hasApprovalAndroidVersionId()
Checks whether the 'approval_android_version_id' field has been set, however the value could be nullboolean
hasInternalAccount()
Checks whether the 'internal_account' field has been set, however the value could be nullboolean
isNotNullAccount()
Checks whether the 'account' field is set and is not nullboolean
isNotNullApp()
Checks whether the 'app' field is set and is not nullboolean
isNotNullApprovalAndroidVersionId()
Checks whether the 'approval_android_version_id' field is set and is not nullboolean
isNotNullInternalAccount()
Checks whether the 'internal_account' field is set and is not nullvoid
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()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<AppHistory> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<AppHistory> JSON_CREATOR
-
-
Constructor Detail
-
AppHistory
public AppHistory()
Constructs a new empty instance.
-
AppHistory
protected AppHistory(boolean noInit)
Constructs a new empty instance.
-
AppHistory
public AppHistory(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
AppHistory
public 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
public AppHistory(AppHistory src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getApp
public App getApp()
-
getApprovalAndroidVersionId
public Long getApprovalAndroidVersionId()
-
getAccount
public Reference getAccount()
-
getInternalAccount
public Reference getInternalAccount()
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public 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.- Specified by:
getJSONObject
in interfaceJSONifiable
-
isNotNullApp
public boolean isNotNullApp()
Checks whether the 'app' field is set and is not null
-
isNotNullApprovalAndroidVersionId
public boolean isNotNullApprovalAndroidVersionId()
Checks whether the 'approval_android_version_id' field is set and is not null
-
isNotNullAccount
public boolean isNotNullAccount()
Checks whether the 'account' field is set and is not null
-
isNotNullInternalAccount
public boolean isNotNullInternalAccount()
Checks whether the 'internal_account' field is set and is not null
-
hasApp
public boolean hasApp()
Checks whether the 'app' field has been set, however the value could be null
-
hasApprovalAndroidVersionId
public boolean hasApprovalAndroidVersionId()
Checks whether the 'approval_android_version_id' field has been set, however the value could be null
-
hasAccount
public boolean hasAccount()
Checks whether the 'account' field has been set, however the value could be null
-
hasInternalAccount
public boolean hasInternalAccount()
Checks whether the 'internal_account' field has been set, however the value could be null
-
setApp
public AppHistory setApp(App app)
Sets the field 'app'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setApprovalAndroidVersionId
public AppHistory setApprovalAndroidVersionId(Long approval_android_version_id)
Sets the field 'approval_android_version_id'.
-
setAccount
public AppHistory setAccount(Reference account)
Sets the field 'account'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setInternalAccount
public AppHistory setInternalAccount(Reference internal_account)
Sets the field 'internal_account'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
clearApp
public void clearApp()
Clears the 'app' field, the 'has' method for this field will now return false
-
clearApprovalAndroidVersionId
public void clearApprovalAndroidVersionId()
Clears the 'approval_android_version_id' field, the 'has' method for this field will now return false
-
clearAccount
public void clearAccount()
Clears the 'account' field, the 'has' method for this field will now return false
-
clearInternalAccount
public void clearInternalAccount()
Clears the 'internal_account' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public AppHistory copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(AppHistory src)
Copy all the changed fields from the given source to this instance.
-
-