Package dev.tobee.telegram.request.body
Record Class AddStickerToSetBody
java.lang.Object
java.lang.Record
dev.tobee.telegram.request.body.AddStickerToSetBody
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionemojis()Returns the value of theemojisrecord 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 themaskPositionrecord component.name()Returns the value of thenamerecord component.Returns the value of thepngStickerrecord component.Returns the value of thetgsStickerrecord component.final StringtoString()Returns a string representation of this record class.longuserId()Returns the value of theuserIdrecord component.Returns the value of thewebmStickerrecord component.
-
Constructor Details
-
AddStickerToSetBody
public AddStickerToSetBody(long userId, String name, Optional<InputFile> pngSticker, Optional<InputFile> tgsSticker, Optional<InputFile> webmSticker, String emojis, Optional<MaskPosition> maskPosition) Creates an instance of aAddStickerToSetBodyrecord class.- Parameters:
userId- the value for theuserIdrecord componentname- the value for thenamerecord componentpngSticker- the value for thepngStickerrecord componenttgsSticker- the value for thetgsStickerrecord componentwebmSticker- the value for thewebmStickerrecord componentemojis- the value for theemojisrecord componentmaskPosition- the value for themaskPositionrecord 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 long userId()Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
pngSticker
Returns the value of thepngStickerrecord component.- Returns:
- the value of the
pngStickerrecord component
-
tgsSticker
Returns the value of thetgsStickerrecord component.- Returns:
- the value of the
tgsStickerrecord component
-
webmSticker
Returns the value of thewebmStickerrecord component.- Returns:
- the value of the
webmStickerrecord component
-
emojis
Returns the value of theemojisrecord component.- Returns:
- the value of the
emojisrecord component
-
maskPosition
Returns the value of themaskPositionrecord component.- Returns:
- the value of the
maskPositionrecord component
-