Package dev.tobee.telegram.model
Record Class Audio
java.lang.Object
java.lang.Record
dev.tobee.telegram.model.Audio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintduration()Returns the value of thedurationrecord component.booleanIndicates whether some other object is "equal to" this one.file_id()Returns the value of thefile_idrecord component.fileName()Returns the value of thefileNamerecord component.fileSize()Returns the value of thefileSizerecord component.Returns the value of thefileUniqueIdrecord component.inthashCode()Returns a hash code value for this object.mimeType()Returns the value of themimeTyperecord component.Returns the value of theperformerrecord component.thumb()Returns the value of thethumbrecord component.title()Returns the value of thetitlerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Audio
public Audio(String file_id, String fileUniqueId, int duration, Optional<String> performer, Optional<String> title, Optional<String> fileName, Optional<String> mimeType, OptionalInt fileSize, Optional<PhotoSize> thumb)Creates an instance of aAudiorecord class.- Parameters:
file_id- the value for thefile_idrecord componentfileUniqueId- the value for thefileUniqueIdrecord componentduration- the value for thedurationrecord componentperformer- the value for theperformerrecord componenttitle- the value for thetitlerecord componentfileName- the value for thefileNamerecord componentmimeType- the value for themimeTyperecord componentfileSize- the value for thefileSizerecord componentthumb- the value for thethumbrecord 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 '=='. -
file_id
Returns the value of thefile_idrecord component.- Returns:
- the value of the
file_idrecord component
-
fileUniqueId
Returns the value of thefileUniqueIdrecord component.- Returns:
- the value of the
fileUniqueIdrecord 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
-
fileName
Returns the value of thefileNamerecord component.- Returns:
- the value of the
fileNamerecord component
-
mimeType
Returns the value of themimeTyperecord component.- Returns:
- the value of the
mimeTyperecord component
-
fileSize
Returns the value of thefileSizerecord component.- Returns:
- the value of the
fileSizerecord component
-
thumb
Returns the value of thethumbrecord component.- Returns:
- the value of the
thumbrecord component
-