java.lang.Object
java.lang.Record
it.auties.whatsapp.model.call.Call
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record Call(Jid chat, Jid caller, String id, long timestampSeconds, boolean video, CallStatus status, boolean offline)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JidThe field for thecallerrecord component.private final JidThe field for thechatrecord component.private final StringThe field for theidrecord component.private final booleanThe field for theofflinerecord component.private final CallStatusThe field for thestatusrecord component.private final longThe field for thetimestampSecondsrecord component.private final booleanThe field for thevideorecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCall(Jid chat, Jid caller, String id, long timestampSeconds, boolean video, CallStatus status, boolean offline) Creates an instance of aCallrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncaller()Returns the value of thecallerrecord component.chat()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.id()Returns the value of theidrecord component.booleanoffline()Returns the value of theofflinerecord component.status()Returns the value of thestatusrecord component.longReturns the value of thetimestampSecondsrecord component.final StringtoString()Returns a string representation of this record class.booleanvideo()Returns the value of thevideorecord component.
-
Field Details
-
chat
The field for thechatrecord component. -
caller
The field for thecallerrecord component. -
id
The field for theidrecord component. -
timestampSeconds
private final long timestampSecondsThe field for thetimestampSecondsrecord component. -
video
private final boolean videoThe field for thevideorecord component. -
status
The field for thestatusrecord component. -
offline
private final boolean offlineThe field for theofflinerecord component.
-
-
Constructor Details
-
Call
public Call(Jid chat, Jid caller, String id, long timestampSeconds, boolean video, CallStatus status, boolean offline) Creates an instance of aCallrecord class.- Parameters:
chat- the value for thechatrecord componentcaller- the value for thecallerrecord componentid- the value for theidrecord componenttimestampSeconds- the value for thetimestampSecondsrecord componentvideo- the value for thevideorecord componentstatus- the value for thestatusrecord componentoffline- the value for theofflinerecord 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 '=='. -
chat
Returns the value of thechatrecord component.- Returns:
- the value of the
chatrecord component
-
caller
Returns the value of thecallerrecord component.- Returns:
- the value of the
callerrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
timestampSeconds
public long timestampSeconds()Returns the value of thetimestampSecondsrecord component.- Returns:
- the value of the
timestampSecondsrecord component
-
video
public boolean video()Returns the value of thevideorecord component.- Returns:
- the value of the
videorecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
offline
public boolean offline()Returns the value of theofflinerecord component.- Returns:
- the value of the
offlinerecord component
-