Package com.clover.sdk.v3.apps
Class AndroidVersion
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.apps.AndroidVersion
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class AndroidVersion 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
AndroidVersion.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<AndroidVersion>
CREATOR
static JSONifiable.Creator<AndroidVersion>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description AndroidVersion()
Constructs a new empty instance.protected
AndroidVersion(boolean noInit)
Constructs a new empty instance.AndroidVersion(AndroidVersion src)
Constructs a new instance that is a deep copy of the source instance.AndroidVersion(String json)
Constructs a new instance from the given JSON String.AndroidVersion(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
clearApkUrl()
Clears the 'apkUrl' 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
clearApprovalStatus()
Clears the 'approvalStatus' field, the 'has' method for this field will now return falsevoid
clearApproved()
Clears the 'approved' field, the 'has' method for this field will now return falsevoid
clearCreatedAt()
Clears the 'createdAt' field, the 'has' method for this field will now return falsevoid
clearDeviceInstallCount()
Clears the 'deviceInstallCount' field, the 'has' method for this field will now return falsevoid
clearDigestAlg()
Clears the 'digestAlg' field, the 'has' method for this field will now return falsevoid
clearHash()
Clears the 'hash' field, the 'has' method for this field will now return falsevoid
clearHashOriginal()
Clears the 'hashOriginal' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearMerchantGroups()
Clears the 'merchantGroups' field, the 'has' method for this field will now return falsevoid
clearMinSdkVersion()
Clears the 'minSdkVersion' field, the 'has' method for this field will now return falsevoid
clearPermissions()
Clears the 'permissions' field, the 'has' method for this field will now return falsevoid
clearReleaseNote()
Clears the 'releaseNote' field, the 'has' method for this field will now return falsevoid
clearScanId()
Clears the 'scanId' field, the 'has' method for this field will now return falsevoid
clearScanStatus()
Clears the 'scanStatus' field, the 'has' method for this field will now return falsevoid
clearTargetSdkVersion()
Clears the 'targetSdkVersion' field, the 'has' method for this field will now return falsevoid
clearVersion()
Clears the 'version' field, the 'has' method for this field will now return falsevoid
clearVersionName()
Clears the 'versionName' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.AndroidVersion
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.String
getApkUrl()
Url to download the APKReference
getApp()
Reference to the app this Android version belongs toApprovalStatus
getApprovalStatus()
Boolean
getApproved()
Long
getCreatedAt()
Creation timestampLong
getDeviceInstallCount()
String
getDigestAlg()
The message digest algorithm used to digest the entries of the APKprotected GenericClient
getGenericClient()
String
getHash()
String
getHashOriginal()
String
getId()
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.List<Reference>
getMerchantGroups()
The merchant groups that the Android version belongs toLong
getMinSdkVersion()
The minSdkVersion attribute parsed from the AndroidManifest.xmlList<String>
getPermissions()
List of android permissionsReference
getReleaseNote()
Reference to the release note for this Android VersionString
getScanId()
VirusTotal scan_id field, which is the sha256 hash joined with the timestamp by a hyphenScanStatus
getScanStatus()
VirusTotal scan statusLong
getTargetSdkVersion()
The targetSdkVersion attribute parsed from the AndroidManifest.xmlLong
getVersion()
Unique identifierString
getVersionName()
boolean
hasApkUrl()
Checks whether the 'apkUrl' 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
hasApprovalStatus()
Checks whether the 'approvalStatus' field has been set, however the value could be nullboolean
hasApproved()
Checks whether the 'approved' field has been set, however the value could be nullboolean
hasCreatedAt()
Checks whether the 'createdAt' field has been set, however the value could be nullboolean
hasDeviceInstallCount()
Checks whether the 'deviceInstallCount' field has been set, however the value could be nullboolean
hasDigestAlg()
Checks whether the 'digestAlg' field has been set, however the value could be nullboolean
hasHash()
Checks whether the 'hash' field has been set, however the value could be nullboolean
hasHashOriginal()
Checks whether the 'hashOriginal' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasMerchantGroups()
Checks whether the 'merchantGroups' field has been set, however the value could be nullboolean
hasMinSdkVersion()
Checks whether the 'minSdkVersion' field has been set, however the value could be nullboolean
hasPermissions()
Checks whether the 'permissions' field has been set, however the value could be nullboolean
hasReleaseNote()
Checks whether the 'releaseNote' field has been set, however the value could be nullboolean
hasScanId()
Checks whether the 'scanId' field has been set, however the value could be nullboolean
hasScanStatus()
Checks whether the 'scanStatus' field has been set, however the value could be nullboolean
hasTargetSdkVersion()
Checks whether the 'targetSdkVersion' field has been set, however the value could be nullboolean
hasVersion()
Checks whether the 'version' field has been set, however the value could be nullboolean
hasVersionName()
Checks whether the 'versionName' field has been set, however the value could be nullboolean
isNotEmptyMerchantGroups()
Checks whether the 'merchantGroups' field is set and is not null and is not emptyboolean
isNotEmptyPermissions()
Checks whether the 'permissions' field is set and is not null and is not emptyboolean
isNotNullApkUrl()
Checks whether the 'apkUrl' field is set and is not nullboolean
isNotNullApp()
Checks whether the 'app' field is set and is not nullboolean
isNotNullApprovalStatus()
Checks whether the 'approvalStatus' field is set and is not nullboolean
isNotNullApproved()
Checks whether the 'approved' field is set and is not nullboolean
isNotNullCreatedAt()
Checks whether the 'createdAt' field is set and is not nullboolean
isNotNullDeviceInstallCount()
Checks whether the 'deviceInstallCount' field is set and is not nullboolean
isNotNullDigestAlg()
Checks whether the 'digestAlg' field is set and is not nullboolean
isNotNullHash()
Checks whether the 'hash' field is set and is not nullboolean
isNotNullHashOriginal()
Checks whether the 'hashOriginal' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullMerchantGroups()
Checks whether the 'merchantGroups' field is set and is not nullboolean
isNotNullMinSdkVersion()
Checks whether the 'minSdkVersion' field is set and is not nullboolean
isNotNullPermissions()
Checks whether the 'permissions' field is set and is not nullboolean
isNotNullReleaseNote()
Checks whether the 'releaseNote' field is set and is not nullboolean
isNotNullScanId()
Checks whether the 'scanId' field is set and is not nullboolean
isNotNullScanStatus()
Checks whether the 'scanStatus' field is set and is not nullboolean
isNotNullTargetSdkVersion()
Checks whether the 'targetSdkVersion' field is set and is not nullboolean
isNotNullVersion()
Checks whether the 'version' field is set and is not nullboolean
isNotNullVersionName()
Checks whether the 'versionName' field is set and is not nullvoid
mergeChanges(AndroidVersion 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.AndroidVersion
setApkUrl(String apkUrl)
Sets the field 'apkUrl'.AndroidVersion
setApp(Reference app)
Sets the field 'app'.AndroidVersion
setApprovalStatus(ApprovalStatus approvalStatus)
Sets the field 'approvalStatus'.AndroidVersion
setApproved(Boolean approved)
Sets the field 'approved'.AndroidVersion
setCreatedAt(Long createdAt)
Sets the field 'createdAt'.AndroidVersion
setDeviceInstallCount(Long deviceInstallCount)
Sets the field 'deviceInstallCount'.AndroidVersion
setDigestAlg(String digestAlg)
Sets the field 'digestAlg'.AndroidVersion
setHash(String hash)
Sets the field 'hash'.AndroidVersion
setHashOriginal(String hashOriginal)
Sets the field 'hashOriginal'.AndroidVersion
setId(String id)
Sets the field 'id'.AndroidVersion
setMerchantGroups(List<Reference> merchantGroups)
Sets the field 'merchantGroups'.AndroidVersion
setMinSdkVersion(Long minSdkVersion)
Sets the field 'minSdkVersion'.AndroidVersion
setPermissions(List<String> permissions)
Sets the field 'permissions'.AndroidVersion
setReleaseNote(Reference releaseNote)
Sets the field 'releaseNote'.AndroidVersion
setScanId(String scanId)
Sets the field 'scanId'.AndroidVersion
setScanStatus(ScanStatus scanStatus)
Sets the field 'scanStatus'.AndroidVersion
setTargetSdkVersion(Long targetSdkVersion)
Sets the field 'targetSdkVersion'.AndroidVersion
setVersion(Long version)
Sets the field 'version'.AndroidVersion
setVersionName(String versionName)
Sets the field 'versionName'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<AndroidVersion> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<AndroidVersion> JSON_CREATOR
-
-
Constructor Detail
-
AndroidVersion
public AndroidVersion()
Constructs a new empty instance.
-
AndroidVersion
protected AndroidVersion(boolean noInit)
Constructs a new empty instance.
-
AndroidVersion
public AndroidVersion(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
AndroidVersion
public AndroidVersion(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.
-
AndroidVersion
public AndroidVersion(AndroidVersion src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getId
public String getId()
-
getCreatedAt
public Long getCreatedAt()
Creation timestamp
-
getVersion
public Long getVersion()
Unique identifier
-
getVersionName
public String getVersionName()
-
getApproved
public Boolean getApproved()
-
getHash
public String getHash()
-
getDeviceInstallCount
public Long getDeviceInstallCount()
-
getHashOriginal
public String getHashOriginal()
-
getApprovalStatus
public ApprovalStatus getApprovalStatus()
-
getScanStatus
public ScanStatus getScanStatus()
VirusTotal scan status
-
getScanId
public String getScanId()
VirusTotal scan_id field, which is the sha256 hash joined with the timestamp by a hyphen
-
getMinSdkVersion
public Long getMinSdkVersion()
The minSdkVersion attribute parsed from the AndroidManifest.xml
-
getTargetSdkVersion
public Long getTargetSdkVersion()
The targetSdkVersion attribute parsed from the AndroidManifest.xml
-
getDigestAlg
public String getDigestAlg()
The message digest algorithm used to digest the entries of the APK
-
getApkUrl
public String getApkUrl()
Url to download the APK
-
getApp
public Reference getApp()
Reference to the app this Android version belongs to
-
getReleaseNote
public Reference getReleaseNote()
Reference to the release note for this Android Version
-
getMerchantGroups
public List<Reference> getMerchantGroups()
The merchant groups that the Android version belongs to
-
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
-
isNotNullId
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
-
isNotNullCreatedAt
public boolean isNotNullCreatedAt()
Checks whether the 'createdAt' field is set and is not null
-
isNotNullVersion
public boolean isNotNullVersion()
Checks whether the 'version' field is set and is not null
-
isNotNullVersionName
public boolean isNotNullVersionName()
Checks whether the 'versionName' field is set and is not null
-
isNotNullApproved
public boolean isNotNullApproved()
Checks whether the 'approved' field is set and is not null
-
isNotNullHash
public boolean isNotNullHash()
Checks whether the 'hash' field is set and is not null
-
isNotNullDeviceInstallCount
public boolean isNotNullDeviceInstallCount()
Checks whether the 'deviceInstallCount' field is set and is not null
-
isNotNullHashOriginal
public boolean isNotNullHashOriginal()
Checks whether the 'hashOriginal' field is set and is not null
-
isNotNullApprovalStatus
public boolean isNotNullApprovalStatus()
Checks whether the 'approvalStatus' field is set and is not null
-
isNotNullScanStatus
public boolean isNotNullScanStatus()
Checks whether the 'scanStatus' field is set and is not null
-
isNotNullScanId
public boolean isNotNullScanId()
Checks whether the 'scanId' field is set and is not null
-
isNotNullMinSdkVersion
public boolean isNotNullMinSdkVersion()
Checks whether the 'minSdkVersion' field is set and is not null
-
isNotNullTargetSdkVersion
public boolean isNotNullTargetSdkVersion()
Checks whether the 'targetSdkVersion' field is set and is not null
-
isNotNullDigestAlg
public boolean isNotNullDigestAlg()
Checks whether the 'digestAlg' field is set and is not null
-
isNotNullApkUrl
public boolean isNotNullApkUrl()
Checks whether the 'apkUrl' field is set and is not null
-
isNotNullPermissions
public boolean isNotNullPermissions()
Checks whether the 'permissions' field is set and is not null
-
isNotEmptyPermissions
public boolean isNotEmptyPermissions()
Checks whether the 'permissions' field is set and is not null and is not empty
-
isNotNullApp
public boolean isNotNullApp()
Checks whether the 'app' field is set and is not null
-
isNotNullReleaseNote
public boolean isNotNullReleaseNote()
Checks whether the 'releaseNote' field is set and is not null
-
isNotNullMerchantGroups
public boolean isNotNullMerchantGroups()
Checks whether the 'merchantGroups' field is set and is not null
-
isNotEmptyMerchantGroups
public boolean isNotEmptyMerchantGroups()
Checks whether the 'merchantGroups' field is set and is not null and is not empty
-
hasId
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
-
hasCreatedAt
public boolean hasCreatedAt()
Checks whether the 'createdAt' field has been set, however the value could be null
-
hasVersion
public boolean hasVersion()
Checks whether the 'version' field has been set, however the value could be null
-
hasVersionName
public boolean hasVersionName()
Checks whether the 'versionName' field has been set, however the value could be null
-
hasApproved
public boolean hasApproved()
Checks whether the 'approved' field has been set, however the value could be null
-
hasHash
public boolean hasHash()
Checks whether the 'hash' field has been set, however the value could be null
-
hasDeviceInstallCount
public boolean hasDeviceInstallCount()
Checks whether the 'deviceInstallCount' field has been set, however the value could be null
-
hasHashOriginal
public boolean hasHashOriginal()
Checks whether the 'hashOriginal' field has been set, however the value could be null
-
hasApprovalStatus
public boolean hasApprovalStatus()
Checks whether the 'approvalStatus' field has been set, however the value could be null
-
hasScanStatus
public boolean hasScanStatus()
Checks whether the 'scanStatus' field has been set, however the value could be null
-
hasScanId
public boolean hasScanId()
Checks whether the 'scanId' field has been set, however the value could be null
-
hasMinSdkVersion
public boolean hasMinSdkVersion()
Checks whether the 'minSdkVersion' field has been set, however the value could be null
-
hasTargetSdkVersion
public boolean hasTargetSdkVersion()
Checks whether the 'targetSdkVersion' field has been set, however the value could be null
-
hasDigestAlg
public boolean hasDigestAlg()
Checks whether the 'digestAlg' field has been set, however the value could be null
-
hasApkUrl
public boolean hasApkUrl()
Checks whether the 'apkUrl' field has been set, however the value could be null
-
hasPermissions
public boolean hasPermissions()
Checks whether the 'permissions' field has been set, however the value could be null
-
hasApp
public boolean hasApp()
Checks whether the 'app' field has been set, however the value could be null
-
hasReleaseNote
public boolean hasReleaseNote()
Checks whether the 'releaseNote' field has been set, however the value could be null
-
hasMerchantGroups
public boolean hasMerchantGroups()
Checks whether the 'merchantGroups' field has been set, however the value could be null
-
setId
public AndroidVersion setId(String id)
Sets the field 'id'.
-
setCreatedAt
public AndroidVersion setCreatedAt(Long createdAt)
Sets the field 'createdAt'.
-
setVersion
public AndroidVersion setVersion(Long version)
Sets the field 'version'.
-
setVersionName
public AndroidVersion setVersionName(String versionName)
Sets the field 'versionName'.
-
setApproved
public AndroidVersion setApproved(Boolean approved)
Sets the field 'approved'.
-
setHash
public AndroidVersion setHash(String hash)
Sets the field 'hash'.
-
setDeviceInstallCount
public AndroidVersion setDeviceInstallCount(Long deviceInstallCount)
Sets the field 'deviceInstallCount'.
-
setHashOriginal
public AndroidVersion setHashOriginal(String hashOriginal)
Sets the field 'hashOriginal'.
-
setApprovalStatus
public AndroidVersion setApprovalStatus(ApprovalStatus approvalStatus)
Sets the field 'approvalStatus'.
-
setScanStatus
public AndroidVersion setScanStatus(ScanStatus scanStatus)
Sets the field 'scanStatus'.
-
setScanId
public AndroidVersion setScanId(String scanId)
Sets the field 'scanId'.
-
setMinSdkVersion
public AndroidVersion setMinSdkVersion(Long minSdkVersion)
Sets the field 'minSdkVersion'.
-
setTargetSdkVersion
public AndroidVersion setTargetSdkVersion(Long targetSdkVersion)
Sets the field 'targetSdkVersion'.
-
setDigestAlg
public AndroidVersion setDigestAlg(String digestAlg)
Sets the field 'digestAlg'.
-
setApkUrl
public AndroidVersion setApkUrl(String apkUrl)
Sets the field 'apkUrl'.
-
setPermissions
public AndroidVersion setPermissions(List<String> permissions)
Sets the field 'permissions'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
setApp
public AndroidVersion setApp(Reference app)
Sets the field 'app'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setReleaseNote
public AndroidVersion setReleaseNote(Reference releaseNote)
Sets the field 'releaseNote'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setMerchantGroups
public AndroidVersion setMerchantGroups(List<Reference> merchantGroups)
Sets the field 'merchantGroups'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
clearId
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
-
clearCreatedAt
public void clearCreatedAt()
Clears the 'createdAt' field, the 'has' method for this field will now return false
-
clearVersion
public void clearVersion()
Clears the 'version' field, the 'has' method for this field will now return false
-
clearVersionName
public void clearVersionName()
Clears the 'versionName' field, the 'has' method for this field will now return false
-
clearApproved
public void clearApproved()
Clears the 'approved' field, the 'has' method for this field will now return false
-
clearHash
public void clearHash()
Clears the 'hash' field, the 'has' method for this field will now return false
-
clearDeviceInstallCount
public void clearDeviceInstallCount()
Clears the 'deviceInstallCount' field, the 'has' method for this field will now return false
-
clearHashOriginal
public void clearHashOriginal()
Clears the 'hashOriginal' field, the 'has' method for this field will now return false
-
clearApprovalStatus
public void clearApprovalStatus()
Clears the 'approvalStatus' field, the 'has' method for this field will now return false
-
clearScanStatus
public void clearScanStatus()
Clears the 'scanStatus' field, the 'has' method for this field will now return false
-
clearScanId
public void clearScanId()
Clears the 'scanId' field, the 'has' method for this field will now return false
-
clearMinSdkVersion
public void clearMinSdkVersion()
Clears the 'minSdkVersion' field, the 'has' method for this field will now return false
-
clearTargetSdkVersion
public void clearTargetSdkVersion()
Clears the 'targetSdkVersion' field, the 'has' method for this field will now return false
-
clearDigestAlg
public void clearDigestAlg()
Clears the 'digestAlg' field, the 'has' method for this field will now return false
-
clearApkUrl
public void clearApkUrl()
Clears the 'apkUrl' field, the 'has' method for this field will now return false
-
clearPermissions
public void clearPermissions()
Clears the 'permissions' field, the 'has' method for this field will now return false
-
clearApp
public void clearApp()
Clears the 'app' field, the 'has' method for this field will now return false
-
clearReleaseNote
public void clearReleaseNote()
Clears the 'releaseNote' field, the 'has' method for this field will now return false
-
clearMerchantGroups
public void clearMerchantGroups()
Clears the 'merchantGroups' 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 AndroidVersion copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(AndroidVersion src)
Copy all the changed fields from the given source to this instance.
-
-