C# Class SageOneApi.Requests.CategoryRequest

Inheritance: RequestBase, ICategoryRequest
Show file Open project: Pietervdw/sageone-api-wrapper

Public Methods

Method Description
CategoryRequest ( IRestClient client, string apiKey, int companyId ) : System
Delete ( int id, System.Enums categoryType ) : bool
Get ( int id, System.Enums categoryType ) : Category
Get ( System.Enums categoryType, string filter = "", int skip ) : PagingResponse
Save ( Category category, System.Enums categoryType ) : Category

Method Details

CategoryRequest() public method

public CategoryRequest ( IRestClient client, string apiKey, int companyId ) : System
client IRestClient
apiKey string
companyId int
return System

Delete() public method

public Delete ( int id, System.Enums categoryType ) : bool
id int
categoryType System.Enums
return bool

Get() public method

public Get ( int id, System.Enums categoryType ) : Category
id int
categoryType System.Enums
return SageOneApi.Models.Category

Get() public method

public Get ( System.Enums categoryType, string filter = "", int skip ) : PagingResponse
categoryType System.Enums
filter string
skip int
return PagingResponse

Save() public method

public Save ( Category category, System.Enums categoryType ) : Category
category SageOneApi.Models.Category
categoryType System.Enums
return SageOneApi.Models.Category