From 24993b09ec24a149d7f6d02c8352322d7843873c Mon Sep 17 00:00:00 2001 From: oerodger Date: Wed, 14 Jan 2026 15:16:36 +0000 Subject: [PATCH 1/3] CG-4 Add CacheSettings and StorageSettings classes to DTO --- Intento.SDK/Translate/DTO/CacheSettings.cs | 13 +++++++++++++ Intento.SDK/Translate/DTO/StorageSettings.cs | 13 +++++++++++++ Intento.SDK/Translate/DTO/TranslateService.cs | 6 ++++++ 3 files changed, 32 insertions(+) create mode 100644 Intento.SDK/Translate/DTO/CacheSettings.cs create mode 100644 Intento.SDK/Translate/DTO/StorageSettings.cs 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..dc77948 --- /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 From 5d127546be134759674af4442634adc08347469a Mon Sep 17 00:00:00 2001 From: oerodger Date: Wed, 14 Jan 2026 15:22:33 +0000 Subject: [PATCH 2/3] Refactor JSON property attributes in StorageSettings class --- Intento.SDK/Translate/DTO/StorageSettings.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Intento.SDK/Translate/DTO/StorageSettings.cs b/Intento.SDK/Translate/DTO/StorageSettings.cs index dc77948..e719323 100644 --- a/Intento.SDK/Translate/DTO/StorageSettings.cs +++ b/Intento.SDK/Translate/DTO/StorageSettings.cs @@ -4,10 +4,10 @@ namespace Intento.SDK.Translate.DTO { public class StorageSettings { - [JsonProperty( "path" )] + [JsonProperty("path")] public string Path { get; set; } - [JsonProperty( "searchkeys" )] + [JsonProperty("searchkeys")] public string[] SearchKeys { get; set; } } } \ No newline at end of file From 1285ccf14c7aa37028c4a0c8ae87e17411470247 Mon Sep 17 00:00:00 2001 From: oerodger Date: Wed, 14 Jan 2026 16:41:01 +0000 Subject: [PATCH 3/3] Add HttpClient namespace and improve comment clarity in DefaultLocatorImpl --- Intento.SDK.Autofac/DefaultLocatorImpl.cs | 1 + Intento.SDK.DependencyInjection/DefaultLocatorImpl.cs | 1 + Intento.SDK.Ninject/DefaultLocatorImpl.cs | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) 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);