Record Class Review

java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.reviews.model.Review
Record Components:
id - TMDB review id
author - review author name
authorDetails - review author details
content - review content
createdAt - creation timestamp
iso6391 - ISO 639-1 language code
mediaId - related movie or TV show id
mediaTitle - related movie or TV show title
mediaType - related media type, for example movie or tv
updatedAt - update timestamp
url - TMDB review URL
All Implemented Interfaces:
TmdbModel, Serializable

public record Review(String id, String author, ReviewAuthorDetails authorDetails, String content, String createdAt, String iso6391, int mediaId, MediaType mediaTitle, MediaType mediaType, String updatedAt, String url) extends Record implements TmdbModel
TMDB review details.
See Also:
  • Constructor Details

    • Review

      public Review(String id, String author, ReviewAuthorDetails authorDetails, String content, String createdAt, String iso6391, int mediaId, MediaType mediaTitle, MediaType mediaType, String updatedAt, String url)
      Creates an instance of a Review record class.
      Parameters:
      id - the value for the id record component
      author - the value for the author record component
      authorDetails - the value for the authorDetails record component
      content - the value for the content record component
      createdAt - the value for the createdAt record component
      iso6391 - the value for the iso6391 record component
      mediaId - the value for the mediaId record component
      mediaTitle - the value for the mediaTitle record component
      mediaType - the value for the mediaType record component
      updatedAt - the value for the updatedAt record component
      url - the value for the url 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.
    • id

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

      public String author()
      Returns the value of the author record component.
      Returns:
      the value of the author record component
    • authorDetails

      public ReviewAuthorDetails authorDetails()
      Returns the value of the authorDetails record component.
      Returns:
      the value of the authorDetails record component
    • content

      public String content()
      Returns the value of the content record component.
      Returns:
      the value of the content record component
    • createdAt

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

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

      public int mediaId()
      Returns the value of the mediaId record component.
      Returns:
      the value of the mediaId record component
    • mediaTitle

      public MediaType mediaTitle()
      Returns the value of the mediaTitle record component.
      Returns:
      the value of the mediaTitle record component
    • mediaType

      public MediaType mediaType()
      Returns the value of the mediaType record component.
      Returns:
      the value of the mediaType record component
    • updatedAt

      public String updatedAt()
      Returns the value of the updatedAt record component.
      Returns:
      the value of the updatedAt record component
    • url

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