Commit fde96be2 authored by Ricki Hirner's avatar Ricki Hirner

Add method for querying VCard4 support

parent 871d62ff
......@@ -19,6 +19,13 @@ public class SupportedAddressData implements Property {
public final Set<MediaType> types = new HashSet<>();
public boolean hasVCard4() {
for (MediaType type : types)
if ("text/vcard; version=4.0".equalsIgnoreCase(type.toString())) // the literal string has been constructed exactly this way below
return true;
return false;
}
public static class Factory implements PropertyFactory {
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment