Record Class ForumTopicCreated
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ForumTopicCreated
- All Implemented Interfaces:
Serializable, ApiResult
-
Constructor Summary
ConstructorsConstructorDescriptionForumTopicCreated(String name, int description, @Nullable String iconCustomEmojiId, boolean isNameImplicit) Creates an instance of aForumTopicCreatedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of theiconCustomEmojiIdrecord component.booleanReturns the value of theisNameImplicitrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ForumTopicCreated
public ForumTopicCreated(String name, int description, @Nullable @Nullable String iconCustomEmojiId, boolean isNameImplicit) Creates an instance of aForumTopicCreatedrecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenticonCustomEmojiId- the value for theiconCustomEmojiIdrecord componentisNameImplicit- the value for theisNameImplicitrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
public int description()Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord 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
-