Record Class Call

java.lang.Object
java.lang.Record
it.auties.whatsapp.model.call.Call

public record Call(Jid chat, Jid caller, String id, ZonedDateTime time, boolean video, CallStatus status, boolean offline) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Jid
    The field for the caller record component.
    private final Jid
    The field for the chat record component.
    private final String
    The field for the id record component.
    private final boolean
    The field for the offline record component.
    private final CallStatus
    The field for the status record component.
    private final ZonedDateTime
    The field for the time record component.
    private final boolean
    The field for the video record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Call(Jid chat, Jid caller, String id, ZonedDateTime time, boolean video, CallStatus status, boolean offline)
    Creates an instance of a Call record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the caller record component.
    Returns the value of the chat record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    id()
    Returns the value of the id record component.
    boolean
    Returns the value of the offline record component.
    Returns the value of the status record component.
    Returns the value of the time record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the video record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • chat

      private final Jid chat
      The field for the chat record component.
    • caller

      private final Jid caller
      The field for the caller record component.
    • id

      private final String id
      The field for the id record component.
    • time

      private final ZonedDateTime time
      The field for the time record component.
    • video

      private final boolean video
      The field for the video record component.
    • status

      private final CallStatus status
      The field for the status record component.
    • offline

      private final boolean offline
      The field for the offline record component.
  • Constructor Details

    • Call

      public Call(Jid chat, Jid caller, String id, ZonedDateTime time, boolean video, CallStatus status, boolean offline)
      Creates an instance of a Call record class.
      Parameters:
      chat - the value for the chat record component
      caller - the value for the caller record component
      id - the value for the id record component
      time - the value for the time record component
      video - the value for the video record component
      status - the value for the status record component
      offline - the value for the offline record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • chat

      public Jid chat()
      Returns the value of the chat record component.
      Returns:
      the value of the chat record component
    • caller

      public Jid caller()
      Returns the value of the caller record component.
      Returns:
      the value of the caller record component
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • time

      public ZonedDateTime time()
      Returns the value of the time record component.
      Returns:
      the value of the time record component
    • video

      public boolean video()
      Returns the value of the video record component.
      Returns:
      the value of the video record component
    • status

      public CallStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • offline

      public boolean offline()
      Returns the value of the offline record component.
      Returns:
      the value of the offline record component