Class ImageDTO
- java.lang.Object
-
- com.github.m0nk3y2k4.thetvdb.internal.api.impl.model.data.ImageDTO
-
- All Implemented Interfaces:
Image
@Immutable @WithHiddenImplementation public abstract class ImageDTO extends Object implements Image
DTO implementation of theImageinterface
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 correspondingImageDTO.Builder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImageDTO.BuilderBuilder used to create a new immutableImageDTOimplementation
-
Constructor Summary
Constructors Constructor Description ImageDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoublegetRatingAverage()Get the value of the {data.ratingsInfo.average} JSON propertyIntegergetRatingCount()Get the value of the {data.ratingsInfo.count} JSON propertyStringtoString()-
Methods inherited from interface com.github.m0nk3y2k4.thetvdb.api.model.data.Image
getFileName, getId, getKeyType, getLanguageId, getResolution, getSubKey, getThumbnail
-
-
-
-
Method Detail
-
getRatingAverage
@Nullable public Double getRatingAverage()
Description copied from interface:ImageGet the value of the {data.ratingsInfo.average} JSON property- Specified by:
getRatingAveragein interfaceImage- Returns:
- The
averageproperty from the received JSONs ratingsInfo-node
-
getRatingCount
@Nullable public Integer getRatingCount()
Description copied from interface:ImageGet the value of the {data.ratingsInfo.count} JSON property- Specified by:
getRatingCountin interfaceImage- Returns:
- The
countproperty from the received JSON ratingsInfo-node
-
-