Record Class InputMediaVideoDTO
java.lang.Object
java.lang.Record
io.github.yvasyliev.forwarder.telegram.core.dto.InputMediaVideoDTO
- Record Components:
mediaStream- the input stream of the video mediafileName- the name of the video filehasSpoiler- indicates if the video has a spoiler
- All Implemented Interfaces:
InputMediaDTO, Closeable, AutoCloseable
public record InputMediaVideoDTO(InputStream mediaStream, String fileName, Boolean hasSpoiler)
extends Record
implements InputMediaDTO
DTO representing a video media input.
-
Constructor Summary
ConstructorsConstructorDescriptionInputMediaVideoDTO(InputStream mediaStream, String fileName, Boolean hasSpoiler) Creates an instance of aInputMediaVideoDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final booleanIndicates whether some other object is "equal to" this one.fileName()Returns the value of thefileNamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehasSpoilerrecord component.Returns the value of themediaStreamrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InputMediaVideoDTO
Creates an instance of aInputMediaVideoDTOrecord class.- Parameters:
mediaStream- the value for themediaStreamrecord componentfileName- the value for thefileNamerecord 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). -
mediaStream
Returns the value of themediaStreamrecord component.- Returns:
- the value of the
mediaStreamrecord component
-
fileName
-
hasSpoiler
Returns the value of thehasSpoilerrecord component.- Returns:
- the value of the
hasSpoilerrecord component
-