Class Contact

java.lang.Object
io.micronaut.chatbots.telegram.api.Contact

public class Contact extends Object
This object represents a phone contact.
Since:
1.0.0
Author:
Sergio del Amo
See Also:
  • Constructor Details

    • Contact

      public Contact()
  • Method Details

    • getPhoneNumber

      @NonNull public @NonNull String getPhoneNumber()
      Returns:
      Contact's phone number.
    • setPhoneNumber

      public void setPhoneNumber(@NonNull @NonNull String phoneNumber)
      Parameters:
      phoneNumber - Contact's phone number.
    • getFirstName

      @NonNull public @NonNull String getFirstName()
      Returns:
      Contact's first name.
    • setFirstName

      public void setFirstName(@NonNull @NonNull String firstName)
      Parameters:
      firstName - Contact's first name.
    • getLastName

      @Nullable public @Nullable String getLastName()
      Returns:
      Contact's last name.
    • setLastName

      public void setLastName(@Nullable @Nullable String lastName)
      Parameters:
      lastName - Contact's last name.
    • getUserId

      @Nullable public @Nullable Long getUserId()
      Returns:
      Contact's user identifier in Telegram
    • setUserId

      public void setUserId(@Nullable @Nullable Long userId)
      Parameters:
      userId - Contact's user identifier in Telegram
    • getVcard

      @Nullable public @Nullable String getVcard()
      Returns:
      Additional data about the contact in the form of a vCard.
    • setVcard

      public void setVcard(@Nullable @Nullable String vcard)
      Parameters:
      vcard - Additional data about the contact in the form of a vCard.
    • toString

      public String toString()
      Overrides:
      toString in class Object