Record Class TvSeasonVideo

java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.tv.season.model.TvSeasonVideo
Record Components:
iso6391 - ISO 639-1 language code
iso31661 - ISO 3166-1 region code
name - video name
key - video key, for example the YouTube video id
site - video provider site
size - video size
type - video type
official - whether the video is official
publishedAt - publish timestamp
id - TMDB video id
All Implemented Interfaces:
TmdbModel, Serializable

public record TvSeasonVideo(String iso6391, String iso31661, String name, String key, String site, int size, String type, boolean official, String publishedAt, String id) extends Record implements TmdbModel
Video for a TMDB TV season.
See Also:
  • Constructor Details

    • TvSeasonVideo

      public TvSeasonVideo(String iso6391, String iso31661, String name, String key, String site, int size, String type, boolean official, String publishedAt, String id)
      Creates an instance of a TvSeasonVideo record class.
      Parameters:
      iso6391 - the value for the iso6391 record component
      iso31661 - the value for the iso31661 record component
      name - the value for the name record component
      key - the value for the key record component
      site - the value for the site record component
      size - the value for the size record component
      type - the value for the type record component
      official - the value for the official record component
      publishedAt - the value for the publishedAt record component
      id - the value for the id record component
  • Method Details

    • 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.
    • iso6391

      public String iso6391()
      Returns the value of the iso6391 record component.
      Returns:
      the value of the iso6391 record component
    • iso31661

      public String iso31661()
      Returns the value of the iso31661 record component.
      Returns:
      the value of the iso31661 record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • key

      public String key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • site

      public String site()
      Returns the value of the site record component.
      Returns:
      the value of the site record component
    • size

      public int size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • official

      public boolean official()
      Returns the value of the official record component.
      Returns:
      the value of the official record component
    • publishedAt

      public String publishedAt()
      Returns the value of the publishedAt record component.
      Returns:
      the value of the publishedAt record component
    • id

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