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:
  • 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 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
      pollOptionId - the value for the pollOptionId record component
  • Method Details

    • ofBuilder

      @NotNull public static @NotNull ReplyParameters.Builder ofBuilder(int messageId)
    • toBuilder

      public ReplyParameters.Builder toBuilder()
    • 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 the compare method from their corresponding wrapper classes.
      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
    • pollOptionId

      @Nullable public @Nullable String pollOptionId()
      Returns the value of the pollOptionId record component.
      Returns:
      the value of the pollOptionId record component