Package dev.tobee.telegram.request.body
Record Class GetUserProfilePhotosBody
java.lang.Object
java.lang.Record
dev.tobee.telegram.request.body.GetUserProfilePhotosBody
public record GetUserProfilePhotosBody(int userId, OptionalInt offset, OptionalInt limit)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGetUserProfilePhotosBody(int userId, OptionalInt offset, OptionalInt limit)Creates an instance of aGetUserProfilePhotosBodyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.limit()Returns the value of thelimitrecord component.offset()Returns the value of theoffsetrecord component.toString()Returns a string representation of this record class.intuserId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
GetUserProfilePhotosBody
Creates an instance of aGetUserProfilePhotosBodyrecord class.- Parameters:
userId- the value for theuserIdrecord componentoffset- the value for theoffsetrecord componentlimit- the value for thelimitrecord 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 '=='. -
userId
public int userId()Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-