Record Class ChatBoostRemoved
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ChatBoostRemoved
- All Implemented Interfaces:
Serializable,ApiResult
public record ChatBoostRemoved(@NotNull Chat chat, @NotNull String boostId, @NotNull Date removeDate, @NotNull ChatBoostSource source)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionChatBoostRemoved(@NotNull Chat chat, @NotNull String boostId, @NotNull Date removeDate, @NotNull ChatBoostSource source) Creates an instance of aChatBoostRemovedrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringboostId()Returns the value of theboostIdrecord component.@NotNull Chatchat()Returns the value of thechatrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull DateReturns the value of theremoveDaterecord component.@NotNull ChatBoostSourcesource()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChatBoostRemoved
public ChatBoostRemoved(@NotNull @NotNull Chat chat, @NotNull @NotNull String boostId, @NotNull @NotNull Date removeDate, @NotNull @NotNull ChatBoostSource source) Creates an instance of aChatBoostRemovedrecord class.- Parameters:
chat- the value for thechatrecord componentboostId- the value for theboostIdrecord componentremoveDate- the value for theremoveDaterecord 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). -
chat
Returns the value of thechatrecord component.- Returns:
- the value of the
chatrecord component
-
boostId
Returns the value of theboostIdrecord component.- Returns:
- the value of the
boostIdrecord component
-
removeDate
Returns the value of theremoveDaterecord component.- Returns:
- the value of the
removeDaterecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-