Class AppHistory

    • Constructor Detail

      • AppHistory

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

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

        public Reference getInternalAccount()
      • 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
      • 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.