Msg.UserService¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Msg.UserService(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(authorizer)¶
- Parameters:
authorizer (
Msg.Authorizer) –- Return type:
- find_users(name, cancellable)¶
- Parameters:
name (
str) – name to searchcancellable (
Gio.CancellableorNone) – aGio.Cancellable
- Raises:
- Returns:
a list of contacts with the given name.
- Return type:
[
Msg.User]
Find all users with the given name. (Business accounts only!)
- get_contact_folders(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.Cancellable- Raises:
- Returns:
all user contact folders the user can access
- Return type:
Get all folders for given service
- get_contacts(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.Cancellable- Raises:
- Returns:
all contact in users contact folder
- Return type:
Get all contats within users ‘Contact’ folder.
- get_photo(mail, cancellable)¶
- Parameters:
mail (
str) – mail addresscancellable (
Gio.CancellableorNone) – aGio.Cancellable
- Raises:
- Returns:
user photo or
Noneif not found.- Return type:
Try to load user photo using provided %mail address.
- get_user(name, cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.Cancellable
- Raises:
- Returns:
request user
- Return type:
Get user information