- All Known Implementing Classes:
ContactCard.Parsed,ContactCard.Raw
A model class to represent and build the vcard of a contact
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA parsed representation of the vcardstatic final recordA raw representation of the vcard -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringgetPhoneType(ezvcard.property.Telephone entry) getPhoneValue(ezvcard.property.Telephone entry) private static booleanisValidPhoneNumber(ezvcard.property.Telephone entry) joinPhoneNumbers(List<Jid> first, List<Jid> second) static ContactCardParses a vcard If the vCard dependency wasn't included, or a parsing error occurs, a raw representation is returnedstatic ContactCardofProtobuf(String vcard) toVcard()
-
Method Details
-
ofProtobuf
-
of
Parses a vcard If the vCard dependency wasn't included, or a parsing error occurs, a raw representation is returned- Parameters:
vcard- the non-null vcard to parse- Returns:
- a non-null vcard
-
isValidPhoneNumber
private static boolean isValidPhoneNumber(ezvcard.property.Telephone entry) -
getPhoneType
-
getPhoneValue
-
joinPhoneNumbers
-
toVcard
String toVcard()
-