C# Class BatchBook.Company

Inheritance: Contact
Datei anzeigen Open project: batchblue/batchbook-net

Public Methods

Method Description
AddLocation ( string label, bool isPrimary, string email, string website, string phone, string cell, string fax, string street1, string street2, string city, string state, string postalCode, string country ) : void
Create ( string name, string notes ) : int
Create ( string apiKey, string name, string notes ) : int
Destroy ( int companyId ) : void
Destroy ( string apiKey, int companyId ) : void
Get ( int companyId ) : Company
Get ( string apiKey, int companyId ) : Company
GetCommunications ( string apiKey ) : BatchBook.Communication[]
GetPeople ( string apiKey ) : BatchBook.Person[]
GetTodos ( string apiKey ) : BatchBook.Todo[]
List ( int limit, int offset ) : BatchBook.Company[]
List ( string apiKey, int limit, int offset ) : BatchBook.Company[]
Search ( string name, string email, System.DateTime updatedSince, string tag, string state ) : BatchBook.Company[]
Search ( string apiKey, string name, string email, System.DateTime updatedSince, string tag, string state ) : BatchBook.Company[]
Update ( int companyId, string name, string notes ) : void
Update ( string apiKey, int companyId, string name, string notes ) : void

Private Methods

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

Method Details

AddLocation() public method

public AddLocation ( string label, bool isPrimary, string email, string website, string phone, string cell, string fax, string street1, string street2, string city, string state, string postalCode, string country ) : void
label string
isPrimary bool
email string
website string
phone string
cell string
fax string
street1 string
street2 string
city string
state string
postalCode string
country string
return void

Create() public static method

public static Create ( string name, string notes ) : int
name string
notes string
return int

Create() public static method

public static Create ( string apiKey, string name, string notes ) : int
apiKey string
name string
notes string
return int

Destroy() public static method

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

Destroy() public static method

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

Get() public static method

public static Get ( int companyId ) : Company
companyId int
return Company

Get() public static method

public static Get ( string apiKey, int companyId ) : Company
apiKey string
companyId int
return Company

GetCommunications() public method

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

GetPeople() public method

public GetPeople ( string apiKey ) : BatchBook.Person[]
apiKey string
return BatchBook.Person[]

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.Company[]
limit int
offset int
return BatchBook.Company[]

List() public static method

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

Search() public static method

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

Search() public static method

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

Update() public static method

public static Update ( int companyId, string name, string notes ) : void
companyId int
name string
notes string
return void

Update() public static method

public static Update ( string apiKey, int companyId, string name, string notes ) : void
apiKey string
companyId int
name string
notes string
return void