Interface Movie.RemoteId

  • All Known Implementing Classes:
    MovieDTO.RemoteIdDTO
    Enclosing interface:
    Movie

    public static interface Movie.RemoteId
    Interface representing a movies RemoteId data transfer object.


    The methods of this class provide easy access to all remote ID related data which was returned by the remote service in JSON format. Please note that, as the remote service declares all of the properties to be optional, most of the methods are marked as Nullable. Methods returning collection-based values however will return an empty collection in case no corresponding data was received.


    The sole purpose of these DTO objects is to encapsulate the exact raw JSON data as received from the remote service in order to facilitate API integration by working with simple Java POJO's instead of nested JSON nodes. Although there will be no intense post-processing of the actual JSON values a type-casting may be applied to some of them to improve the usability and relieve the API user of this task.

    • Method Detail

      • getId

        @Nullable
        String getId()
        Get the value of the {data.remoteids.id} JSON property
        Returns:
        The id property from the received JSON
      • getSourceId

        @Nullable
        Long getSourceId()
        Get the value of the {data.remoteids.source_id} JSON property
        Returns:
        The source_id property from the received JSON
      • getSourceName

        @Nullable
        String getSourceName()
        Get the value of the {data.remoteids.source_name} JSON property
        Returns:
        The source_name property from the received JSON
      • getSourceUrl

        @Nullable
        String getSourceUrl()
        Get the value of the {data.remoteids.source_url} JSON property
        Returns:
        The source_url property from the received JSON
      • getUrl

        @Nullable
        String getUrl()
        Get the value of the {data.remoteids.url} JSON property
        Returns:
        The url property from the received JSON