Record Class ReplyParameters
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ReplyParameters
- All Implemented Interfaces:
Serializable, ApiResult
public record ReplyParameters(int messageId, @Nullable String chatId, boolean allowSendingWithoutReply, @Nullable String quote, @Nullable ParseMode quoteParseMode, @Nullable MessageEntity[] quoteEntities, int quotePosition, int checklistTaskId, @Nullable String pollOptionId)
extends Record
implements ApiResult
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionReplyParameters(int messageId, @Nullable String chatId, boolean allowSendingWithoutReply, @Nullable String quote, @Nullable ParseMode quoteParseMode, @Nullable MessageEntity[] quoteEntities, int quotePosition, int checklistTaskId, @Nullable String pollOptionId) Creates an instance of aReplyParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowSendingWithoutReplyrecord component.@Nullable StringchatId()Returns the value of thechatIdrecord component.intReturns the value of thechecklistTaskIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themessageIdrecord component.static @NotNull ReplyParameters.BuilderofBuilder(int messageId) @Nullable StringReturns the value of thepollOptionIdrecord component.@Nullable Stringquote()Returns the value of thequoterecord component.@Nullable MessageEntity[]Returns the value of thequoteEntitiesrecord component.@Nullable ParseModeReturns the value of thequoteParseModerecord component.intReturns the value of thequotePositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReplyParameters
public ReplyParameters(int messageId, @Nullable @Nullable String chatId, boolean allowSendingWithoutReply, @Nullable @Nullable String quote, @Nullable @Nullable ParseMode quoteParseMode, @Nullable @Nullable MessageEntity[] quoteEntities, int quotePosition, int checklistTaskId, @Nullable @Nullable String pollOptionId) Creates an instance of aReplyParametersrecord class.- Parameters:
messageId- the value for themessageIdrecord componentchatId- the value for thechatIdrecord componentallowSendingWithoutReply- the value for theallowSendingWithoutReplyrecord componentquote- the value for thequoterecord componentquoteParseMode- the value for thequoteParseModerecord componentquoteEntities- the value for thequoteEntitiesrecord componentquotePosition- the value for thequotePositionrecord componentchecklistTaskId- the value for thechecklistTaskIdrecord componentpollOptionId- the value for thepollOptionIdrecord component
-
-
Method Details
-
ofBuilder
-
toBuilder
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
messageId
public int messageId()Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
chatId
Returns the value of thechatIdrecord component.- Returns:
- the value of the
chatIdrecord component
-
allowSendingWithoutReply
public boolean allowSendingWithoutReply()Returns the value of theallowSendingWithoutReplyrecord component.- Returns:
- the value of the
allowSendingWithoutReplyrecord component
-
quote
Returns the value of thequoterecord component.- Returns:
- the value of the
quoterecord component
-
quoteParseMode
Returns the value of thequoteParseModerecord component.- Returns:
- the value of the
quoteParseModerecord component
-
quoteEntities
Returns the value of thequoteEntitiesrecord component.- Returns:
- the value of the
quoteEntitiesrecord component
-
quotePosition
public int quotePosition()Returns the value of thequotePositionrecord component.- Returns:
- the value of the
quotePositionrecord component
-
checklistTaskId
public int checklistTaskId()Returns the value of thechecklistTaskIdrecord component.- Returns:
- the value of the
checklistTaskIdrecord component
-
pollOptionId
Returns the value of thepollOptionIdrecord component.- Returns:
- the value of the
pollOptionIdrecord component
-