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 secondfallbackUrl
- the fallback URL for the videohasAudio
- indicates if the video has audioheight
- the height of the video in pixelswidth
- the width of the video in pixelsscrubberMediaUrl
- the URL for the scrubber mediadashUrl
- the DASH URL for adaptive streamingduration
- the duration of the videohlsUrl
- the HLS URL for streamingisGif
- indicates if the video is a GIFtranscodingStatus
- 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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Represents the status of transcoding for a Reddit video. -
Constructor Summary
ConstructorsConstructorDescriptionRedditVideo
(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 aRedditVideo
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebitrateKbps
record component.dashUrl()
Returns the value of thedashUrl
record component.duration()
Returns the value of theduration
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefallbackUrl
record component.hasAudio()
Returns the value of thehasAudio
record component.final int
hashCode()
Returns a hash code value for this object.height()
Returns the value of theheight
record component.hlsUrl()
Returns the value of thehlsUrl
record component.isGif()
Returns the value of theisGif
record component.Returns the value of thescrubberMediaUrl
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetranscodingStatus
record component.width()
Returns the value of thewidth
record component.
-
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 aRedditVideo
record class.- Parameters:
bitrateKbps
- the value for thebitrateKbps
record componentfallbackUrl
- the value for thefallbackUrl
record componenthasAudio
- the value for thehasAudio
record componentheight
- the value for theheight
record componentwidth
- the value for thewidth
record componentscrubberMediaUrl
- the value for thescrubberMediaUrl
record componentdashUrl
- the value for thedashUrl
record componentduration
- the value for theduration
record componenthlsUrl
- the value for thehlsUrl
record componentisGif
- the value for theisGif
record componenttranscodingStatus
- the value for thetranscodingStatus
record component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
bitrateKbps
Returns the value of thebitrateKbps
record component.- Returns:
- the value of the
bitrateKbps
record component
-
fallbackUrl
Returns the value of thefallbackUrl
record component.- Returns:
- the value of the
fallbackUrl
record component
-
hasAudio
Returns the value of thehasAudio
record component.- Returns:
- the value of the
hasAudio
record component
-
height
Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
width
Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
scrubberMediaUrl
Returns the value of thescrubberMediaUrl
record component.- Returns:
- the value of the
scrubberMediaUrl
record component
-
dashUrl
Returns the value of thedashUrl
record component.- Returns:
- the value of the
dashUrl
record component
-
duration
Returns the value of theduration
record component.- Returns:
- the value of the
duration
record component
-
hlsUrl
Returns the value of thehlsUrl
record component.- Returns:
- the value of the
hlsUrl
record component
-
isGif
Returns the value of theisGif
record component.- Returns:
- the value of the
isGif
record component
-
transcodingStatus
Returns the value of thetranscodingStatus
record component.- Returns:
- the value of the
transcodingStatus
record component
-