FolksDummy.FullPersona – folks-dummy – Vala Binding Reference

FolksDummy.FullPersona – folks-dummy Reference Manual

# FullPersona

## Object Hierarchy:

## Description:

public class FullPersona : Persona, AntiLinkable, AvatarDetails, BirthdayDetails, EmailDetails, FavouriteDetails, GenderDetails, GroupDetails, ImDetails, LocalIdDetails, NameDetails, NoteDetails, PhoneDetails, RoleDetails, UrlDetails, PostalAddressDetails, WebServiceDetails

A persona subclass representing a single ‘full’ contact.

This mocks up a ‘full’ persona which implements all the available property interfaces provided by libfolks. This is in contrast with FolksDummy.Persona, which provides a base class implementing none of libfolks’ interfaces.

The full dummy persona can be used to simulate a persona from most libfolks backends, if writing a custom FolksDummy.Persona subclass is not an option.

There are two sides to this class’ interface: the normal methods required by the libfolks ‘details’ interfaces, such as Folks.GenderDetails.change_gender, and the backend methods which should be called by test driver code to simulate changes in the backing store providing this persona, such as FullPersona.update_gender. For example, test driver code should call FullPersona.update_nickname to simulate the user editing a contact’s nickname in an online address book which is being exposed to libfolks. The `update_`, `register_` and `unregister_` prefixes are commonly used for backend methods.

The API in FolksDummy is unstable and may change wildly. It is designed mostly for use by libfolks unit tests.

## Since:

0.9.7

Namespace: FolksDummy
Package: folks-dummy

## Content:

### Properties:

- public Set<string> anti_links { get; set; }
- public LoadableIcon? avatar { get; set; }
- public DateTime? birthday { get; set; }
- public string? calendar_event_id { get; set; }
- public Set<EmailFieldDetails> email_addresses { get; set; }
- public string full_name { get; set; }
- public Gender gender { get; set; }
- public Set<string> groups { get; set; }
- public MultiMap<string,ImFieldDetails> im_addresses { get; set; }
- public bool is_favourite { get; set; }
  Whether this contact is a user-defined favourite.
- public Set<string> local_ids { get; set; }
- public string nickname { get; set; }
- public Set<NoteFieldDetails> notes { get; set; }
- public Set<PhoneFieldDetails> phone_numbers { get; set; }
- public Set<PostalAddressFieldDetails> postal_addresses { get; set; }
- public Set<RoleFieldDetails> roles { get; set; }
- public StructuredName? structured_name { get; set; }
- public Set<UrlFieldDetails> urls { get; set; }
- public MultiMap<string,WebServiceFieldDetails> web_service_addresses { get; set; }

### Creation methods:

- public FullPersona (PersonaStore store, string contact_id, bool is_user = false, string[] linkable_properties = new string[0] {})
  Create a new ‘full’ persona.

### Methods:

- public async void change_anti_links (Set<string> anti_links) throws PropertyError
- public async void change_avatar (LoadableIcon? avatar) throws PropertyError
- public async void change_birthday (DateTime? bday) throws PropertyError
- public async void change_calendar_event_id (string? calendar_event_id) throws PropertyError
- public async void change_email_addresses (Set<EmailFieldDetails> email_addresses) throws PropertyError
- public async void change_full_name (string full_name) throws PropertyError
- public async void change_gender (Gender gender) throws PropertyError
- public async void change_group (string group, bool is_member) throws Error
- public async void change_groups (Set<string> groups) throws PropertyError
- public async void change_im_addresses (MultiMap<string,ImFieldDetails> im_addresses) throws PropertyError
- public async void change_is_favourite (bool is_favourite) throws PropertyError
- public async void change_local_ids (Set<string> local_ids) throws PropertyError
- public async void change_nickname (string nickname) throws PropertyError
- public async void change_notes (Set<NoteFieldDetails> notes) throws PropertyError
- public async void change_phone_numbers (Set<PhoneFieldDetails> phone_numbers) throws PropertyError
- public async void change_postal_addresses (Set<PostalAddressFieldDetails> postal_addresses) throws PropertyError
- public async void change_roles (Set<RoleFieldDetails> roles) throws PropertyError
- public async void change_structured_name (StructuredName? structured_name) throws PropertyError
- public async void change_urls (Set<UrlFieldDetails> urls) throws PropertyError
- public async void change_web_service_addresses (MultiMap<string,WebServiceFieldDetails> web_service_addresses) throws PropertyError
- public void update_anti_links (Set<string> anti_links)
  Update persona's anti-links.
