Record Class SendMediaGroupDTO
java.lang.Object
java.lang.Record
io.github.yvasyliev.forwarder.telegram.core.dto.SendMediaGroupDTO
- Record Components:
medias- the list of media to sendcaption- the caption for the media group
- All Implemented Interfaces:
Closeable, AutoCloseable
public record SendMediaGroupDTO(CloseableArrayList<InputMediaDTO> medias, String caption)
extends Record
implements Closeable
DTO for sending a media group.
-
Constructor Summary
ConstructorsConstructorDescriptionSendMediaGroupDTO(CloseableArrayList<InputMediaDTO> medias, String caption) Creates an instance of aSendMediaGroupDTOrecord 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.medias()Returns the value of themediasrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
medias
-
caption
-