Class VideoResult

java.lang.Object
net.ygbstudio.jbrave.core.domain.dto.result.Result
net.ygbstudio.jbrave.core.domain.dto.result.VideoResult

public final class VideoResult extends Result
Represents a video result in search results. This class provides structured information about videos in the Brave Search API results.
  • Constructor Details

    • VideoResult

      public VideoResult(@NotNull @NotNull VideoResult.Builder builder)
      Creates a new video result from the given builder.
      Parameters:
      builder - the builder carrying the video fields
  • Method Details

    • type

      public String type()
      Returns the video type.
      Returns:
      the video type
    • video

      public VideoData video()
      Returns the video data.
      Returns:
      the video data
    • metaUrl

      public MetaUrl metaUrl()
      Returns the meta URL.
      Returns:
      the meta URL
    • thumbnail

      public Thumbnail thumbnail()
      Returns the thumbnail.
      Returns:
      the thumbnail
    • age

      public String age()
      Returns the age of the video.
      Returns:
      the age
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object