Record Class BackgroundTypeWallpaper
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.BackgroundTypeWallpaper
- All Implemented Interfaces:
Serializable,ApiResult,BackgroundType
public record BackgroundTypeWallpaper(@NotNull Document document, @org.checkerframework.common.value.qual.IntRange(from=0L, to=100L) int darkThemeDimming, boolean isBlurred, boolean isMoving)
extends Record
implements BackgroundType
- See Also:
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.objects.BackgroundType
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionBackgroundTypeWallpaper(@NotNull Document document, @org.checkerframework.common.value.qual.IntRange(from=0L, to=100L) int darkThemeDimming, boolean isBlurred, boolean isMoving) Creates an instance of aBackgroundTypeWallpaperrecord class. -
Method Summary
Modifier and TypeMethodDescription@org.checkerframework.common.value.qual.IntRange(from=0L, to=100L) intReturns the value of thedarkThemeDimmingrecord component.@NotNull Documentdocument()Returns the value of thedocumentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisBlurredrecord component.booleanisMoving()Returns the value of theisMovingrecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
BackgroundTypeWallpaper
public BackgroundTypeWallpaper(@NotNull @NotNull Document document, @org.checkerframework.common.value.qual.IntRange(from=0L, to=100L) int darkThemeDimming, boolean isBlurred, boolean isMoving) Creates an instance of aBackgroundTypeWallpaperrecord class.- Parameters:
document- the value for thedocumentrecord componentdarkThemeDimming- the value for thedarkThemeDimmingrecord componentisBlurred- the value for theisBlurredrecord componentisMoving- the value for theisMovingrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceBackgroundType
-
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 '=='. -
document
Returns the value of thedocumentrecord component.- Returns:
- the value of the
documentrecord component
-
darkThemeDimming
public @org.checkerframework.common.value.qual.IntRange(from=0L, to=100L) int darkThemeDimming()Returns the value of thedarkThemeDimmingrecord component.- Returns:
- the value of the
darkThemeDimmingrecord component
-
isBlurred
public boolean isBlurred()Returns the value of theisBlurredrecord component.- Returns:
- the value of the
isBlurredrecord component
-
isMoving
public boolean isMoving()Returns the value of theisMovingrecord component.- Returns:
- the value of the
isMovingrecord component
-