Class Contact

java.lang.Object
it.auties.whatsapp.model.contact.Contact
All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage, it.auties.protobuf.model.ProtobufObject, JidProvider

public final class Contact extends Object implements JidProvider, it.auties.protobuf.model.ProtobufMessage
A model class that represents a Contact. This class is only a model, this means that changing its values will have no real effect on WhatsappWeb's servers.
  • Field Details

    • jid

      private final Jid jid
      The non-null unique jid used to identify this contact
    • chosenName

      private String chosenName
      The nullable name specified by this contact when he created a Whatsapp account. Theoretically, it should not be possible for this field to be null as it's required when registering for Whatsapp. Though it looks that it can be removed later, so it's nullable.
    • fullName

      private String fullName
      The nullable name associated with this contact on the phone connected with Whatsapp
    • shortName

      private String shortName
      The nullable short name associated with this contact on the phone connected with Whatsapp If a name is available, theoretically, also a short name should be
    • lastKnownPresence

      private ContactStatus lastKnownPresence
      The nullable last known presence of this contact. This field is associated only with the presence of this contact in the corresponding conversation. If, for example, this contact is composing, recording or paused in a group this field will not be affected. Instead, Chat.presences() should be used. By default, Whatsapp will not send updates about a contact's status unless they send a message or are in the recent contacts. To force Whatsapp to send updates, use Whatsapp.subscribeToPresence(JidProvider).
    • lastSeenSeconds

      private Long lastSeenSeconds
      The nullable last seconds this contact was seen available. Any contact can decide to hide this information in their privacy settings.
    • blocked

      private boolean blocked
      Whether this contact is blocked
  • Constructor Details

  • Method Details