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, @Range(from=0L,to=60L) float duration, float coverFrameTimestamp, boolean isAnimation)
extends Record
implements InputStoryContent
- See Also:
-
Field Summary
Fields inherited from interface InputStoryContent
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionInputStoryContentVideo(@NotNull InputFile video, @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.@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, @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
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
video
Returns the value of thevideorecord component.- Returns:
- the value of the
videorecord component
-
duration
public @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
-