java.lang.Object
java.lang.Record
it.auties.whatsapp.model.chat.ChatWallpaper
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage
,it.auties.protobuf.model.ProtobufObject
public record ChatWallpaper(String filename, int opacity)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
A model class that represents the wallpaper of a chat.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChatWallpaper
(String filename, int opacity) Creates an instance of aChatWallpaper
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.filename()
Returns the value of thefilename
record component.final int
hashCode()
Returns a hash code value for this object.int
opacity()
Returns the value of theopacity
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
filename
The field for thefilename
record component. -
opacity
private final int opacityThe field for theopacity
record component.
-
-
Constructor Details
-
ChatWallpaper
Creates an instance of aChatWallpaper
record class.- Parameters:
filename
- the value for thefilename
record componentopacity
- the value for theopacity
record 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 '=='. -
filename
Returns the value of thefilename
record component.- Returns:
- the value of the
filename
record component
-
opacity
public int opacity()Returns the value of theopacity
record component.- Returns:
- the value of the
opacity
record component
-