Record Class InputPaidMediaVideo
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputPaidMediaVideo
- All Implemented Interfaces:
Serializable,ApiResult,InputPaidMedia
public record InputPaidMediaVideo(@NotNull InputFile media, @Nullable InputFile thumbnail, @Nullable InputFile cover, int startTimestamp, int width, int height, int duration, boolean supportsStreaming)
extends Record
implements InputPaidMedia
- See Also:
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.objects.InputPaidMedia
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionInputPaidMediaVideo(@NotNull InputFile media, @Nullable InputFile thumbnail, @Nullable InputFile cover, int startTimestamp, int width, int height, int duration, boolean supportsStreaming) Creates an instance of aInputPaidMediaVideorecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable InputFilecover()Returns the value of thecoverrecord component.intduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.@NotNull InputFilemedia()Returns the value of themediarecord component.static @NotNull lombok.BuilderintReturns the value of thestartTimestamprecord component.booleanReturns the value of thesupportsStreamingrecord component.@Nullable InputFileReturns the value of thethumbnailrecord component.final StringtoString()Returns a string representation of this record class.type()intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
InputPaidMediaVideo
public InputPaidMediaVideo(@NotNull @NotNull InputFile media, @Nullable @Nullable InputFile thumbnail, @Nullable @Nullable InputFile cover, int startTimestamp, int width, int height, int duration, boolean supportsStreaming) Creates an instance of aInputPaidMediaVideorecord class.- Parameters:
media- the value for themediarecord componentthumbnail- the value for thethumbnailrecord componentcover- the value for thecoverrecord componentstartTimestamp- the value for thestartTimestamprecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentduration- the value for thedurationrecord componentsupportsStreaming- the value for thesupportsStreamingrecord component
-
-
Method Details
-
ofBuilder
-
type
- Specified by:
typein interfaceInputPaidMedia
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
media
Returns the value of themediarecord component.- Returns:
- the value of the
mediarecord component
-
thumbnail
Returns the value of thethumbnailrecord component.- Returns:
- the value of the
thumbnailrecord component
-
cover
Returns the value of thecoverrecord component.- Returns:
- the value of the
coverrecord component
-
startTimestamp
public int startTimestamp()Returns the value of thestartTimestamprecord component.- Returns:
- the value of the
startTimestamprecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
duration
public int duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
supportsStreaming
public boolean supportsStreaming()Returns the value of thesupportsStreamingrecord component.- Returns:
- the value of the
supportsStreamingrecord component
-