From bcca10d0e9275e3d365fad49d369c9f28c3909a1 Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Thu, 13 Oct 2022 17:21:18 +0200 Subject: [PATCH] Add APIConfiguration to csharp class models --- .../SVGLDLibs/Models/APIConfiguration.cs | 19 +++++++++++++++++++ .../SVGLDLibs/Models/Configuration.cs | 5 ++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 csharp/SVGLDLibs/SVGLDLibs/Models/APIConfiguration.cs diff --git a/csharp/SVGLDLibs/SVGLDLibs/Models/APIConfiguration.cs b/csharp/SVGLDLibs/SVGLDLibs/Models/APIConfiguration.cs new file mode 100644 index 0000000..12515bd --- /dev/null +++ b/csharp/SVGLDLibs/SVGLDLibs/Models/APIConfiguration.cs @@ -0,0 +1,19 @@ +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace SVGLDLibs.Models +{ + + [DataContract] + public class APIConfiguration + { + [DataMember(EmitDefaultValue = false)] + public string apiFetchUrl { get; set; } + + [DataMember(EmitDefaultValue = false)] + public string apiSetContainerListUrl { get; set; } + + [DataMember(EmitDefaultValue = false)] + public string apiGetFeedbackUrl { get; set; } + } +} \ No newline at end of file diff --git a/csharp/SVGLDLibs/SVGLDLibs/Models/Configuration.cs b/csharp/SVGLDLibs/SVGLDLibs/Models/Configuration.cs index 61213a1..6ac44eb 100644 --- a/csharp/SVGLDLibs/SVGLDLibs/Models/Configuration.cs +++ b/csharp/SVGLDLibs/SVGLDLibs/Models/Configuration.cs @@ -7,7 +7,7 @@ namespace SVGLDLibs.Models [DataContract] public class Configuration { - + public Configuration(AvailableContainerModel mainContainer) { MainContainer = mainContainer; @@ -31,5 +31,8 @@ namespace SVGLDLibs.Models [DataMember(EmitDefaultValue = false, IsRequired = true)] public AvailableContainerModel MainContainer { get; set; } + + [DataMember(EmitDefaultValue = false, IsRequired = true)] + public APIConfiguration APIConfiguration { get; set; } } } \ No newline at end of file