Oddity
|
Represents an entry point of /payloads endpoint. More...
Public Member Functions | |
PayloadsEndpoint (OddityCore context) | |
Initializes a new instance of the PayloadsEndpoint<TData> class. More... | |
SimpleBuilder< TData > | Get (string id) |
Gets data about the specified payload from the /payloads/:id endpoint. More... | |
ListBuilder< TData > | GetAll () |
Gets data about all payloads from the /payloads endpoint. More... | |
QueryBuilder< TData > | Query () |
Gets filtered and paginated data about all payloads from the /payloads/query endpoint. More... | |
![]() | |
int | ClearCache () |
Clears all cached data. More... | |
Additional Inherited Members | |
![]() | |
EndpointBase (OddityCore context, int cacheLifetime) | |
Initializes a new instance of the EndpointBase<TData> class. More... | |
![]() | |
readonly OddityCore | Context |
readonly CacheService< TData > | Cache |
Represents an entry point of /payloads endpoint.
TData | Type of the data returned from API. |
TData | : | ModelBase | |
TData | : | IIdentifiable | |
TData | : | new() |
Oddity.Endpoints.PayloadsEndpoint< TData >.PayloadsEndpoint | ( | OddityCore | context | ) |
Initializes a new instance of the PayloadsEndpoint<TData> class.
context | The Oddity context used to interact with API. |
SimpleBuilder<TData> Oddity.Endpoints.PayloadsEndpoint< TData >.Get | ( | string | id | ) |
Gets data about the specified payload from the /payloads/:id endpoint.
id | ID of the specified payload. |
ListBuilder<TData> Oddity.Endpoints.PayloadsEndpoint< TData >.GetAll | ( | ) |
Gets data about all payloads from the /payloads endpoint.
QueryBuilder<TData> Oddity.Endpoints.PayloadsEndpoint< TData >.Query | ( | ) |
Gets filtered and paginated data about all payloads from the /payloads/query endpoint.