Package papyon :: Module profile :: Class Contact

Class Contact

source code

object --+    
         |    
??.GObject --+
             |
            Contact

Contact related information

Instance Methods
 
__init__(self, id, network_id, account, display_name, cid=None, memberships=0, contact_type='Regular')
Initializer
source code
 
__repr__(self)
repr(x)
source code
 
is_member(self, memberships)
Determines if this contact belongs to the specified memberships
source code

Inherited from unreachable.GObject: __cmp__, __copy__, __deepcopy__, __delattr__, __gdoc__, __gobject_init__, __hash__, __new__, __setattr__, chain, connect, connect_after, connect_object, connect_object_after, disconnect, disconnect_by_func, emit, emit_stop_by_name, freeze_notify, get_data, get_properties, get_property, handler_block, handler_block_by_func, handler_disconnect, handler_is_connected, handler_unblock, handler_unblock_by_func, notify, props, set_data, set_properties, set_property, stop_emission, thaw_notify, weak_ref

Inherited from object: __format__, __getattribute__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Class Variables
  __gtype__ = <GType papyon+profile+Contact (43444672)>
Properties
GUID string id
Contact identifier in a GUID form
{key: string => value: string} attributes
Contact attributes
GUID string cid
Contact ID
NetworkID network_id
Contact network ID
utf-8 encoded string account
Contact account
Presence presence
Contact presence
utf-8 encoded string display_name
Contact display name
utf-8 encoded string personal_message
Contact personal message
(artist: string, track: string) current_media
Contact current media
set(Group...) groups
Contact list of groups
{key: string => value: string} infos
Contact informations
bitmask of Memberships memberships
Contact membership value
ContactType contact_type
Contact automatic update status flag
ClientCapabilities client_capabilities
Contact client capabilities
MSNObject msn_object
Contact MSN Object
utf-8 encoded string domain
Contact domain, which is basically the part after @ in the account
string profile_url
Contact profile url

Inherited from unreachable.GObject: __grefcount__

Inherited from object: __class__

Method Details

__init__(self, id, network_id, account, display_name, cid=None, memberships=0, contact_type='Regular')
(Constructor)

source code 

Initializer

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

is_member(self, memberships)

source code 

Determines if this contact belongs to the specified memberships

Parameters:

Property Details

id

Contact identifier in a GUID form

Get Method:
unreachable.id(self) - Contact identifier in a GUID form
Type:
GUID string

attributes

Contact attributes

Get Method:
unreachable.attributes(self) - Contact attributes
Type:
{key: string => value: string}

cid

Contact ID

Get Method:
unreachable.cid(self) - Contact ID
Type:
GUID string

network_id

Contact network ID

Get Method:
unreachable.network_id(self) - Contact network ID
Type:
NetworkID

account

Contact account

Get Method:
unreachable.account(self) - Contact account
Type:
utf-8 encoded string

presence

Contact presence

Get Method:
unreachable.presence(self) - Contact presence
Type:
Presence

display_name

Contact display name

Get Method:
unreachable.display_name(self) - Contact display name
Type:
utf-8 encoded string

personal_message

Contact personal message

Get Method:
unreachable.personal_message(self) - Contact personal message
Type:
utf-8 encoded string

current_media

Contact current media

Get Method:
unreachable.current_media(self) - Contact current media
Type:
(artist: string, track: string)

groups

Contact list of groups

Get Method:
unreachable.groups(self) - Contact list of groups
Type:
set(Group...)

infos

Contact informations

Get Method:
unreachable.infos(self) - Contact informations
Type:
{key: string => value: string}

memberships

Contact membership value

Get Method:
unreachable.memberships(self) - Contact membership value
Type:
bitmask of Memberships

contact_type

Contact automatic update status flag

Get Method:
unreachable.contact_type(self) - Contact automatic update status flag
Type:
ContactType

client_capabilities

Contact client capabilities

Get Method:
unreachable.client_capabilities(self) - Contact client capabilities
Type:
ClientCapabilities

msn_object

Contact MSN Object

Get Method:
unreachable.msn_object(self) - Contact MSN Object
Type:
MSNObject

domain

Contact domain, which is basically the part after @ in the account

Get Method:
unreachable.domain(self) - Contact domain, which is basically the part after @ in the account
Type:
utf-8 encoded string

profile_url

Contact profile url

Get Method:
unreachable.profile_url(self) - Contact profile url
Type:
string