C# Class Movies.MoviesApi

Main class for grouping root resources. Nested resources are defined as properties. The constructor can optionally receive an URL and HttpClient instance to override the default ones.
Mostra file Open project: mulesoft-labs/raml-dotnet-apicore Class Usage Examples

Protected Properties

Property Type Description
client System.Net.Http.HttpClient

Private Properties

Property Type Description

Public Methods

Method Description
AddDefaultRequestHeader ( string name, IEnumerable values ) : void
AddDefaultRequestHeader ( string name, string value ) : void
MoviesApi ( HttpClient httpClient ) : System
MoviesApi ( string endpointUrl ) : System

Method Details

AddDefaultRequestHeader() public method

public AddDefaultRequestHeader ( string name, IEnumerable values ) : void
name string
values IEnumerable
return void

AddDefaultRequestHeader() public method

public AddDefaultRequestHeader ( string name, string value ) : void
name string
value string
return void

MoviesApi() public method

public MoviesApi ( HttpClient httpClient ) : System
httpClient System.Net.Http.HttpClient
return System

MoviesApi() public method

public MoviesApi ( string endpointUrl ) : System
endpointUrl string
return System

Property Details

client protected_oe property

protected HttpClient,System.Net.Http client
return System.Net.Http.HttpClient