C# 클래스 BusinessComponents.OperationsComponent

파일 보기 프로젝트 열기: constantcontact/constantcontact-csharp-tutor

공개 메소드들

메소드 설명
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