Add APIConfiguration to csharp class models

This commit is contained in:
Eric NGUYEN 2022-10-13 17:21:18 +02:00
parent 48a4ff9bc1
commit bcca10d0e9
2 changed files with 23 additions and 1 deletions

View file

@ -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; }
}
}

View file

@ -7,7 +7,7 @@ namespace SVGLDLibs.Models
[DataContract] [DataContract]
public class Configuration public class Configuration
{ {
public Configuration(AvailableContainerModel mainContainer) public Configuration(AvailableContainerModel mainContainer)
{ {
MainContainer = mainContainer; MainContainer = mainContainer;
@ -31,5 +31,8 @@ namespace SVGLDLibs.Models
[DataMember(EmitDefaultValue = false, IsRequired = true)] [DataMember(EmitDefaultValue = false, IsRequired = true)]
public AvailableContainerModel MainContainer { get; set; } public AvailableContainerModel MainContainer { get; set; }
[DataMember(EmitDefaultValue = false, IsRequired = true)]
public APIConfiguration APIConfiguration { get; set; }
} }
} }