diff --git a/csharp/SVGLDLibs/SVGLDLibs/Models/ConfigurationResponseModel.cs b/csharp/SVGLDLibs/SVGLDLibs/Models/Configuration.cs similarity index 88% rename from csharp/SVGLDLibs/SVGLDLibs/Models/ConfigurationResponseModel.cs rename to csharp/SVGLDLibs/SVGLDLibs/Models/Configuration.cs index 6ec6bec..5c44e18 100644 --- a/csharp/SVGLDLibs/SVGLDLibs/Models/ConfigurationResponseModel.cs +++ b/csharp/SVGLDLibs/SVGLDLibs/Models/Configuration.cs @@ -3,9 +3,9 @@ using System.Runtime.Serialization; namespace SVGLDLibs.Models { - public class ConfigurationResponseModel + public class Configuration { - public ConfigurationResponseModel(AvailableContainerModel mainContainer) + public Configuration(AvailableContainerModel mainContainer) { MainContainer = mainContainer; AvailableContainers = new List(); diff --git a/csharp/SVGLDLibs/SVGLDLibs/Models/EditorState.cs b/csharp/SVGLDLibs/SVGLDLibs/Models/EditorState.cs new file mode 100644 index 0000000..163620c --- /dev/null +++ b/csharp/SVGLDLibs/SVGLDLibs/Models/EditorState.cs @@ -0,0 +1,18 @@ +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace SVGLDLibs.Models +{ + public class EditorState + { + + [DataMember(EmitDefaultValue = false)] + public List history { get; set; } + + [DataMember(EmitDefaultValue = false)] + public int historyCurrentStep { get; set; } + + [DataMember(EmitDefaultValue = false)] + public Configuration configuration { get; set; } + } +} \ No newline at end of file diff --git a/csharp/SVGLDLibs/SVGLDLibs/Models/GetFeedbackRequest.cs b/csharp/SVGLDLibs/SVGLDLibs/Models/GetFeedbackRequest.cs index 4348c5d..24c953e 100644 --- a/csharp/SVGLDLibs/SVGLDLibs/Models/GetFeedbackRequest.cs +++ b/csharp/SVGLDLibs/SVGLDLibs/Models/GetFeedbackRequest.cs @@ -5,6 +5,6 @@ namespace SVGLDLibs.Models public class GetFeedbackRequest { [DataMember(EmitDefaultValue = false)] - public ApplicationStateModel ApplicationState { get; set; } + public HistoryState ApplicationState { get; set; } } } \ No newline at end of file diff --git a/csharp/SVGLDLibs/SVGLDLibs/Models/ApplicationStateModel.cs b/csharp/SVGLDLibs/SVGLDLibs/Models/HistoryState.cs similarity index 92% rename from csharp/SVGLDLibs/SVGLDLibs/Models/ApplicationStateModel.cs rename to csharp/SVGLDLibs/SVGLDLibs/Models/HistoryState.cs index 29c9523..7c2cc88 100644 --- a/csharp/SVGLDLibs/SVGLDLibs/Models/ApplicationStateModel.cs +++ b/csharp/SVGLDLibs/SVGLDLibs/Models/HistoryState.cs @@ -1,29 +1,29 @@ -using System.Collections.Generic; -using System.Runtime.Serialization; - -namespace SVGLDLibs.Models -{ - public class ApplicationStateModel - { - [DataMember(EmitDefaultValue = false)] - public string lastAction; - - [DataMember(EmitDefaultValue = false)] - public string mainContainer; - - [DataMember(EmitDefaultValue = false)] - public Dictionary containers; - - [DataMember(EmitDefaultValue = false)] - public string selectedContainerId; - - [DataMember(EmitDefaultValue = false)] - public Dictionary typeCounters; - - [DataMember(EmitDefaultValue = false)] - public Dictionary symbols; - - [DataMember(EmitDefaultValue = false)] - public string selectedSymbolId; - } +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace SVGLDLibs.Models +{ + public class HistoryState + { + [DataMember(EmitDefaultValue = false)] + public string lastAction; + + [DataMember(EmitDefaultValue = false)] + public string mainContainer; + + [DataMember(EmitDefaultValue = false)] + public Dictionary containers; + + [DataMember(EmitDefaultValue = false)] + public string selectedContainerId; + + [DataMember(EmitDefaultValue = false)] + public Dictionary typeCounters; + + [DataMember(EmitDefaultValue = false)] + public Dictionary symbols; + + [DataMember(EmitDefaultValue = false)] + public string selectedSymbolId; + } } \ No newline at end of file diff --git a/csharp/SVGLDLibs/SVGLDLibs/Models/SetContainerListRequest.cs b/csharp/SVGLDLibs/SVGLDLibs/Models/SetContainerListRequest.cs index f67d021..f678cd4 100644 --- a/csharp/SVGLDLibs/SVGLDLibs/Models/SetContainerListRequest.cs +++ b/csharp/SVGLDLibs/SVGLDLibs/Models/SetContainerListRequest.cs @@ -17,6 +17,6 @@ namespace SVGLDLibs.Models public ContainerModel NextContainer { get; set; } [DataMember(EmitDefaultValue = false)] - public ApplicationStateModel ApplicationState { get; set; } + public HistoryState ApplicationState { get; set; } } } \ No newline at end of file diff --git a/csharp/SVGLDLibs/SVGLDWebAPI/Controllers/SVGLDController.cs b/csharp/SVGLDLibs/SVGLDWebAPI/Controllers/SVGLDController.cs index b12a231..a1c936f 100644 --- a/csharp/SVGLDLibs/SVGLDWebAPI/Controllers/SVGLDController.cs +++ b/csharp/SVGLDLibs/SVGLDWebAPI/Controllers/SVGLDController.cs @@ -20,8 +20,8 @@ public class SVGLDController : ControllerBase return true; } - [HttpPost(Name = nameof(SVGLDLibs.Models.ApplicationStateModel))] - public bool ApplicationStateModel(ApplicationStateModel model) + [HttpPost(Name = nameof(SVGLDLibs.Models.HistoryState))] + public bool ApplicationStateModel(HistoryState model) { return true; } @@ -44,8 +44,8 @@ public class SVGLDController : ControllerBase return true; } - [HttpPost(Name = nameof(SVGLDLibs.Models.ConfigurationResponseModel))] - public bool ConfigurationResponseModel(ConfigurationResponseModel model) + [HttpPost(Name = nameof(SVGLDLibs.Models.Configuration))] + public bool ConfigurationResponseModel(Configuration model) { return true; }