- public void update_avatar (LoadableIcon? avatar)
  Update persona's avatar.
- public void update_birthday (DateTime? birthday)
  Update persona's birthday.
- public void update_calendar_event_id (string? calendar_event_id)
  Update persona's birthday calendar event ID.
- public void update_email_addresses (Set<EmailFieldDetails> email_addresses)
  Update persona's e-mail addresses.
- public void update_full_name (string full_name)
  Update persona's full name.
- public void update_gender (Gender gender)
  Update persona's gender.
- public void update_groups (Set<string> groups)
  Update persona's groups.
- public void update_im_addresses (MultiMap<string,ImFieldDetails> im_addresses)
  Update persona's IM addresses.
- public void update_is_favourite (bool is_favourite)
  Update persona's status as a favourite.
- public void update_local_ids (Set<string> local_ids)
  Update persona's local IDs.
- public void update_nickname (string nickname)
  Update persona's nickname.
- public void update_notes (Set<NoteFieldDetails> notes)
  Update persona's notes.
- public void update_phone_numbers (Set<PhoneFieldDetails> phone_numbers)
  Update persona's phone numbers.
- public void update_postal_addresses (Set<PostalAddressFieldDetails> postal_addresses)
  Update persona's postal addresses.
- public void update_roles (Set<RoleFieldDetails> roles)
  Update persona's roles.
- public void update_structured_name (StructuredName? structured_name)
  Update persona's structured name.
- public void update_urls (Set<UrlFieldDetails> urls)
  Update persona's URIs.
- public void update_web_service_addresses (MultiMap<string,WebServiceFieldDetails> web_service_addresses)
  Update persona's web service addresses.

### Inherited Members:

All known members inherited from class FolksDummy.Persona

- linkable_properties
- linkable_property_to_links

- update_linkable_properties
- update_writeable_properties

- writeable_properties

All known members inherited from class Folks.Persona

- LinkablePropertyCallback
- build_uid
- display_id
- iid

- individual
- is_user
- linkable_properties
- linkable_property_to_links

- split_uid
- store
- uid
- writeable_properties

All known members inherited from class GLib.Object

- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data

- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer

- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref

All known members inherited from interface Folks.AntiLinkable

- add_anti_links
- add_global_anti_link
- anti_links

- change_anti_links
- has_anti_link_with_persona
- has_global_anti_link

- remove_anti_links
- remove_global_anti_link

All known members inherited from interface Folks.AvatarDetails

- avatar

- change_avatar

All known members inherited from interface Folks.BirthdayDetails

- birthday
- calendar_event_id

- change_birthday

- change_calendar_event_id

All known members inherited from interface Folks.EmailDetails

- change_email_addresses

- email_addresses

All known members inherited from interface Folks.FavouriteDetails

- change_is_favourite

- is_favourite

All known members inherited from interface Folks.GenderDetails

- change_gender

- gender

All known members inherited from interface Folks.GroupDetails

- change_group
- change_groups

- group_changed

- groups

All known members inherited from interface Folks.ImDetails

- change_im_addresses

- im_addresses

- normalise_im_address

All known members inherited from interface Folks.LocalIdDetails

- change_local_ids

- local_ids

All known members inherited from interface Folks.NameDetails

- change_full_name
- change_nickname

- change_structured_name
- full_name

- nickname
- structured_name

All known members inherited from interface Folks.NoteDetails

- change_notes

- notes

All known members inherited from interface Folks.PhoneDetails

- change_phone_numbers

- phone_numbers

All known members inherited from interface Folks.RoleDetails

- change_roles

- roles

All known members inherited from interface Folks.UrlDetails

- change_urls

- urls

All known members inherited from interface Folks.PostalAddressDetails

- change_postal_addresses

- postal_addresses

All known members inherited from interface Folks.WebServiceDetails

- change_web_service_addresses

- web_service_addresses