C# Класс BusinessComponents.OperationsComponent

Показать файл Открыть проект

Открытые методы

Метод Описание
AddContactList ( CredentialsDetails credentialsDetail, string name, string &strRequest, string &strResponse ) : ContactListDetails

Method used for adding a new contact list to Constant Contact

Authentification ( CredentialsDetails credentialsDetail, string &strRequest, string &strResponse ) : void

Method used for trying to access the current user root document, if the credentials are fine then an xml response will be brought back else an exception will be thrown

DeleteContactList ( CredentialsDetails credentialsDetail, string listId, string &strRequest, string &strResponse ) : void

Method used for deleting an existing contact list

GetContactLists ( CredentialsDetails credentialsDetail, string &strRequest, string &strResponse ) : List

Gets the contact list collection for the current user

GetContacts ( CredentialsDetails credentialsDetail, string listId, string &strRequest, string &strResponse ) : List

Get the contacts for a given list along with some contact details

UpdateExistingContact ( CredentialsDetails credentialsDetails, ContactDetails contact, string &strRequest, string &strResponse ) : void

Method used for updating an existing contact

Приватные методы

Метод Описание
CreateList ( string name ) : string

Creates the xml for adding a new list to Constant Contact

Описание методов

AddContactList() публичный статический Метод

Method used for adding a new contact list to Constant Contact
public static AddContactList ( CredentialsDetails credentialsDetail, string name, string &strRequest, string &strResponse ) : ContactListDetails
credentialsDetail BusinessObjects.CredentialsDetails An object that encapsulates the Constant Contact credentials
name string The name of the new contact list
strRequest string The request string representation
strResponse string The response string representation
Результат BusinessObjects.ContactListDetails

Authentification() публичный статический Метод

Method used for trying to access the current user root document, if the credentials are fine then an xml response will be brought back else an exception will be thrown
public static Authentification ( CredentialsDetails credentialsDetail, string &strRequest, string &strResponse ) : void
credentialsDetail BusinessObjects.CredentialsDetails An object that encapsulates the Constant Contact credentials
strRequest string The request string representation
strResponse string The response string representation
Результат void

DeleteContactList() публичный статический Метод

Method used for deleting an existing contact list
public static DeleteContactList ( CredentialsDetails credentialsDetail, string listId, string &strRequest, string &strResponse ) : void
credentialsDetail BusinessObjects.CredentialsDetails An object that encapsulates the Constant Contact credentials
listId string The id of the list to be deleted
strRequest string The request string representation
strResponse string The response string representation
Результат void

GetContactLists() публичный статический Метод

Gets the contact list collection for the current user
public static GetContactLists ( CredentialsDetails credentialsDetail, string &strRequest, string &strResponse ) : List
credentialsDetail BusinessObjects.CredentialsDetails An object that encapsulates the Constant Contact credentials
strRequest string The request string representation
strResponse string The response string representation
Результат List

GetContacts() публичный статический Метод

Get the contacts for a given list along with some contact details
public static GetContacts ( CredentialsDetails credentialsDetail, string listId, string &strRequest, string &strResponse ) : List
credentialsDetail BusinessObjects.CredentialsDetails An object that encapsulates the Constant Contact credentials
listId string The id of the list for witch the contacts will be brought
strRequest string The request string representation
strResponse string The response string representation
Результат List

UpdateExistingContact() публичный статический Метод

Method used for updating an existing contact
public static UpdateExistingContact ( CredentialsDetails credentialsDetails, ContactDetails contact, string &strRequest, string &strResponse ) : void
credentialsDetails BusinessObjects.CredentialsDetails An object that encapsulates the Constant Contact credentials
contact BusinessObjects.ContactDetails The contact url
strRequest string The request string representation
strResponse string The response string representation
Результат void