Record Class VideoData

java.lang.Object
java.lang.Record
net.ygbstudio.jbrave.core.domain.dto.result.VideoData
Record Components:
duration - the duration of the video
views - the number of views of the video
creator - the creator of the video
publisher - the publisher of the video
thumbnail - the thumbnail of the video
tags - the tags associated with the video
author - the author profile of the video
requiresSubscription - a boolean indicating whether the video requires subscription

public record VideoData(String duration, String views, String creator, String publisher, Thumbnail thumbnail, List<String> tags, Profile author, Boolean requiresSubscription) extends Record
Represents video data in search results. This record provides more specific and structured metadata about videos. It includes parameters such as duration, views, creator, publisher, thumbnail, tags, author, and requiresSubscription.
  • Constructor Details

    • VideoData

      public VideoData(String duration, String views, String creator, String publisher, Thumbnail thumbnail, List<String> tags, Profile author, Boolean requiresSubscription)
      Creates an instance of a VideoData record class.
      Parameters:
      duration - the value for the duration record component
      views - the value for the views record component
      creator - the value for the creator record component
      publisher - the value for the publisher record component
      thumbnail - the value for the thumbnail record component
      tags - the value for the tags record component
      author - the value for the author record component
      requiresSubscription - the value for the requiresSubscription 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • duration

      public String duration()
      Returns the value of the duration record component.
      Returns:
      the value of the duration record component
    • views

      public String views()
      Returns the value of the views record component.
      Returns:
      the value of the views record component
    • creator

      public String creator()
      Returns the value of the creator record component.
      Returns:
      the value of the creator record component
    • publisher

      public String publisher()
      Returns the value of the publisher record component.
      Returns:
      the value of the publisher record component
    • thumbnail

      public Thumbnail thumbnail()
      Returns the value of the thumbnail record component.
      Returns:
      the value of the thumbnail record component
    • tags

      public List<String> tags()
      Returns the value of the tags record component.
      Returns:
      the value of the tags record component
    • author

      public Profile author()
      Returns the value of the author record component.
      Returns:
      the value of the author record component
    • requiresSubscription

      public Boolean requiresSubscription()
      Returns the value of the requiresSubscription record component.
      Returns:
      the value of the requiresSubscription record component