Record Class InputProfilePhotoStatic
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputProfilePhotoStatic
- All Implemented Interfaces:
Serializable,ApiResult,InputProfilePhoto
public record InputProfilePhotoStatic(@NotNull InputFile photo)
extends Record
implements InputProfilePhoto
- See Also:
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.objects.InputProfilePhoto
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionInputProfilePhotoStatic(@NotNull InputFile photo) Creates an instance of aInputProfilePhotoStaticrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static @NotNull lombok.Builder@NotNull InputFilephoto()Returns the value of thephotorecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
InputProfilePhotoStatic
Creates an instance of aInputProfilePhotoStaticrecord class.- Parameters:
photo- the value for thephotorecord component
-
-
Method Details
-
ofBuilder
-
type
- Specified by:
typein interfaceInputProfilePhoto
-
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). -
photo
Returns the value of thephotorecord component.- Returns:
- the value of the
photorecord component
-