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.RemoteId
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 correspondingMovieDTO.RemoteIdDTO.Builder
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MovieDTO.RemoteIdDTO.Builder
Builder used to create a new immutableMovieDTO.RemoteIdDTO
implementation
-
Constructor Summary
Constructors Constructor Description RemoteIdDTO()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Long
getSourceId()
Get the value of the {data.remoteids.source_id
} JSON propertyabstract String
getSourceName()
Get the value of the {data.remoteids.source_name
} JSON propertyabstract String
getSourceUrl()
Get the value of the {data.remoteids.source_url
} JSON propertyString
toString()
-
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.RemoteId
Get the value of the {data.remoteids.source_id
} JSON property- Specified by:
getSourceId
in interfaceMovie.RemoteId
- Returns:
- The
source_id
property from the received JSON
-
getSourceName
@Nullable public abstract String getSourceName()
Description copied from interface:Movie.RemoteId
Get the value of the {data.remoteids.source_name
} JSON property- Specified by:
getSourceName
in interfaceMovie.RemoteId
- Returns:
- The
source_name
property from the received JSON
-
getSourceUrl
@Nullable public abstract String getSourceUrl()
Description copied from interface:Movie.RemoteId
Get the value of the {data.remoteids.source_url
} JSON property- Specified by:
getSourceUrl
in interfaceMovie.RemoteId
- Returns:
- The
source_url
property from the received JSON
-
-