Interface Movie.People

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

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


    The methods of this class provide easy access to all people 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 Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getId()
      Get the value of the {data.people.<actors|directors|producers|writers>.id} JSON property
      String getImdbId()
      Get the value of the {data.people.<actors|directors|producers|writers>.imdb_id} JSON property
      String getName()
      Get the value of the {data.people.<actors|directors|producers|writers>.name} JSON property
      String getPeopleFacebook()
      Get the value of the {data.people.<actors|directors|producers|writers>.people_facebook} JSON property
      String getPeopleId()
      Get the value of the {data.people.<actors|directors|producers|writers>.people_id} JSON property
      String getPeopleImage()
      Get the value of the {data.people.<actors|directors|producers|writers>.people_image} JSON property
      String getPeopleInstagram()
      Get the value of the {data.people.<actors|directors|producers|writers>.people_instagram} JSON property
      String getPeopleTwitter()
      Get the value of the {data.people.<actors|directors|producers|writers>.people_twitter} JSON property
      String getRole()
      Get the value of the {data.people.<actors|directors|producers|writers>.role} JSON property
      String getRoleImage()
      Get the value of the {data.people.<actors|directors|producers|writers>.role_image} JSON property
      Boolean isFeatured()
      Get the value of the {data.people.<actors|directors|producers|writers>.is_featured} JSON property
    • Method Detail

      • getId

        @Nullable
        String getId()
        Get the value of the {data.people.<actors|directors|producers|writers>.id} JSON property
        Returns:
        The id property from the received JSON
      • getImdbId

        @Nullable
        String getImdbId()
        Get the value of the {data.people.<actors|directors|producers|writers>.imdb_id} JSON property
        Returns:
        The imdb_id property from the received JSON
      • isFeatured

        @Nullable
        Boolean isFeatured()
        Get the value of the {data.people.<actors|directors|producers|writers>.is_featured} JSON property
        Returns:
        The is_featured property from the received JSON
      • getName

        @Nullable
        String getName()
        Get the value of the {data.people.<actors|directors|producers|writers>.name} JSON property
        Returns:
        The name property from the received JSON
      • getPeopleFacebook

        @Nullable
        String getPeopleFacebook()
        Get the value of the {data.people.<actors|directors|producers|writers>.people_facebook} JSON property
        Returns:
        The people_facebook property from the received JSON
      • getPeopleId

        @Nullable
        String getPeopleId()
        Get the value of the {data.people.<actors|directors|producers|writers>.people_id} JSON property
        Returns:
        The people_id property from the received JSON
      • getPeopleImage

        @Nullable
        String getPeopleImage()
        Get the value of the {data.people.<actors|directors|producers|writers>.people_image} JSON property
        Returns:
        The people_image property from the received JSON
      • getPeopleInstagram

        @Nullable
        String getPeopleInstagram()
        Get the value of the {data.people.<actors|directors|producers|writers>.people_instagram} JSON property
        Returns:
        The people_instagram property from the received JSON
      • getPeopleTwitter

        @Nullable
        String getPeopleTwitter()
        Get the value of the {data.people.<actors|directors|producers|writers>.people_twitter} JSON property
        Returns:
        The people_twitter property from the received JSON
      • getRole

        @Nullable
        String getRole()
        Get the value of the {data.people.<actors|directors|producers|writers>.role} JSON property
        Returns:
        The role property from the received JSON
      • getRoleImage

        @Nullable
        String getRoleImage()
        Get the value of the {data.people.<actors|directors|producers|writers>.role_image} JSON property
        Returns:
        The role_image property from the received JSON