From fe27951d968cd8ce8e6b5ff018d41dee81b34969 Mon Sep 17 00:00:00 2001 From: Dimitrie Stefanescu Date: Tue, 16 Jul 2024 14:49:37 +0100 Subject: [PATCH] feat(dui3): adds layer concept in core as a poc --- src/Speckle.Core/Models/Collection.cs | 3 ++- src/Speckle.Core/Models/Layer.cs | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/Speckle.Core/Models/Layer.cs diff --git a/src/Speckle.Core/Models/Collection.cs b/src/Speckle.Core/Models/Collection.cs index c5d45436..8ad08650 100644 --- a/src/Speckle.Core/Models/Collection.cs +++ b/src/Speckle.Core/Models/Collection.cs @@ -33,8 +33,9 @@ public class Collection : Base public string name { get; set; } /// - /// The type of this collection + /// The type of this collection. Note: Claire and Dim would propose we deprecate this prop. Do not use, please! /// + [Obsolete("Note: Claire and Dim would propose we deprecate this prop. Do not use, please! Let's have a discussion about subclassing for your needs if nothing exists already.")] public string collectionType { get; set; } /// diff --git a/src/Speckle.Core/Models/Layer.cs b/src/Speckle.Core/Models/Layer.cs new file mode 100644 index 00000000..88ebf9e8 --- /dev/null +++ b/src/Speckle.Core/Models/Layer.cs @@ -0,0 +1,9 @@ +namespace Speckle.Core.Models; + +/// +/// A specialized collection that represents a CAD-app layer. We expect this to grow in the future with possibly other shared props. +/// +public class Layer : Collection +{ + public int Color { get; set; } +}