Oddity
Oddity.Endpoints.LaunchesEndpoint< TData > Class Template Reference

Represents an entry point of /launches endpoint. More...

Inheritance diagram for Oddity.Endpoints.LaunchesEndpoint< TData >:
Oddity.Endpoints.EndpointBase< TData >

Public Member Functions

 LaunchesEndpoint (OddityCore context)
 Initializes a new instance of the LaunchesEndpoint<TData> class. More...
 
SimpleBuilder< TData > Get (string id)
 Gets data about the specified launch from the /launches/:id endpoint. More...
 
SimpleBuilder< TData > GetLatest ()
 Gets data about the latest launch from the /launches/latest endpoint. More...
 
SimpleBuilder< TData > GetNext ()
 Gets data about the next launch from the /launches/next endpoint. More...
 
ListBuilder< TData > GetAll ()
 Gets data about all launches from the /launches endpoint. More...
 
ListBuilder< TData > GetPast ()
 Gets data about all past launches from the /launches/past endpoint. More...
 
ListBuilder< TData > GetUpcoming ()
 Gets data about all upcoming launches from the /launches/upcoming endpoint. More...
 
QueryBuilder< TData > Query ()
 Gets filtered and paginated data about all launches from the /launches/query endpoint. More...
 
- Public Member Functions inherited from Oddity.Endpoints.EndpointBase< TData >
int ClearCache ()
 Clears all cached data. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Oddity.Endpoints.EndpointBase< TData >
 EndpointBase (OddityCore context, int cacheLifetime)
 Initializes a new instance of the EndpointBase<TData> class. More...
 
- Protected Attributes inherited from Oddity.Endpoints.EndpointBase< TData >
readonly OddityCore Context
 
readonly CacheService< TData > Cache
 

Detailed Description

Represents an entry point of /launches endpoint.

Template Parameters
TDataType of the data returned from API.
Type Constraints
TData :ModelBase 
TData :IIdentifiable 
TData :new() 

Constructor & Destructor Documentation

Initializes a new instance of the LaunchesEndpoint<TData> class.

Parameters
contextThe Oddity context used to interact with API.

Member Function Documentation

SimpleBuilder<TData> Oddity.Endpoints.LaunchesEndpoint< TData >.Get ( string  id)

Gets data about the specified launch from the /launches/:id endpoint.

Parameters
idID of the specified launch.
Returns
Deserialized JSON returned from the API.
ListBuilder<TData> Oddity.Endpoints.LaunchesEndpoint< TData >.GetAll ( )

Gets data about all launches from the /launches endpoint.

Returns
Deserialized JSON returned from the API.
SimpleBuilder<TData> Oddity.Endpoints.LaunchesEndpoint< TData >.GetLatest ( )

Gets data about the latest launch from the /launches/latest endpoint.

Returns
Deserialized JSON returned from the API.
SimpleBuilder<TData> Oddity.Endpoints.LaunchesEndpoint< TData >.GetNext ( )

Gets data about the next launch from the /launches/next endpoint.

Returns
Deserialized JSON returned from the API.
ListBuilder<TData> Oddity.Endpoints.LaunchesEndpoint< TData >.GetPast ( )

Gets data about all past launches from the /launches/past endpoint.

Returns
Deserialized JSON returned from the API.
ListBuilder<TData> Oddity.Endpoints.LaunchesEndpoint< TData >.GetUpcoming ( )

Gets data about all upcoming launches from the /launches/upcoming endpoint.

Returns
Deserialized JSON returned from the API.

Gets filtered and paginated data about all launches from the /launches/query endpoint.

Returns
Deserialized JSON returned from the API.

The documentation for this class was generated from the following file: