Record Class ChatPhoto
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ChatPhoto
- All Implemented Interfaces:
Serializable,ApiResult
public record ChatPhoto(String smallFileId, String smallFileUniqueId, String bigFileId, String bigFileUniqueId)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebigFileIdrecord component.Returns the value of thebigFileUniqueIdrecord component.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 thesmallFileIdrecord component.Returns the value of thesmallFileUniqueIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChatPhoto
public ChatPhoto(String smallFileId, String smallFileUniqueId, String bigFileId, String bigFileUniqueId) Creates an instance of aChatPhotorecord class.- Parameters:
smallFileId- the value for thesmallFileIdrecord componentsmallFileUniqueId- the value for thesmallFileUniqueIdrecord componentbigFileId- the value for thebigFileIdrecord componentbigFileUniqueId- the value for thebigFileUniqueIdrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
smallFileId
Returns the value of thesmallFileIdrecord component.- Returns:
- the value of the
smallFileIdrecord component
-
smallFileUniqueId
Returns the value of thesmallFileUniqueIdrecord component.- Returns:
- the value of the
smallFileUniqueIdrecord component
-
bigFileId
Returns the value of thebigFileIdrecord component.- Returns:
- the value of the
bigFileIdrecord component
-
bigFileUniqueId
Returns the value of thebigFileUniqueIdrecord component.- Returns:
- the value of the
bigFileUniqueIdrecord component
-