public CacheTimer(IRestResponse response, IEsiRestClient client, string dataSource = "tranquility")
 {
     Resource   = client.BuildUri(response.Request).AbsolutePath;
     DataSource = dataSource;
     Key        = "";
     foreach (var p in response.Request.Parameters.Where(param => param.Type == ParameterType.QueryString))
     {
         if (p.Name != "datasource")
         {
             Key += $"{p.Value}";
         }
     }
     Expires     = DateTime.Parse((string)response.Headers.FirstOrDefault(t => t.Name == "Expires")?.Value).ToUniversalTime();
     LastUpdated = DateTime.UtcNow;
 }
예제 #2
0
        //private RestClient restClient { get => ApiClient.RestClient; }

        public UniverseApi(IEsiRestClient client)
        {
            Client = client;
        }
 public IndustryApi(IEsiRestClient client) : base(client)
 {
 }
예제 #4
0
 public WalletApi(IEsiRestClient client) : base(client)
 {
 }
예제 #5
0
 public MarketApi(IEsiRestClient client) : base(client)
 {
 }
예제 #6
0
 //public RestClient restClient { get => ApiClient.RestClient; }
 public CommonApi(IEsiRestClient client) => Client = client;
예제 #7
0
 public CorporationApi(IEsiRestClient client) : base(client)
 {
     this.Client = client;
 }
예제 #8
0
 public CharacterApi(IEsiRestClient client) : base(client)
 {
 }