Class ImageDTO

  • All Implemented Interfaces:
    Image

    @Immutable
    @WithHiddenImplementation
    public abstract class ImageDTO
    extends Object
    implements Image
    DTO implementation of the Image interface


    Objects of this class reflect the data received by the remote service and are immutable so that their content can not be changed once an instance has been created. New objects of this class may be created by using the corresponding ImageDTO.Builder.

    • Constructor Detail

      • ImageDTO

        public ImageDTO()
    • Method Detail

      • getRatingAverage

        @Nullable
        public Double getRatingAverage()
        Description copied from interface: Image
        Get the value of the {data.ratingsInfo.average} JSON property
        Specified by:
        getRatingAverage in interface Image
        Returns:
        The average property from the received JSONs ratingsInfo-node
      • getRatingCount

        @Nullable
        public Integer getRatingCount()
        Description copied from interface: Image
        Get the value of the {data.ratingsInfo.count} JSON property
        Specified by:
        getRatingCount in interface Image
        Returns:
        The count property from the received JSON ratingsInfo-node