C# Class RiotSharp.Requester

Mostra file Open project: BenFradet/RiotSharp Class Usage Examples

Protected Properties

Property Type Description
rootDomain string

Public Methods

Method Description
CreateGetRequest ( string relativeUrl, string rootDomain, List addedArguments = null, bool useHttps = true ) : string
CreateGetRequestAsync ( string relativeUrl, string rootDomain, List addedArguments = null, bool useHttps = true ) : Task

Protected Methods

Method Description
BuildArgumentsString ( List arguments ) : string
GetResult ( HttpRequestMessage request ) : string
GetResultAsync ( HttpRequestMessage request ) : Task
HandleRequestFailure ( HttpStatusCode statusCode ) : void
Post ( HttpRequestMessage request ) : string
PostAsync ( HttpRequestMessage request ) : Task
PrepareRequest ( string relativeUrl, List addedArguments, bool useHttps, HttpMethod httpMethod ) : HttpRequestMessage
Put ( HttpRequestMessage request ) : HttpResponseMessage
PutAsync ( HttpRequestMessage request ) : Task

Private Methods

Method Description
Requester ( string apiKey = "" ) : System

Method Details

BuildArgumentsString() protected method

protected BuildArgumentsString ( List arguments ) : string
arguments List
return string

CreateGetRequest() public method

public CreateGetRequest ( string relativeUrl, string rootDomain, List addedArguments = null, bool useHttps = true ) : string
relativeUrl string
rootDomain string
addedArguments List
useHttps bool
return string

CreateGetRequestAsync() public method

public CreateGetRequestAsync ( string relativeUrl, string rootDomain, List addedArguments = null, bool useHttps = true ) : Task
relativeUrl string
rootDomain string
addedArguments List
useHttps bool
return Task

GetResult() protected method

protected GetResult ( HttpRequestMessage request ) : string
request HttpRequestMessage
return string

GetResultAsync() protected method

protected GetResultAsync ( HttpRequestMessage request ) : Task
request HttpRequestMessage
return Task

HandleRequestFailure() protected method

protected HandleRequestFailure ( HttpStatusCode statusCode ) : void
statusCode HttpStatusCode
return void

Post() protected method

protected Post ( HttpRequestMessage request ) : string
request HttpRequestMessage
return string

PostAsync() protected method

protected PostAsync ( HttpRequestMessage request ) : Task
request HttpRequestMessage
return Task

PrepareRequest() protected method

protected PrepareRequest ( string relativeUrl, List addedArguments, bool useHttps, HttpMethod httpMethod ) : HttpRequestMessage
relativeUrl string
addedArguments List
useHttps bool
httpMethod HttpMethod
return HttpRequestMessage

Put() protected method

protected Put ( HttpRequestMessage request ) : HttpResponseMessage
request HttpRequestMessage
return HttpResponseMessage

PutAsync() protected method

protected PutAsync ( HttpRequestMessage request ) : Task
request HttpRequestMessage
return Task

Property Details

rootDomain protected_oe property

protected string rootDomain
return string