Package dev.tobee.telegram.request.body
Record Class CreateNewStickerSetBody
java.lang.Object
java.lang.Record
dev.tobee.telegram.request.body.CreateNewStickerSetBody
-
Constructor Summary
ConstructorsConstructorDescriptionCreateNewStickerSetBody(long userId, String name, String title, Optional<InputFile> pngSticker, Optional<InputFile> tgsSticker, Optional<InputFile> webmSticker, String emojis, Optional<Boolean> containsMasks, Optional<MaskPosition> maskPosition) Creates an instance of aCreateNewStickerSetBodyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainsMasksrecord component.emojis()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.title()Returns the value of thetitlerecord 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
-
CreateNewStickerSetBody
public CreateNewStickerSetBody(long userId, String name, String title, Optional<InputFile> pngSticker, Optional<InputFile> tgsSticker, Optional<InputFile> webmSticker, String emojis, Optional<Boolean> containsMasks, Optional<MaskPosition> maskPosition) Creates an instance of aCreateNewStickerSetBodyrecord class.- Parameters:
userId- the value for theuserIdrecord componentname- the value for thenamerecord componenttitle- the value for thetitlerecord componentpngSticker- the value for thepngStickerrecord componenttgsSticker- the value for thetgsStickerrecord componentwebmSticker- the value for thewebmStickerrecord componentemojis- the value for theemojisrecord componentcontainsMasks- the value for thecontainsMasksrecord 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
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord 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
-
containsMasks
Returns the value of thecontainsMasksrecord component.- Returns:
- the value of the
containsMasksrecord component
-
maskPosition
Returns the value of themaskPositionrecord component.- Returns:
- the value of the
maskPositionrecord component
-