Record Class Link.RedditVideo

java.lang.Object
java.lang.Record
io.github.yvasyliev.telegramforwarderbot.reddit.dto.Link.RedditVideo
Record Components:
bitrateKbps - the bitrate of the video in kilobits per second
fallbackUrl - the fallback URL for the video
hasAudio - indicates if the video has audio
height - the height of the video in pixels
width - the width of the video in pixels
scrubberMediaUrl - the URL for the scrubber media
dashUrl - the DASH URL for adaptive streaming
duration - the duration of the video
hlsUrl - the HLS URL for streaming
isGif - indicates if the video is a GIF
transcodingStatus - the status of transcoding for the video
Enclosing class:
Link

public static record Link.RedditVideo(Integer bitrateKbps, URL fallbackUrl, Boolean hasAudio, Integer height, Integer width, URL scrubberMediaUrl, URL dashUrl, Duration duration, URL hlsUrl, Boolean isGif, Link.RedditVideo.TranscodingStatus transcodingStatus) extends Record
Represents a Reddit video with various attributes.
  • Constructor Details

    • RedditVideo

      public RedditVideo(Integer bitrateKbps, URL fallbackUrl, Boolean hasAudio, Integer height, Integer width, URL scrubberMediaUrl, URL dashUrl, Duration duration, URL hlsUrl, Boolean isGif, Link.RedditVideo.TranscodingStatus transcodingStatus)
      Creates an instance of a RedditVideo record class.
      Parameters:
      bitrateKbps - the value for the bitrateKbps record component
      fallbackUrl - the value for the fallbackUrl record component
      hasAudio - the value for the hasAudio record component
      height - the value for the height record component
      width - the value for the width record component
      scrubberMediaUrl - the value for the scrubberMediaUrl record component
      dashUrl - the value for the dashUrl record component
      duration - the value for the duration record component
      hlsUrl - the value for the hlsUrl record component
      isGif - the value for the isGif record component
      transcodingStatus - the value for the transcodingStatus 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.
    • bitrateKbps

      public Integer bitrateKbps()
      Returns the value of the bitrateKbps record component.
      Returns:
      the value of the bitrateKbps record component
    • fallbackUrl

      public URL fallbackUrl()
      Returns the value of the fallbackUrl record component.
      Returns:
      the value of the fallbackUrl record component
    • hasAudio

      public Boolean hasAudio()
      Returns the value of the hasAudio record component.
      Returns:
      the value of the hasAudio record component
    • height

      public Integer height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • width

      public Integer width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • scrubberMediaUrl

      public URL scrubberMediaUrl()
      Returns the value of the scrubberMediaUrl record component.
      Returns:
      the value of the scrubberMediaUrl record component
    • dashUrl

      public URL dashUrl()
      Returns the value of the dashUrl record component.
      Returns:
      the value of the dashUrl record component
    • duration

      public Duration duration()
      Returns the value of the duration record component.
      Returns:
      the value of the duration record component
    • hlsUrl

      public URL hlsUrl()
      Returns the value of the hlsUrl record component.
      Returns:
      the value of the hlsUrl record component
    • isGif

      public Boolean isGif()
      Returns the value of the isGif record component.
      Returns:
      the value of the isGif record component
    • transcodingStatus

      public Link.RedditVideo.TranscodingStatus transcodingStatus()
      Returns the value of the transcodingStatus record component.
      Returns:
      the value of the transcodingStatus record component