Package com.whatsapp.api.domain.messages
Class Name
java.lang.Object
com.whatsapp.api.domain.messages.Name
Required
Full contact name formatted as a name object. The object can contain the following fields:
- formatted_namestring – Required. Full name, as it normally appears.
- first_namestring – Optional*. First name.
- first_namestring – Optional*. First name.
- middle_namestring – Optional*. Middle name.
- suffixstring – Optional*. Name suffix.
- prefixstring – Optional*. Name prefix.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets first name.Gets formatted name.Gets last name.Gets middle name.Gets prefix.Gets suffix.setFirstName
(String firstName) Sets first name.setFormattedName
(String formattedName) Sets formatted name.setLastName
(String lastName) Sets last name.setMiddleName
(String middleName) Sets middle name.Sets prefix.Sets suffix.
-
Constructor Details
-
Name
public Name()
-
-
Method Details
-
getPrefix
Gets prefix.- Returns:
- the prefix
-
setPrefix
Sets prefix.- Parameters:
prefix
- Optional. Name prefix.- Returns:
- the prefix
-
getLastName
Gets last name.- Returns:
- the last name
-
setLastName
Sets last name.- Parameters:
lastName
- Optional. Last name- Returns:
- the last name
-
getMiddleName
Gets middle name.- Returns:
- the middle name
-
setMiddleName
Sets middle name.- Parameters:
middleName
- Optional. Middle name.- Returns:
- the middle name
-
getSuffix
Gets suffix.- Returns:
- the suffix
-
setSuffix
Sets suffix.- Parameters:
suffix
- Optional. Name suffix- Returns:
- the suffix
-
getFirstName
Gets first name.- Returns:
- the first name
-
setFirstName
Sets first name.- Parameters:
firstName
- Optional. First name.- Returns:
- the first name
-
getFormattedName
Gets formatted name.- Returns:
- the formatted name
-
setFormattedName
Sets formatted name.- Parameters:
formattedName
- Required. Full name, as it normally appears. At least one of the optional parameters needs to be included along with this.- Returns:
- the formatted name
-