28 lines
944 B
C#
28 lines
944 B
C#
namespace Speckle.Sdk.Models.Collections;
|
|
|
|
/// <summary>
|
|
/// Root collection that represents the top-level commit object.
|
|
/// Extends Collection to include model-wide properties that apply to the entire model.
|
|
/// </summary>
|
|
[SpeckleType("Speckle.Core.Models.Collections.RootCollection")]
|
|
public class RootCollection : Collection
|
|
{
|
|
/// <summary>
|
|
/// Constructor for a root collection.
|
|
/// </summary>
|
|
/// <param name="name">The human-readable name of this root collection</param>
|
|
public RootCollection(string name) : base(name) { }
|
|
|
|
/// <summary>
|
|
/// Model-wide properties that apply to the entire model.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// These are intended for model-level metadata such as total area, project information, or analysis results.
|
|
/// </remarks>
|
|
public Dictionary<string, object?>? rootProperties
|
|
{
|
|
get => this["properties"] as Dictionary<string, object?>;
|
|
set => this["properties"] = value;
|
|
}
|
|
}
|