Record Class ExternalIds

java.lang.Object
java.lang.Record
dev.reuss.tmdb.common.external.ExternalIds
Record Components:
id - TMDB resource id
imdbId - IMDb id
wikidataId - Wikidata id
facebookId - Facebook id
instagramId - Instagram id
twitterId - Twitter id
tvdbId - TVDB id
tvrageId - TVRage id
freebaseMid - Freebase machine id
freebaseId - Freebase id
tiktokId - TikTok id
youtubeId - YouTube id
All Implemented Interfaces:
TmdbModel, Serializable

public record ExternalIds(int id, String imdbId, String wikidataId, String facebookId, String instagramId, String twitterId, Integer tvdbId, Integer tvrageId, String freebaseMid, String freebaseId, String tiktokId, String youtubeId) extends Record implements TmdbModel
External identifiers associated with a TMDB resource.
See Also:
  • Constructor Details

    • ExternalIds

      public ExternalIds(int id, String imdbId, String wikidataId, String facebookId, String instagramId, String twitterId, Integer tvdbId, Integer tvrageId, String freebaseMid, String freebaseId, String tiktokId, String youtubeId)
      Creates an instance of a ExternalIds record class.
      Parameters:
      id - the value for the id record component
      imdbId - the value for the imdbId record component
      wikidataId - the value for the wikidataId record component
      facebookId - the value for the facebookId record component
      instagramId - the value for the instagramId record component
      twitterId - the value for the twitterId record component
      tvdbId - the value for the tvdbId record component
      tvrageId - the value for the tvrageId record component
      freebaseMid - the value for the freebaseMid record component
      freebaseId - the value for the freebaseId record component
      tiktokId - the value for the tiktokId record component
      youtubeId - the value for the youtubeId record component
  • Method Details

    • hasSocialIds

      public boolean hasSocialIds()
      Returns whether any social media identifier is present.
      Returns:
      true if at least one social media id is present
    • hasDatabaseIds

      public boolean hasDatabaseIds()
      Returns whether any external database identifier is present.
      Returns:
      true if at least one external database id is present
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public int id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • imdbId

      public String imdbId()
      Returns the value of the imdbId record component.
      Returns:
      the value of the imdbId record component
    • wikidataId

      public String wikidataId()
      Returns the value of the wikidataId record component.
      Returns:
      the value of the wikidataId record component
    • facebookId

      public String facebookId()
      Returns the value of the facebookId record component.
      Returns:
      the value of the facebookId record component
    • instagramId

      public String instagramId()
      Returns the value of the instagramId record component.
      Returns:
      the value of the instagramId record component
    • twitterId

      public String twitterId()
      Returns the value of the twitterId record component.
      Returns:
      the value of the twitterId record component
    • tvdbId

      public Integer tvdbId()
      Returns the value of the tvdbId record component.
      Returns:
      the value of the tvdbId record component
    • tvrageId

      public Integer tvrageId()
      Returns the value of the tvrageId record component.
      Returns:
      the value of the tvrageId record component
    • freebaseMid

      public String freebaseMid()
      Returns the value of the freebaseMid record component.
      Returns:
      the value of the freebaseMid record component
    • freebaseId

      public String freebaseId()
      Returns the value of the freebaseId record component.
      Returns:
      the value of the freebaseId record component
    • tiktokId

      public String tiktokId()
      Returns the value of the tiktokId record component.
      Returns:
      the value of the tiktokId record component
    • youtubeId

      public String youtubeId()
      Returns the value of the youtubeId record component.
      Returns:
      the value of the youtubeId record component