Class Screenshot

    • Constructor Detail

      • Screenshot

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

        protected Screenshot​(boolean noInit)
        Constructs a new empty instance.
      • Screenshot

        public Screenshot​(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.
      • Screenshot

        public Screenshot​(Screenshot src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getName

        public String getName()
        URL for the app screenshot
      • getLocale

        public String getLocale()
        https://docs.oracle.com/javase/7/docs/api/java/util/Locale.html ISO 639-1 ISO_3166-1_alpha-2 Examples: en_US, de_DE, en_CA, fr_CA
      • getSmall

        public String getSmall()
        URL for the small version (80 x 80) of the app screenshot
      • getMedium

        public String getMedium()
        URL for the medium version (200 x 200) of the app screenshot
      • getLarge

        public String getLarge()
        URL for the large version (800 x 800) of the app screenshot
      • 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
      • isNotNullName

        public boolean isNotNullName()
        Checks whether the 'name' field is set and is not null
      • isNotNullLocale

        public boolean isNotNullLocale()
        Checks whether the 'locale' field is set and is not null
      • isNotNullSmall

        public boolean isNotNullSmall()
        Checks whether the 'small' field is set and is not null
      • isNotNullMedium

        public boolean isNotNullMedium()
        Checks whether the 'medium' field is set and is not null
      • isNotNullLarge

        public boolean isNotNullLarge()
        Checks whether the 'large' field is set and is not null
      • hasName

        public boolean hasName()
        Checks whether the 'name' field has been set, however the value could be null
      • hasLocale

        public boolean hasLocale()
        Checks whether the 'locale' field has been set, however the value could be null
      • hasSmall

        public boolean hasSmall()
        Checks whether the 'small' field has been set, however the value could be null
      • hasMedium

        public boolean hasMedium()
        Checks whether the 'medium' field has been set, however the value could be null
      • hasLarge

        public boolean hasLarge()
        Checks whether the 'large' field has been set, however the value could be null
      • setLocale

        public Screenshot setLocale​(String locale)
        Sets the field 'locale'.
      • setSmall

        public Screenshot setSmall​(String small)
        Sets the field 'small'.
      • setMedium

        public Screenshot setMedium​(String medium)
        Sets the field 'medium'.
      • setLarge

        public Screenshot setLarge​(String large)
        Sets the field 'large'.
      • clearName

        public void clearName()
        Clears the 'name' field, the 'has' method for this field will now return false
      • clearLocale

        public void clearLocale()
        Clears the 'locale' field, the 'has' method for this field will now return false
      • clearSmall

        public void clearSmall()
        Clears the 'small' field, the 'has' method for this field will now return false
      • clearMedium

        public void clearMedium()
        Clears the 'medium' field, the 'has' method for this field will now return false
      • clearLarge

        public void clearLarge()
        Clears the 'large' 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 Screenshot copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(Screenshot src)
        Copy all the changed fields from the given source to this instance.