Record Class StoryAreaTypeSuggestedReaction
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.StoryAreaTypeSuggestedReaction
- All Implemented Interfaces:
Serializable,ApiResult,StoryAreaType
public record StoryAreaTypeSuggestedReaction(@NotNull ReactionType reactionType, boolean isDark, boolean isFlipped)
extends Record
implements StoryAreaType
- See Also:
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.objects.StoryAreaType
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionStoryAreaTypeSuggestedReaction(@NotNull ReactionType reactionType, boolean isDark, boolean isFlipped) Creates an instance of aStoryAreaTypeSuggestedReactionrecord 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.booleanisDark()Returns the value of theisDarkrecord component.booleanReturns the value of theisFlippedrecord component.@NotNull ReactionTypeReturns the value of thereactionTyperecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
StoryAreaTypeSuggestedReaction
public StoryAreaTypeSuggestedReaction(@NotNull @NotNull ReactionType reactionType, boolean isDark, boolean isFlipped) Creates an instance of aStoryAreaTypeSuggestedReactionrecord class.- Parameters:
reactionType- the value for thereactionTyperecord componentisDark- the value for theisDarkrecord componentisFlipped- the value for theisFlippedrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceStoryAreaType
-
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 '=='. -
reactionType
Returns the value of thereactionTyperecord component.- Returns:
- the value of the
reactionTyperecord component
-
isDark
public boolean isDark()Returns the value of theisDarkrecord component.- Returns:
- the value of the
isDarkrecord component
-
isFlipped
public boolean isFlipped()Returns the value of theisFlippedrecord component.- Returns:
- the value of the
isFlippedrecord component
-