From 885661aedf2d0defb67370269f7a7f662dfd20dd Mon Sep 17 00:00:00 2001 From: Ken Goulding Date: Sun, 2 Dec 2018 20:40:09 -0500 Subject: [PATCH] Fixed JsonProperty https://github.com/speckleworks/SpeckleCore/issues/92 --- SpeckleCore/Models/ModelObjects.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SpeckleCore/Models/ModelObjects.cs b/SpeckleCore/Models/ModelObjects.cs index 0c046b2..54868d3 100644 --- a/SpeckleCore/Models/ModelObjects.cs +++ b/SpeckleCore/Models/ModelObjects.cs @@ -137,6 +137,10 @@ [ Newtonsoft.Json.JsonProperty( "geometryHash", Required = Newtonsoft.Json.Requi /// The id/guid that the origin application identifies this object by. [Newtonsoft.Json.JsonProperty( "applicationId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore )] public string ApplicationId { get; set; } + + /// The name of this object in the origin application GUI. + [Newtonsoft.Json.JsonProperty( "name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore )] + public string Name { get; set; } /// The extra properties field of a speckle object. [Newtonsoft.Json.JsonProperty( "properties", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore )]