Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Intento.SDK.Autofac/DefaultLocatorImpl.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Net;
using System.Net.Http;
using System.Reflection;
using Autofac;
using Autofac.Builder;
Expand Down
1 change: 1 addition & 0 deletions Intento.SDK.DependencyInjection/DefaultLocatorImpl.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Net;
using System.Net.Http;
using System.Reflection;
using Intento.SDK.Client;
using Intento.SDK.DI;
Expand Down
3 changes: 2 additions & 1 deletion Intento.SDK.Ninject/DefaultLocatorImpl.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Net;
using System.Net.Http;
using System.Reflection;
using Intento.SDK.Client;
using Intento.SDK.DI;
Expand Down Expand Up @@ -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);
Expand Down
13 changes: 13 additions & 0 deletions Intento.SDK/Translate/DTO/CacheSettings.cs
Original file line number Diff line number Diff line change
@@ -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; }
}
}
13 changes: 13 additions & 0 deletions Intento.SDK/Translate/DTO/StorageSettings.cs
Original file line number Diff line number Diff line change
@@ -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; }
}
}
6 changes: 6 additions & 0 deletions Intento.SDK/Translate/DTO/TranslateService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
}