Class AndroidVersion

    • Constructor Detail

      • AndroidVersion

        public AndroidVersion()
        Constructs a new empty instance.
      • AndroidVersion

        protected AndroidVersion​(boolean noInit)
        Constructs a new empty instance.
      • 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()
      • 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
      • getPermissions

        public List<String> getPermissions()
        List of android permissions
      • 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
      • 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 interface JSONifiable
      • 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
      • 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'.
      • setDeviceInstallCount

        public AndroidVersion setDeviceInstallCount​(Long deviceInstallCount)
        Sets the field 'deviceInstallCount'.
      • setHashOriginal

        public AndroidVersion setHashOriginal​(String hashOriginal)
        Sets the field 'hashOriginal'.
      • 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'.
      • 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.