Package dev.tobee.telegram.request.body
Record Class InputMediaAudioBody
java.lang.Object
java.lang.Record
dev.tobee.telegram.request.body.InputMediaAudioBody
-
Constructor Summary
ConstructorsConstructorDescriptionInputMediaAudioBody(String type, String media, Optional<Path> thumb, Optional<String> caption, Optional<ParseMode> parseMode, List<MessageEntity> entities, int duration, Optional<String> performer, Optional<String> title) Creates an instance of aInputMediaAudioBodyrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncaption()Returns the value of thecaptionrecord component.intduration()Returns the value of thedurationrecord component.entities()Returns the value of theentitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.media()Returns the value of themediarecord component.Returns the value of theparseModerecord component.Returns the value of theperformerrecord component.thumb()Returns the value of thethumbrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
InputMediaAudioBody
public InputMediaAudioBody(String type, String media, Optional<Path> thumb, Optional<String> caption, Optional<ParseMode> parseMode, List<MessageEntity> entities, int duration, Optional<String> performer, Optional<String> title) Creates an instance of aInputMediaAudioBodyrecord class.- Parameters:
type- the value for thetyperecord componentmedia- the value for themediarecord componentthumb- the value for thethumbrecord componentcaption- the value for thecaptionrecord componentparseMode- the value for theparseModerecord componententities- the value for theentitiesrecord componentduration- the value for thedurationrecord componentperformer- the value for theperformerrecord componenttitle- the value for thetitlerecord component
-
-
Method Details
-
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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
media
Returns the value of themediarecord component.- Returns:
- the value of the
mediarecord component
-
thumb
Returns the value of thethumbrecord component.- Returns:
- the value of the
thumbrecord component
-
caption
Returns the value of thecaptionrecord component.- Returns:
- the value of the
captionrecord component
-
parseMode
Returns the value of theparseModerecord component.- Returns:
- the value of the
parseModerecord component
-
entities
Returns the value of theentitiesrecord component.- Returns:
- the value of the
entitiesrecord component
-
duration
public int duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
performer
Returns the value of theperformerrecord component.- Returns:
- the value of the
performerrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-