Class MovieDTO.RemoteIdDTO
- java.lang.Object
-
- com.github.m0nk3y2k4.thetvdb.internal.api.impl.model.data.MovieDTO.RemoteIdDTO
-
- All Implemented Interfaces:
Movie.RemoteId
- Enclosing class:
- MovieDTO
@Immutable @WithHiddenImplementation public abstract static class MovieDTO.RemoteIdDTO extends Object implements Movie.RemoteId
DTO implementation of theMovie.RemoteIdinterface
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 correspondingMovieDTO.RemoteIdDTO.Builder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMovieDTO.RemoteIdDTO.BuilderBuilder used to create a new immutableMovieDTO.RemoteIdDTOimplementation
-
Constructor Summary
Constructors Constructor Description RemoteIdDTO()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract LonggetSourceId()Get the value of the {data.remoteids.source_id} JSON propertyabstract StringgetSourceName()Get the value of the {data.remoteids.source_name} JSON propertyabstract StringgetSourceUrl()Get the value of the {data.remoteids.source_url} JSON propertyStringtoString()-
Methods inherited from interface com.github.m0nk3y2k4.thetvdb.api.model.data.Movie.RemoteId
getId, getUrl
-
-
-
-
Method Detail
-
getSourceId
@Nullable public abstract Long getSourceId()
Description copied from interface:Movie.RemoteIdGet the value of the {data.remoteids.source_id} JSON property- Specified by:
getSourceIdin interfaceMovie.RemoteId- Returns:
- The
source_idproperty from the received JSON
-
getSourceName
@Nullable public abstract String getSourceName()
Description copied from interface:Movie.RemoteIdGet the value of the {data.remoteids.source_name} JSON property- Specified by:
getSourceNamein interfaceMovie.RemoteId- Returns:
- The
source_nameproperty from the received JSON
-
getSourceUrl
@Nullable public abstract String getSourceUrl()
Description copied from interface:Movie.RemoteIdGet the value of the {data.remoteids.source_url} JSON property- Specified by:
getSourceUrlin interfaceMovie.RemoteId- Returns:
- The
source_urlproperty from the received JSON
-
-