Record Class ChatBoost
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ChatBoost
- All Implemented Interfaces:
Serializable,ApiResult
public record ChatBoost(@NotNull String boostId, @NotNull Date addDate, @NotNull Date expirationDate, @NotNull ChatBoostSource source)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionChatBoost(@NotNull String boostId, @NotNull Date addDate, @NotNull Date expirationDate, @NotNull ChatBoostSource source) Creates an instance of aChatBoostrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull DateaddDate()Returns the value of theaddDaterecord component.@NotNull StringboostId()Returns the value of theboostIdrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull DateReturns the value of theexpirationDaterecord component.final inthashCode()Returns a hash code value for this object.@NotNull ChatBoostSourcesource()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChatBoost
public ChatBoost(@NotNull @NotNull String boostId, @NotNull @NotNull Date addDate, @NotNull @NotNull Date expirationDate, @NotNull @NotNull ChatBoostSource source) Creates an instance of aChatBoostrecord class.- Parameters:
boostId- the value for theboostIdrecord componentaddDate- the value for theaddDaterecord componentexpirationDate- the value for theexpirationDaterecord componentsource- the value for thesourcerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
boostId
Returns the value of theboostIdrecord component.- Returns:
- the value of the
boostIdrecord component
-
addDate
Returns the value of theaddDaterecord component.- Returns:
- the value of the
addDaterecord component
-
expirationDate
Returns the value of theexpirationDaterecord component.- Returns:
- the value of the
expirationDaterecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-