Add EditorState + Rename ConfigurationResponseModel, ApplicationStateModel
This commit is contained in:
parent
c256a76e01
commit
b86f073cc1
6 changed files with 54 additions and 36 deletions
|
@ -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<AvailableContainerModel>();
|
18
csharp/SVGLDLibs/SVGLDLibs/Models/EditorState.cs
Normal file
18
csharp/SVGLDLibs/SVGLDLibs/Models/EditorState.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
public class EditorState
|
||||
{
|
||||
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public List<HistoryState> history { get; set; }
|
||||
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public int historyCurrentStep { get; set; }
|
||||
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public Configuration configuration { get; set; }
|
||||
}
|
||||
}
|
|
@ -5,6 +5,6 @@ namespace SVGLDLibs.Models
|
|||
public class GetFeedbackRequest
|
||||
{
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public ApplicationStateModel ApplicationState { get; set; }
|
||||
public HistoryState ApplicationState { get; set; }
|
||||
}
|
||||
}
|
|
@ -3,7 +3,7 @@ using System.Runtime.Serialization;
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
public class ApplicationStateModel
|
||||
public class HistoryState
|
||||
{
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public string lastAction;
|
|
@ -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; }
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue