C# Class HarvestApi.Service.HarvestService

Inheritance: IHarvestService
ファイルを表示 Open project: s1m0nj/Harvest-Service-for-.Net Class Usage Examples

Private Properties

Property Type Description
PerformRequest string

Public Methods

Method Description
CreateClient ( string xml ) : string
CreateProject ( string xml ) : string
DeleteClient ( int clientID ) : string
DeleteProject ( int projectID ) : string
GetClient ( int clientID ) : string
GetClients ( ) : string
GetClients ( DateTime updatedSinceUTC ) : string
GetContacts ( ) : string
GetInvoices ( ) : string
GetProject ( int projectID ) : string
GetProjects ( ) : string
GetProjects ( DateTime updatedSinceUTC ) : string
GetProjects ( int clientID ) : string
HarvestService ( HarvestConnection harvestConnection ) : System
ToggleClientState ( int clientID ) : string
ToggleProjectState ( int projectID ) : string
UpdateClient ( int clientID, string xml ) : string
UpdateProject ( int projectID, string xml ) : string

Update existing project PUT /projects/#{project_id} HTTP Response: 200 OK Location: /projects/#{project_id} Post similar XML as with create a new project, but include client-id as part of the project. For activating a project a separate method needs to be used.

Private Methods

Method Description
PerformRequest ( IServiceCommand commmand, string xmlParameter = "" ) : string

Wrapper to set HavestRequestForcedWaitForApiThrotterling if it occurred

Method Details

CreateClient() public method

public CreateClient ( string xml ) : string
xml string
return string

CreateProject() public method

public CreateProject ( string xml ) : string
xml string
return string

DeleteClient() public method

public DeleteClient ( int clientID ) : string
clientID int
return string

DeleteProject() public method

public DeleteProject ( int projectID ) : string
projectID int
return string

GetClient() public method

public GetClient ( int clientID ) : string
clientID int
return string

GetClients() public method

public GetClients ( ) : string
return string

GetClients() public method

public GetClients ( DateTime updatedSinceUTC ) : string
updatedSinceUTC DateTime
return string

GetContacts() public method

public GetContacts ( ) : string
return string

GetInvoices() public method

public GetInvoices ( ) : string
return string

GetProject() public method

public GetProject ( int projectID ) : string
projectID int
return string

GetProjects() public method

public GetProjects ( ) : string
return string

GetProjects() public method

public GetProjects ( DateTime updatedSinceUTC ) : string
updatedSinceUTC DateTime
return string

GetProjects() public method

public GetProjects ( int clientID ) : string
clientID int
return string

HarvestService() public method

public HarvestService ( HarvestConnection harvestConnection ) : System
harvestConnection HarvestConnection
return System

ToggleClientState() public method

public ToggleClientState ( int clientID ) : string
clientID int
return string

ToggleProjectState() public method

public ToggleProjectState ( int projectID ) : string
projectID int
return string

UpdateClient() public method

public UpdateClient ( int clientID, string xml ) : string
clientID int
xml string
return string

UpdateProject() public method

Update existing project PUT /projects/#{project_id} HTTP Response: 200 OK Location: /projects/#{project_id} Post similar XML as with create a new project, but include client-id as part of the project. For activating a project a separate method needs to be used.
public UpdateProject ( int projectID, string xml ) : string
projectID int
xml string
return string