Record Class SendVideoDTO
java.lang.Object
java.lang.Record
io.github.yvasyliev.forwarder.telegram.core.dto.SendVideoDTO
- Record Components:
video- the video file to sendcaption- the caption for the videohasSpoiler- indicates if the video has a spoiler
- All Implemented Interfaces:
Closeable, AutoCloseable
public record SendVideoDTO(InputFileDTO video, String caption, Boolean hasSpoiler)
extends Record
implements Closeable
DTO for sending video files.
-
Constructor Summary
ConstructorsConstructorDescriptionSendVideoDTO(InputFileDTO video, String caption, Boolean hasSpoiler) Creates an instance of aSendVideoDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncaption()Returns the value of thecaptionrecord component.voidclose()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehasSpoilerrecord component.final StringtoString()Returns a string representation of this record class.video()Returns the value of thevideorecord component.
-
Constructor Details
-
SendVideoDTO
Creates an instance of aSendVideoDTOrecord class.- Parameters:
video- the value for thevideorecord componentcaption- the value for thecaptionrecord componenthasSpoiler- the value for thehasSpoilerrecord component
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
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). -
video
-
caption
-
hasSpoiler
Returns the value of thehasSpoilerrecord component.- Returns:
- the value of the
hasSpoilerrecord component
-