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 theImage
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 correspondingImageDTO.Builder
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImageDTO.Builder
Builder used to create a new immutableImageDTO
implementation
-
Constructor Summary
Constructors Constructor Description ImageDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
getRatingAverage()
Get the value of the {data.ratingsInfo.average
} JSON propertyInteger
getRatingCount()
Get the value of the {data.ratingsInfo.count
} JSON propertyString
toString()
-
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:Image
Get the value of the {data.ratingsInfo.average
} JSON property- Specified by:
getRatingAverage
in interfaceImage
- 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 interfaceImage
- Returns:
- The
count
property from the received JSON ratingsInfo-node
-
-