ContactStructpublic class ContactStruct extends Object The parameter class of VCardCreator.
This class standy by the person-contact in
Android system, we must use this class instance as parameter to transmit to
VCardCreator so that create vCard string. |
Fields Summary |
---|
public String | company | public String | nameMUST exist | public String | notesmaybe folding | public String | titlemaybe folding | public byte[] | photoBytesbinary bytes of pic. | public String | photoTypemime_type col of images table | public List | phoneListOnly for GET. Use addPhoneList() to PUT. | public List | contactmethodListOnly for GET. Use addContactmethodList() to PUT. |
Methods Summary |
---|
public void | addContactmethod(java.lang.String kind, java.lang.String data, java.lang.String type, java.lang.String label)Add a contactmethod info to contactmethodList.
if(contactmethodList == null)
contactmethodList = new ArrayList<ContactMethod>();
ContactMethod st = new ContactMethod();
st.kind = kind;
st.data = data;
st.type = type;
st.label = label;
contactmethodList.add(st);
| public void | addPhone(java.lang.String data, java.lang.String type, java.lang.String label)Add a phone info to phoneList.
if(phoneList == null)
phoneList = new ArrayList<PhoneData>();
PhoneData st = new PhoneData();
st.data = data;
st.type = type;
st.label = label;
phoneList.add(st);
|
|