Record Class PollOptionAdded
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.PollOptionAdded
- All Implemented Interfaces:
Serializable, ApiResult
public record PollOptionAdded(@Nullable MaybeInaccessibleMessage pollMessage, @NotNull String optionPersistentId, @NotNull String optionText, @Nullable List<MessageEntity> optionTextEntities)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPollOptionAdded(@Nullable MaybeInaccessibleMessage pollMessage, @NotNull String optionPersistentId, @NotNull String optionText, @Nullable List<MessageEntity> optionTextEntities) Creates an instance of aPollOptionAddedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull StringReturns the value of theoptionPersistentIdrecord component.@NotNull StringReturns the value of theoptionTextrecord component.@Nullable List<MessageEntity> Returns the value of theoptionTextEntitiesrecord component.@Nullable MaybeInaccessibleMessageReturns the value of thepollMessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PollOptionAdded
public PollOptionAdded(@Nullable @Nullable MaybeInaccessibleMessage pollMessage, @NotNull @NotNull String optionPersistentId, @NotNull @NotNull String optionText, @Nullable @Nullable List<MessageEntity> optionTextEntities) Creates an instance of aPollOptionAddedrecord class.- Parameters:
pollMessage- the value for thepollMessagerecord componentoptionPersistentId- the value for theoptionPersistentIdrecord componentoptionText- the value for theoptionTextrecord componentoptionTextEntities- the value for theoptionTextEntitiesrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
pollMessage
Returns the value of thepollMessagerecord component.- Returns:
- the value of the
pollMessagerecord component
-
optionPersistentId
Returns the value of theoptionPersistentIdrecord component.- Returns:
- the value of the
optionPersistentIdrecord component
-
optionText
Returns the value of theoptionTextrecord component.- Returns:
- the value of the
optionTextrecord component
-
optionTextEntities
Returns the value of theoptionTextEntitiesrecord component.- Returns:
- the value of the
optionTextEntitiesrecord component
-