es.cesar.quitesleep.operations
Class ContactOperations
java.lang.Object
es.cesar.quitesleep.operations.ContactOperations
public class ContactOperations
- extends java.lang.Object
- Author:
- Cesar Valiente Gordo
Method Summary |
static boolean |
addContact(java.lang.String contactName,
java.util.List<CheckBox> phoneCheckboxList,
java.util.List<CheckBox> mailCheckboxList)
Update the contact object, create the associated Banned object and
updates the phones and mail objects putting the flag useToSend to true
or false for send messages when incoming calls that not respond. |
static boolean |
editContact(java.lang.String contactName,
java.util.List<CheckBox> phoneCheckboxList,
java.util.List<CheckBox> mailCheckboxList)
Update all edit attributes from the contact passed as its phone numbers
and mail addresses used for send messages when incomig call is here
and the contact is banned. |
static boolean |
removeContact(java.lang.String contactName)
Remove contact from the banned list, updating the contact object and
remove the banned object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContactOperations
public ContactOperations()
addContact
public static boolean addContact(java.lang.String contactName,
java.util.List<CheckBox> phoneCheckboxList,
java.util.List<CheckBox> mailCheckboxList)
- Update the contact object, create the associated Banned object and
updates the phones and mail objects putting the flag useToSend to true
or false for send messages when incoming calls that not respond.
- Parameters:
contactName
- phoneCheckboxList
- mailCheckboxList
-
- Returns:
- true or false depends for the operation successfully
- See Also:
boolean
removeContact
public static boolean removeContact(java.lang.String contactName)
- Remove contact from the banned list, updating the contact object and
remove the banned object.
- Parameters:
contactName
-
- Returns:
- true or false depends for the operation successfully
- See Also:
boolean
editContact
public static boolean editContact(java.lang.String contactName,
java.util.List<CheckBox> phoneCheckboxList,
java.util.List<CheckBox> mailCheckboxList)
- Update all edit attributes from the contact passed as its phone numbers
and mail addresses used for send messages when incomig call is here
and the contact is banned.
- Parameters:
contactName
- phoneCheckboxList
- mailCheckboxList
-
- Returns:
- true or false depends for the operation successfully
- See Also:
boolean