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)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReplyParameters(int messageId, @Nullable String chatId, boolean allowSendingWithoutReply, @Nullable String quote, @Nullable ParseMode quoteParseMode, @Nullable MessageEntity[] quoteEntities, int quotePosition, int checklistTaskId) 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 lombok.BuilderofBuilder(int messageId) @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) 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 component
-
-
Method Details
-
ofBuilder
@NotNull public static @NotNull lombok.Builder ofBuilder(int messageId) -
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 '=='. -
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
-