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

    Constructors
    Constructor
    Description
    ReplyParameters(int messageId, @Nullable String chatId, boolean allowSendingWithoutReply, @Nullable String quote, @Nullable ParseMode quoteParseMode, @Nullable MessageEntity[] quoteEntities, int quotePosition, int checklistTaskId)
    Creates an instance of a ReplyParameters record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the allowSendingWithoutReply record component.
    @Nullable String
    Returns the value of the chatId record component.
    int
    Returns the value of the checklistTaskId record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the messageId record component.
    static @NotNull lombok.Builder
    ofBuilder(int messageId)
     
    @Nullable String
    Returns the value of the quote record component.
    @Nullable MessageEntity[]
    Returns the value of the quoteEntities record component.
    @Nullable ParseMode
    Returns the value of the quoteParseMode record component.
    int
    Returns the value of the quotePosition record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a ReplyParameters record class.
      Parameters:
      messageId - the value for the messageId record component
      chatId - the value for the chatId record component
      allowSendingWithoutReply - the value for the allowSendingWithoutReply record component
      quote - the value for the quote record component
      quoteParseMode - the value for the quoteParseMode record component
      quoteEntities - the value for the quoteEntities record component
      quotePosition - the value for the quotePosition record component
      checklistTaskId - the value for the checklistTaskId record component
  • Method Details

    • ofBuilder

      @NotNull public static @NotNull lombok.Builder ofBuilder(int messageId)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • messageId

      public int messageId()
      Returns the value of the messageId record component.
      Returns:
      the value of the messageId record component
    • chatId

      @Nullable public @Nullable String chatId()
      Returns the value of the chatId record component.
      Returns:
      the value of the chatId record component
    • allowSendingWithoutReply

      public boolean allowSendingWithoutReply()
      Returns the value of the allowSendingWithoutReply record component.
      Returns:
      the value of the allowSendingWithoutReply record component
    • quote

      @Nullable public @Nullable String quote()
      Returns the value of the quote record component.
      Returns:
      the value of the quote record component
    • quoteParseMode

      @Nullable public @Nullable ParseMode quoteParseMode()
      Returns the value of the quoteParseMode record component.
      Returns:
      the value of the quoteParseMode record component
    • quoteEntities

      @Nullable public @Nullable MessageEntity[] quoteEntities()
      Returns the value of the quoteEntities record component.
      Returns:
      the value of the quoteEntities record component
    • quotePosition

      public int quotePosition()
      Returns the value of the quotePosition record component.
      Returns:
      the value of the quotePosition record component
    • checklistTaskId

      public int checklistTaskId()
      Returns the value of the checklistTaskId record component.
      Returns:
      the value of the checklistTaskId record component