18 using System.Collections.Generic;
31 private readonly RestClient _client;
32 private readonly RestRequest _request;
33 private readonly
bool _isLiveMode;
34 private bool _delivered;
54 _client =
new RestClient(source);
55 _request =
new RestRequest(Method.GET);
56 _isLiveMode = isLiveMode;
61 foreach (var header
in headers)
63 _request.AddHeader(header.Key, header.Value);
81 get {
return !_isLiveMode && _delivered; }
91 var response = _client.Execute(_request);
95 return response.Content;