Record Class Link.RedditVideo
java.lang.Object
java.lang.Record
io.github.yvasyliev.forwarder.telegram.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 enumRepresents 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 aRedditVideorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebitrateKbpsrecord component.dashUrl()Returns the value of thedashUrlrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefallbackUrlrecord component.hasAudio()Returns the value of thehasAudiorecord component.final inthashCode()Returns a hash code value for this object.height()Returns the value of theheightrecord component.hlsUrl()Returns the value of thehlsUrlrecord component.isGif()Returns the value of theisGifrecord component.Returns the value of thescrubberMediaUrlrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetranscodingStatusrecord component.width()Returns the value of thewidthrecord 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 aRedditVideorecord class.- Parameters:
bitrateKbps- the value for thebitrateKbpsrecord componentfallbackUrl- the value for thefallbackUrlrecord componenthasAudio- the value for thehasAudiorecord componentheight- the value for theheightrecord componentwidth- the value for thewidthrecord componentscrubberMediaUrl- the value for thescrubberMediaUrlrecord componentdashUrl- the value for thedashUrlrecord componentduration- the value for thedurationrecord componenthlsUrl- the value for thehlsUrlrecord componentisGif- the value for theisGifrecord componenttranscodingStatus- the value for thetranscodingStatusrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thebitrateKbpsrecord component.- Returns:
- the value of the
bitrateKbpsrecord component
-
fallbackUrl
Returns the value of thefallbackUrlrecord component.- Returns:
- the value of the
fallbackUrlrecord component
-
hasAudio
-
height
-
width
-
scrubberMediaUrl
Returns the value of thescrubberMediaUrlrecord component.- Returns:
- the value of the
scrubberMediaUrlrecord component
-
dashUrl
-
duration
-
hlsUrl
-
isGif
-
transcodingStatus
Returns the value of thetranscodingStatusrecord component.- Returns:
- the value of the
transcodingStatusrecord component
-