Class t.w.p.m.MSNContactList:

Part of twisted.words.protocols.msn View Source View In Hierarchy

This class represents a basic MSN contact list.
Instance VariablescontactsAll contacts on my various lists (type: dict (mapping user handles to MSNContact objects) )
versionThe current contact list version (used for list syncing)
groupsa mapping of group ids to group names (groups can only exist on the forward list) (type:

dict

Note: This is used only for storage and doesn't effect the server's contact list. )
Method __init__ Undocumented
Method _getContactsFromList Obtain all contacts which belong
Method addContact Add a contact
Method remContact Remove a contact
Method getContact Obtain the MSNContact object
Method getBlockedContacts Obtain all the contacts on my block list
Method getAuthorizedContacts Obtain all the contacts on my auth list.
Method getReverseContacts Get all contacts on my reverse list.
Method getContacts Get all contacts on my forward list.
Method setGroup Keep a mapping from the given id
Method remGroup Removed the stored group
def __init__(self): (source)
Undocumented
def _getContactsFromList(self, listType): (source)
Obtain all contacts which belong to the given list type.
def addContact(self, contact): (source)
Add a contact
def remContact(self, userHandle): (source)
Remove a contact
def getContact(self, userHandle): (source)
Obtain the MSNContact object associated with the given userHandle.
Returnsthe MSNContact object if the user exists, or None.
def getBlockedContacts(self): (source)
Obtain all the contacts on my block list
def getAuthorizedContacts(self): (source)
Obtain all the contacts on my auth list. (These are contacts which I have verified can view my state changes).
def getReverseContacts(self): (source)
Get all contacts on my reverse list. (These are contacts which have added me to their forward list).
def getContacts(self): (source)
Get all contacts on my forward list. (These are the contacts which I have added to my list).
def setGroup(self, id, name): (source)
Keep a mapping from the given id to the given name.
def remGroup(self, id): (source)
Removed the stored group mapping for the given id.
API Documentation for twisted, generated by pydoctor.