C# Class Altairis.Fakturoid.Client.FakturoidSubjectsProxy

Proxy class for working with subjects/contacts.
Inheritance: FakturoidEntityProxy
Show file Open project: ridercz/Fakturoid-API

Public Methods

Method Description
Create ( Altairis.Fakturoid.Client.JsonSubject entity ) : int

Creates the specified new subject.

CreateAsync ( Altairis.Fakturoid.Client.JsonSubject entity ) : Task

Creates asynchronously the specified new subject.

Delete ( int id ) : void

Deletes subject with specified id.

DeleteAsync ( int id ) : System.Threading.Tasks.Task

Deletes asynchronously with specified id.

Select ( int page ) : IEnumerable

Gets paged list of subjects

Select ( string customId = null ) : IEnumerable

Gets list of all subjects.

SelectAsync ( int page ) : Task>

Gets asynchronously paged list of subjects

SelectAsync ( string customId = null ) : Task>

Gets asynchronously list of all subjects.

SelectSingle ( int id ) : Altairis.Fakturoid.Client.JsonSubject

Selects single subject with specified ID.

SelectSingleAsync ( int id ) : Task

Selects asynchronously single subject with specified ID.

Update ( Altairis.Fakturoid.Client.JsonSubject entity ) : Altairis.Fakturoid.Client.JsonSubject

Updates the specified subject.

UpdateAsync ( Altairis.Fakturoid.Client.JsonSubject entity ) : Task

Updates asynchronously the specified subject.

Private Methods

Method Description
FakturoidSubjectsProxy ( FakturoidContext context ) : System

Method Details

Create() public method

Creates the specified new subject.
entity
public Create ( Altairis.Fakturoid.Client.JsonSubject entity ) : int
entity Altairis.Fakturoid.Client.JsonSubject The new subject.
return int

CreateAsync() public method

Creates asynchronously the specified new subject.
entity
public CreateAsync ( Altairis.Fakturoid.Client.JsonSubject entity ) : Task
entity Altairis.Fakturoid.Client.JsonSubject The new subject.
return Task

Delete() public method

Deletes subject with specified id.
id;Value must be greater than zero.
public Delete ( int id ) : void
id int The contact id.
return void

DeleteAsync() public method

Deletes asynchronously with specified id.
id;Value must be greater than zero.
public DeleteAsync ( int id ) : System.Threading.Tasks.Task
id int The contact id.
return System.Threading.Tasks.Task

Select() public method

Gets paged list of subjects
page;Value must be greater than zero.
public Select ( int page ) : IEnumerable
page int The page number.
return IEnumerable

Select() public method

Gets list of all subjects.
public Select ( string customId = null ) : IEnumerable
customId string The custom identifier used for filtering.
return IEnumerable

SelectAsync() public method

Gets asynchronously paged list of subjects
page;Value must be greater than zero.
public SelectAsync ( int page ) : Task>
page int The page number.
return Task>

SelectAsync() public method

Gets asynchronously list of all subjects.
public SelectAsync ( string customId = null ) : Task>
customId string The custom identifier used for filtering.
return Task>

SelectSingle() public method

Selects single subject with specified ID.
id;Value must be greater than zero.
public SelectSingle ( int id ) : Altairis.Fakturoid.Client.JsonSubject
id int The subject id.
return Altairis.Fakturoid.Client.JsonSubject

SelectSingleAsync() public method

Selects asynchronously single subject with specified ID.
id;Value must be greater than zero.
public SelectSingleAsync ( int id ) : Task
id int The subject id.
return Task

Update() public method

Updates the specified subject.
entity
public Update ( Altairis.Fakturoid.Client.JsonSubject entity ) : Altairis.Fakturoid.Client.JsonSubject
entity Altairis.Fakturoid.Client.JsonSubject The subject to update.
return Altairis.Fakturoid.Client.JsonSubject

UpdateAsync() public method

Updates asynchronously the specified subject.
entity
public UpdateAsync ( Altairis.Fakturoid.Client.JsonSubject entity ) : Task
entity Altairis.Fakturoid.Client.JsonSubject The subject to update.
return Task