TTMSFNCCustomCloudGooglePeople Class
Base component that connects to the Google People service to read and manage a user's contacts and contact groups.
API unit family: TMSFNCCloudGooglePeople
Inherits from: TTMSFNCCustomCloudGoogle
Syntax
TTMSFNCCustomCloudGooglePeople = class(TTMSFNCCustomCloudGoogle)
Remarks
Authenticate the component before issuing requests. Each request runs asynchronously and reports its outcome through the matching event.
Properties
| Name | Description |
|---|---|
| Contacts | Contacts retrieved by the most recent GetContacts call. |
| Groups | Contact groups retrieved by the most recent GetGroups call. |
Methods
| Name | Description |
|---|---|
| AddContactToGroup | Adds a contact to a contact group. |
| CreateContact | Creates a new contact from the given item. |
| CreateGroup | Creates a new contact group from the given item. |
| DeleteContact | Deletes an existing contact. |
| DeleteContactFromGroup | Removes a contact from a contact group. |
| DeleteGroup | Deletes an existing contact group. |
| GetContactByID | Requests a single contact by its resource identifier. |
| GetContacts | Requests the authenticated user's contacts and fills the Contacts collection. |
| GetGroupByID | Requests a single contact group by its resource identifier. |
| GetGroups | Requests the authenticated user's contact groups and fills the Groups collection. |
| UpdateContact | Updates an existing contact with the values of the given item. |
| UpdateGroup | Updates an existing contact group with the values of the given item. |
Events
| Name | Description |
|---|---|
| OnAddContactToGroup | Occurs when an AddContactToGroup request completes, reporting the affected contact. |
| OnCreateContact | Occurs when a CreateContact request completes, reporting the created contact. |
| OnCreateGroup | Occurs when a CreateGroup request completes, reporting the created group. |
| OnDeleteContact | Occurs when a DeleteContact request completes. |
| OnDeleteContactFromGroup | Occurs when a DeleteContactFromGroup request completes, reporting the affected contact. |
| OnDeleteGroup | Occurs when a DeleteGroup request completes. |
| OnGetContactByID | Occurs when a GetContactByID request completes, reporting the retrieved contact. |
| OnGetContacts | Occurs when a GetContacts request completes, reporting the retrieved contacts. |
| OnGetGroupByID | Occurs when a GetGroupByID request completes, reporting the retrieved group. |
| OnGetGroups | Occurs when a GetGroups request completes, reporting the retrieved groups. |
| OnUpdateContact | Occurs when an UpdateContact request completes, reporting the updated contact. |
| OnUpdateGroup | Occurs when an UpdateGroup request completes, reporting the updated group. |