java.lang.Object
java.lang.Record
it.auties.whatsapp.model.message.standard.CallMessage
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,Message
public record CallMessage(byte[] key, String source, byte[] data, int delay)
extends Record
implements Message
A message that contains information related to a call
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The field for thedatarecord component.private final intThe field for thedelayrecord component.private final byte[]The field for thekeyrecord component.private final StringThe field for thesourcerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCallMessage(byte[] key, String source, byte[] data, int delay) Creates an instance of aCallMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Return message categorybyte[]data()Returns the value of thedatarecord component.intdelay()Returns the value of thedelayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]key()Returns the value of thekeyrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.type()Return message type
-
Field Details
-
key
private final byte[] keyThe field for thekeyrecord component. -
source
The field for thesourcerecord component. -
data
private final byte[] dataThe field for thedatarecord component. -
delay
private final int delayThe field for thedelayrecord component.
-
-
Constructor Details
-
CallMessage
Creates an instance of aCallMessagerecord class.- Parameters:
key- the value for thekeyrecord componentsource- the value for thesourcerecord componentdata- the value for thedatarecord componentdelay- the value for thedelayrecord component
-
-
Method Details
-
type
Description copied from interface:MessageReturn message type -
category
Description copied from interface:MessageReturn message category -
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 '=='. -
key
public byte[] key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
data
public byte[] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
delay
public int delay()Returns the value of thedelayrecord component.- Returns:
- the value of the
delayrecord component
-