public void AdicionarParametrosQueryString(Dictionary <string, string> queryStringParameters, IRestRequest request)
        {
            request.AddParameter("api_key", _ApiSettings.ObterAppSettings().MovieApiKey);

            foreach (KeyValuePair <string, string> parameter in queryStringParameters)
            {
                request.AddParameter(parameter.Key, parameter.Value);
            }
        }
Beispiel #2
0
 public MovieGenreServices(IApiSettings apiSettings, IMovieApiConsumer movieApiConsumer)
 {
     _ApiSettings      = apiSettings;
     _MovieApiConsumer = movieApiConsumer;
     Url = _ApiSettings.ObterAppSettings().BaseUrl + EndPoint;
 }
 public MovieUpComingServices(IApiSettings apiSettings, IMovieApiConsumer movieApiConsumer)
 {
     _MovieApiConsumer = movieApiConsumer;
     Url = apiSettings.ObterAppSettings().BaseUrl + EndPoint;
 }