C# 클래스 ConstantContactUtility.Components.ContactComponent

Parse response Streams into Contacts, creates entries for creating and updating Contacts
파일 보기 프로젝트 열기: constantcontact/Constant-Contact-Dot-Net-ASP-Campaign-Forms

공개 메소드들

메소드 설명
CreateNewContact ( ConstantContactBO.Contact contact, string accountContactListUri ) : StringBuilder

Get the Atom entry for newly Contact to be send to Constant server

GetContactCollection ( Stream stream, string &next ) : List

Get the collection of Contacts from the Http response stream

GetContactDetails ( Stream stream ) : ConstantContactBO.Contact

Retrieve an Individual Contact from the Http response stream.

RemoveContactFromAllLists ( ConstantContactBO.Contact contact, string accountContactUri ) : StringBuilder

Get the Atom entry for the Contact to be removed from all Contact Lists

UpdateContact ( ConstantContactBO.Contact contact, string apiUri, string accountContactListUri, bool fullUpdate ) : StringBuilder

Get the Atom entry for the Contact to be updated

비공개 메소드들

메소드 설명
ContactComponent ( ) : System

Class constructor

CreateAtomEntry ( ConstantContactBO.Contact contact, string accountContactListUri ) : StringBuilder

Create an Atom entry used to create a new Contact

CreateFullUpdateAtomEntry ( ConstantContactBO.Contact contact, string accountContactUri, string accountContactListUri ) : StringBuilder

Create an Atom entry used to update a Contact

CreateRemoveFromAllListsAtomEntry ( ConstantContactBO.Contact contact, string accountContactUri ) : StringBuilder

Create an Atom entry used to update a Contact

CreateSmallUpdateAtomEntry ( ConstantContactBO.Contact contact, string apiUri, string accountContactListUri ) : StringBuilder

Create an Atom entry used to update a Contact. Only the following fields will be updated: EmailAddress, FirstName, LastName, MiddleName, HomePhone, Addr1, Addr2, Addr3, City, StateCode, StateName, CountryCode, CountryName, PostalCode, SubPostalCode

GetContact ( XPathNavigator node, IXmlNamespaceResolver resolver ) : ConstantContactBO.Contact

Get Contact object from specified Xml data

GetContactDetail ( XPathNavigator node, IXmlNamespaceResolver resolver ) : ConstantContactBO.Contact

Get Contact object with details from specified Xml data

GetContactId ( XPathNavigator node ) : string

Gets the Id of Contact from Xml data

GetContactLink ( XPathNavigator node, IXmlNamespaceResolver resolver ) : string

Gets the edit Link of Contact from Xml data

GetContactListId ( XPathNavigator node ) : string

Gets the Id of Contact List from Xml data

GetContactStatus ( string contactStatus ) : ContactStatus

Get the ContactStatus enum

GetEmailType ( string emailType ) : ContactEmailType

Get the ContactEmailType enum

GetLink ( XPathNavigator navigator, string attributeValue, IXmlNamespaceResolver resolver ) : string

Gets the link with specified rel attribute value

GetNextLink ( XPathNavigator navigator, IXmlNamespaceResolver resolver ) : string

Gets the link to next chunk of data

GetOptSource ( string optSource ) : ContactOptSource

Get the ContactOptSource enum

InitializeContactStatusNames ( ) : void

Initialize ContactStatusName dictionary

InitializeEmailTypeNames ( ) : void

Initialize Email Type Name dictionary

InitializeOptSourceNames ( ) : void

Initialize Opt Source Name dictionary

메소드 상세

CreateNewContact() 공개 정적인 메소드

Get the Atom entry for newly Contact to be send to Constant server
public static CreateNewContact ( ConstantContactBO.Contact contact, string accountContactListUri ) : StringBuilder
contact ConstantContactBO.Contact Contact to be created
accountContactListUri string Uri address of Account Owner Contact resource
리턴 StringBuilder

GetContactCollection() 공개 정적인 메소드

Get the collection of Contacts from the Http response stream
public static GetContactCollection ( Stream stream, string &next ) : List
stream Stream Response Stream
next string Link to the next chunk of data
리턴 List

GetContactDetails() 공개 정적인 메소드

Retrieve an Individual Contact from the Http response stream.
public static GetContactDetails ( Stream stream ) : ConstantContactBO.Contact
stream Stream Response Stream
리턴 ConstantContactBO.Contact

RemoveContactFromAllLists() 공개 정적인 메소드

Get the Atom entry for the Contact to be removed from all Contact Lists
public static RemoveContactFromAllLists ( ConstantContactBO.Contact contact, string accountContactUri ) : StringBuilder
contact ConstantContactBO.Contact Contact to be updated
accountContactUri string Uri address of Account Owner Contact resource
리턴 StringBuilder

UpdateContact() 공개 정적인 메소드

Get the Atom entry for the Contact to be updated
public static UpdateContact ( ConstantContactBO.Contact contact, string apiUri, string accountContactListUri, bool fullUpdate ) : StringBuilder
contact ConstantContactBO.Contact Contact to be updated
apiUri string Uri of the API
accountContactListUri string Uri address of Account Owner Contact List resource
fullUpdate bool True if all Contact fields will be update; False otherwise (only the following fields /// will be updated: EmailAddress, FirstName, LastName, MiddleName, HomePhone, Addr1, Addr2, Addr3, /// City, StateCode, StateName, CountryCode, CountryName, PostalCode, SubPostalCode)
리턴 StringBuilder