Class Contact
java.lang.Object
io.micronaut.chatbots.telegram.api.Contact
This object represents a phone contact.
- Since:
- 1.0.0
- Author:
- Sergio del Amo
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
@Nullable String
@NonNull String
@Nullable Long
@Nullable String
getVcard()
void
setFirstName
(@NonNull String firstName) void
setLastName
(@Nullable String lastName) void
setPhoneNumber
(@NonNull String phoneNumber) void
void
toString()
-
Constructor Details
-
Contact
public Contact()
-
-
Method Details
-
getPhoneNumber
- Returns:
- Contact's phone number.
-
setPhoneNumber
- Parameters:
phoneNumber
- Contact's phone number.
-
getFirstName
- Returns:
- Contact's first name.
-
setFirstName
- Parameters:
firstName
- Contact's first name.
-
getLastName
- Returns:
- Contact's last name.
-
setLastName
- Parameters:
lastName
- Contact's last name.
-
getUserId
- Returns:
- Contact's user identifier in Telegram
-
setUserId
- Parameters:
userId
- Contact's user identifier in Telegram
-
getVcard
- Returns:
- Additional data about the contact in the form of a vCard.
-
setVcard
- Parameters:
vcard
- Additional data about the contact in the form of a vCard.
-
toString
-