|
Oddity
|
Represents a simple builder used to retrieve data without any filters. More...
Public Member Functions | |
| SimpleBuilder (OddityCore context, CacheService< TReturn > cache, string endpoint, string id) | |
| Initializes a new instance of the SimpleBuilder<TReturn> class. More... | |
| override TReturn | Execute () |
| Performs an synchronous request to the API and returns deserialized JSON. More... | |
| override bool | Execute (TReturn model) |
| Performs an synchronous request to the API and fills passed model in parameter with deserialized JSON. More... | |
| override async Task< TReturn > | ExecuteAsync () |
| Performs an asynchronous request to the API and returns deserialized JSON. More... | |
| override async Task< bool > | ExecuteAsync (TReturn model) |
| Performs an asynchronous request to the API and fills passed model in parameter with deserialized JSON. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Oddity.Builders.BuilderBase< TReturn > | |
| BuilderBase (OddityCore context) | |
| async Task< string > | GetResponseFromEndpoint (string link, string postBody=null) |
| string | SerializeJson (object model) |
| TReturn | DeserializeJson (string content) |
| void | DeserializeJson (string content, TReturn model) |
Protected Attributes inherited from Oddity.Builders.BuilderBase< TReturn > | |
| readonly OddityCore | Context |
Represents a simple builder used to retrieve data without any filters.
| TReturn | Type which will be returned after successful API request. |
| TReturn | : | ModelBase | |
| TReturn | : | IIdentifiable | |
| TReturn | : | new() |
| Oddity.Builders.SimpleBuilder< TReturn >.SimpleBuilder | ( | OddityCore | context, |
| CacheService< TReturn > | cache, | ||
| string | endpoint, | ||
| string | id | ||
| ) |
Initializes a new instance of the SimpleBuilder<TReturn> class.
|
virtual |
Performs an synchronous request to the API and returns deserialized JSON.
Implements Oddity.Builders.BuilderBase< TReturn >.
|
virtual |
Performs an synchronous request to the API and fills passed model in parameter with deserialized JSON.
Implements Oddity.Builders.BuilderBase< TReturn >.
|
virtual |
Performs an asynchronous request to the API and returns deserialized JSON.
Implements Oddity.Builders.BuilderBase< TReturn >.
|
virtual |
Performs an asynchronous request to the API and fills passed model in parameter with deserialized JSON.
Implements Oddity.Builders.BuilderBase< TReturn >.