public class ContactGroup
extends java.lang.Object
Constructor and Description |
---|
ContactGroup(java.lang.String key,
java.lang.String secret,
java.lang.String groupName) |
Modifier and Type | Method and Description |
---|---|
ContactGroup |
addContact(Contact contact)
Add single contact to the COntactGroup object
|
ContactGroup |
addContactList(java.util.ArrayList<Contact> contacts)
Add a list of contacts (with or without names) to the ContactGroup
|
java.util.List<Contact> |
getContacts()
Returns the list of contacts contained within the ContactGroup object.
|
java.lang.String |
getGroupName()
Returns the name of the group represented by this ContactGroup object
|
java.lang.String |
getKey() |
java.lang.String |
getSecret() |
public ContactGroup(java.lang.String key, java.lang.String secret, java.lang.String groupName) throws ContactException
key
- found from your account settings pagesecret
- found from your account settings pagegroupName
- name of the group that ContactGroup representsContactException
public ContactGroup addContactList(java.util.ArrayList<Contact> contacts)
contacts
- numbers (or names & numbers) to be addedpublic ContactGroup addContact(Contact contact)
contact
- contact to be addedpublic java.lang.String getKey()
public java.lang.String getSecret()
public java.lang.String getGroupName()
public java.util.List<Contact> getContacts()