Record Class ForumTopic
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ForumTopic
- All Implemented Interfaces:
Serializable,ApiResult
public record ForumTopic(int messageThreadId, @NotNull String name, int iconColor, @Nullable String iconCustomEmojiId, boolean isNameImplicit)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionForumTopic(int messageThreadId, @NotNull String name, int iconColor, @Nullable String iconCustomEmojiId, boolean isNameImplicit) Creates an instance of aForumTopicrecord 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.intReturns the value of theiconColorrecord component.@Nullable StringReturns the value of theiconCustomEmojiIdrecord component.booleanReturns the value of theisNameImplicitrecord component.intReturns the value of themessageThreadIdrecord component.@NotNull Stringname()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ForumTopic
public ForumTopic(int messageThreadId, @NotNull @NotNull String name, int iconColor, @Nullable @Nullable String iconCustomEmojiId, boolean isNameImplicit) Creates an instance of aForumTopicrecord class.- Parameters:
messageThreadId- the value for themessageThreadIdrecord componentname- the value for thenamerecord componenticonColor- the value for theiconColorrecord componenticonCustomEmojiId- the value for theiconCustomEmojiIdrecord componentisNameImplicit- the value for theisNameImplicitrecord component
-
-
Method Details
-
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 '=='. -
messageThreadId
public int messageThreadId()Returns the value of themessageThreadIdrecord component.- Returns:
- the value of the
messageThreadIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
iconColor
public int iconColor()Returns the value of theiconColorrecord component.- Returns:
- the value of the
iconColorrecord component
-
iconCustomEmojiId
Returns the value of theiconCustomEmojiIdrecord component.- Returns:
- the value of the
iconCustomEmojiIdrecord component
-
isNameImplicit
public boolean isNameImplicit()Returns the value of theisNameImplicitrecord component.- Returns:
- the value of the
isNameImplicitrecord component
-