Record Class InputStoryContentVideo
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputStoryContentVideo
- All Implemented Interfaces:
Serializable,ApiResult,InputStoryContent
public record InputStoryContentVideo(@NotNull InputFile video, @org.jetbrains.annotations.Range(from=0L, to=60L) float duration, float coverFrameTimestamp, boolean isAnimation)
extends Record
implements InputStoryContent
- See Also:
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.objects.InputStoryContent
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionInputStoryContentVideo(@NotNull InputFile video, @org.jetbrains.annotations.Range(from=0L, to=60L) float duration, float coverFrameTimestamp, boolean isAnimation) Creates an instance of aInputStoryContentVideorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thecoverFrameTimestamprecord component.@org.jetbrains.annotations.Range(from=0L, to=60L) floatduration()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.booleanReturns the value of theisAnimationrecord component.final StringtoString()Returns a string representation of this record class.type()@NotNull InputFilevideo()Returns the value of thevideorecord component.
-
Constructor Details
-
InputStoryContentVideo
public InputStoryContentVideo(@NotNull @NotNull InputFile video, @org.jetbrains.annotations.Range(from=0L, to=60L) float duration, float coverFrameTimestamp, boolean isAnimation) Creates an instance of aInputStoryContentVideorecord class.- Parameters:
video- the value for thevideorecord componentduration- the value for thedurationrecord componentcoverFrameTimestamp- the value for thecoverFrameTimestamprecord componentisAnimation- the value for theisAnimationrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceInputStoryContent
-
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 '=='. -
video
Returns the value of thevideorecord component.- Returns:
- the value of the
videorecord component
-
duration
public @org.jetbrains.annotations.Range(from=0L, to=60L) float duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
coverFrameTimestamp
public float coverFrameTimestamp()Returns the value of thecoverFrameTimestamprecord component.- Returns:
- the value of the
coverFrameTimestamprecord component
-
isAnimation
public boolean isAnimation()Returns the value of theisAnimationrecord component.- Returns:
- the value of the
isAnimationrecord component
-