Add DataContract on Models in SVGLDLibs
This commit is contained in:
parent
1cd25eba03
commit
d1881ae8fa
27 changed files with 153 additions and 60 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class ActionContainerModel
|
||||
{
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public enum AddingBehaviorEnumModel
|
||||
{
|
||||
[EnumMember]
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.Runtime.Serialization;
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class AvailableContainerModel
|
||||
{
|
||||
/** type */
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class AvailableSymbolModel
|
||||
{
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class CSSStyle
|
||||
{
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
|
|
|
@ -2,6 +2,7 @@ using System.Runtime.Serialization;
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class Category
|
||||
{
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
|
|
|
@ -3,8 +3,11 @@ using System.Runtime.Serialization;
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
|
||||
[DataContract]
|
||||
public class Configuration
|
||||
{
|
||||
|
||||
public Configuration(AvailableContainerModel mainContainer)
|
||||
{
|
||||
MainContainer = mainContainer;
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.Runtime.Serialization;
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class ContainerModel
|
||||
{
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class ContainerProperties
|
||||
{
|
||||
/** id of the container */
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.Runtime.Serialization;
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class EditorState
|
||||
{
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class GetFeedbackRequest
|
||||
{
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.Runtime.Serialization;
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class GetFeedbackResponse
|
||||
{
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.Runtime.Serialization;
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class HistoryState
|
||||
{
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class ImageModel
|
||||
{
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class Margin
|
||||
{
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
namespace SVGLDLibs.Models
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class Message
|
||||
{
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public string text { get; set; }
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public MessageType type { get; set; }
|
||||
}
|
||||
}
|
|
@ -1,10 +1,17 @@
|
|||
using System.Runtime.Serialization;
|
||||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public enum MessageType
|
||||
{
|
||||
[EnumMember]
|
||||
Normal,
|
||||
[EnumMember]
|
||||
Success,
|
||||
[EnumMember]
|
||||
Warning,
|
||||
[EnumMember]
|
||||
Error
|
||||
}
|
||||
}
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public enum Orientation
|
||||
{
|
||||
[EnumMember]
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.Runtime.Serialization;
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class Pattern
|
||||
{
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class PointModel
|
||||
{
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public enum Position
|
||||
{
|
||||
[EnumMember]
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public enum PositionReferenceEnumModel
|
||||
{
|
||||
[EnumMember]
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class SetContainerListRequest
|
||||
{
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.Runtime.Serialization;
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class SetContainerListResponse
|
||||
{
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace SVGLDLibs.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class SymbolModel : AvailableSymbolModel
|
||||
{
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue