C# Class BatchBook.Person

Inheritance: Contact
显示文件 Open project: batchblue/batchbook-net Class Usage Examples

Public Methods

Method Description
Create ( string firstName, string lastName, string title, string notes, int companyId ) : int
Create ( string apiKey, string firstName, string lastName, string title, string notes, int companyId ) : int
Destroy ( int personId ) : void
Destroy ( string apiKey, int personId ) : void
Get ( int personId ) : Person
Get ( string apiKey, int personId ) : Person
GetByDeal ( int dealId ) : BatchBook.Person[]
GetByDeal ( string apiKey, int dealId ) : BatchBook.Person[]
GetCommunications ( string apiKey ) : BatchBook.Communication[]
GetTodos ( string apiKey ) : BatchBook.Todo[]
List ( int limit, int offset ) : BatchBook.Person[]
List ( string apiKey, int limit, int offset ) : BatchBook.Person[]
ListByCompany ( int companyId ) : BatchBook.Person[]
ListByCompany ( string apiKey, int companyId ) : BatchBook.Person[]
Search ( string name, string email, System.DateTime updatedSince, string tag, string state ) : BatchBook.Person[]
Search ( string apiKey, string name, string email, System.DateTime updatedSince, string tag, string state ) : BatchBook.Person[]
Update ( int personId, string firstName, string lastName, string title, string notes, string company ) : void
Update ( string apiKey, int personId, string firstName, string lastName, string title, string notes, string company ) : void

Private Methods

Method Description
BuildList ( XmlReader rdr ) : BatchBook.Person[]
Person ( XmlReader rdr ) : System

Method Details

Create() public static method

public static Create ( string firstName, string lastName, string title, string notes, int companyId ) : int
firstName string
lastName string
title string
notes string
companyId int
return int

Create() public static method

public static Create ( string apiKey, string firstName, string lastName, string title, string notes, int companyId ) : int
apiKey string
firstName string
lastName string
title string
notes string
companyId int
return int

Destroy() public static method

public static Destroy ( int personId ) : void
personId int
return void

Destroy() public static method

public static Destroy ( string apiKey, int personId ) : void
apiKey string
personId int
return void

Get() public static method

public static Get ( int personId ) : Person
personId int
return Person

Get() public static method

public static Get ( string apiKey, int personId ) : Person
apiKey string
personId int
return Person

GetByDeal() public static method

public static GetByDeal ( int dealId ) : BatchBook.Person[]
dealId int
return BatchBook.Person[]

GetByDeal() public static method

public static GetByDeal ( string apiKey, int dealId ) : BatchBook.Person[]
apiKey string
dealId int
return BatchBook.Person[]

GetCommunications() public method

public GetCommunications ( string apiKey ) : BatchBook.Communication[]
apiKey string
return BatchBook.Communication[]

GetTodos() public method

public GetTodos ( string apiKey ) : BatchBook.Todo[]
apiKey string
return BatchBook.Todo[]

List() public static method

public static List ( int limit, int offset ) : BatchBook.Person[]
limit int
offset int
return BatchBook.Person[]

List() public static method

public static List ( string apiKey, int limit, int offset ) : BatchBook.Person[]
apiKey string
limit int
offset int
return BatchBook.Person[]

ListByCompany() public static method

public static ListByCompany ( int companyId ) : BatchBook.Person[]
companyId int
return BatchBook.Person[]

ListByCompany() public static method

public static ListByCompany ( string apiKey, int companyId ) : BatchBook.Person[]
apiKey string
companyId int
return BatchBook.Person[]

Search() public static method

public static Search ( string name, string email, System.DateTime updatedSince, string tag, string state ) : BatchBook.Person[]
name string
email string
updatedSince System.DateTime
tag string
state string
return BatchBook.Person[]

Search() public static method

public static Search ( string apiKey, string name, string email, System.DateTime updatedSince, string tag, string state ) : BatchBook.Person[]
apiKey string
name string
email string
updatedSince System.DateTime
tag string
state string
return BatchBook.Person[]

Update() public static method

public static Update ( int personId, string firstName, string lastName, string title, string notes, string company ) : void
personId int
firstName string
lastName string
title string
notes string
company string
return void

Update() public static method

public static Update ( string apiKey, int personId, string firstName, string lastName, string title, string notes, string company ) : void
apiKey string
personId int
firstName string
lastName string
title string
notes string
company string
return void