diff --git a/Intento.SDK.Autofac/DefaultLocatorImpl.cs b/Intento.SDK.Autofac/DefaultLocatorImpl.cs index fea0fa4..f34e29d 100644 --- a/Intento.SDK.Autofac/DefaultLocatorImpl.cs +++ b/Intento.SDK.Autofac/DefaultLocatorImpl.cs @@ -1,4 +1,5 @@ using System.Net; +using System.Net.Http; using System.Reflection; using Autofac; using Autofac.Builder; diff --git a/Intento.SDK.DependencyInjection/DefaultLocatorImpl.cs b/Intento.SDK.DependencyInjection/DefaultLocatorImpl.cs index c58a2ed..f89d716 100644 --- a/Intento.SDK.DependencyInjection/DefaultLocatorImpl.cs +++ b/Intento.SDK.DependencyInjection/DefaultLocatorImpl.cs @@ -1,4 +1,5 @@ using System.Net; +using System.Net.Http; using System.Reflection; using Intento.SDK.Client; using Intento.SDK.DI; diff --git a/Intento.SDK.Ninject/DefaultLocatorImpl.cs b/Intento.SDK.Ninject/DefaultLocatorImpl.cs index e0b0a28..3b5aa1f 100644 --- a/Intento.SDK.Ninject/DefaultLocatorImpl.cs +++ b/Intento.SDK.Ninject/DefaultLocatorImpl.cs @@ -1,4 +1,5 @@ using System.Net; +using System.Net.Http; using System.Reflection; using Intento.SDK.Client; using Intento.SDK.DI; @@ -111,7 +112,7 @@ private static void Register( { if (descriptor.ImplementationType != null) { - // Test if the an open generic type is being registered + // Test if an open generic type is being registered kernel.Bind(descriptor.ServiceType) .To(descriptor.ImplementationType) .ConfigureLifecycle(descriptor.Lifetime); diff --git a/Intento.SDK/Translate/DTO/CacheSettings.cs b/Intento.SDK/Translate/DTO/CacheSettings.cs new file mode 100644 index 0000000..058d543 --- /dev/null +++ b/Intento.SDK/Translate/DTO/CacheSettings.cs @@ -0,0 +1,13 @@ +using Newtonsoft.Json; + +namespace Intento.SDK.Translate.DTO +{ + public class CacheSettings + { + [JsonProperty("apply")] + public bool Apply { get; set; } + + [JsonProperty("update")] + public bool Update { get; set; } + } +} \ No newline at end of file diff --git a/Intento.SDK/Translate/DTO/StorageSettings.cs b/Intento.SDK/Translate/DTO/StorageSettings.cs new file mode 100644 index 0000000..e719323 --- /dev/null +++ b/Intento.SDK/Translate/DTO/StorageSettings.cs @@ -0,0 +1,13 @@ +using Newtonsoft.Json; + +namespace Intento.SDK.Translate.DTO +{ + public class StorageSettings + { + [JsonProperty("path")] + public string Path { get; set; } + + [JsonProperty("searchkeys")] + public string[] SearchKeys { get; set; } + } +} \ No newline at end of file diff --git a/Intento.SDK/Translate/DTO/TranslateService.cs b/Intento.SDK/Translate/DTO/TranslateService.cs index f6271ef..6b70b4d 100644 --- a/Intento.SDK/Translate/DTO/TranslateService.cs +++ b/Intento.SDK/Translate/DTO/TranslateService.cs @@ -28,5 +28,11 @@ public class TranslateService [JsonProperty("failover_list")] public string[] FailoverList { get; set; } + + [JsonProperty("cache")] + public CacheSettings Cache { get; set; } + + [JsonProperty("storage")] + public StorageSettings Storage { get; set; } } } \ No newline at end of file