- Timestamp:
- 02/12/21 15:24:18 (4 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/JsonItems
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/JsonItems/JsonItem.cs
r17828 r17834 125 125 }); 126 126 127 public virtual void SetJObject(JObject jObject) { } 127 public virtual void SetJObject(JObject jObject) { 128 Name = (jObject[nameof(IJsonItem.Name)]?.ToObject<string>()); 129 Description = (jObject[nameof(IJsonItem.Description)]?.ToObject<string>()); 130 } 128 131 #endregion 129 132 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/JsonItems/ResultJsonItem.cs
r17828 r17834 1 namespace HeuristicLab.JsonInterface { 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using Newtonsoft.Json.Linq; 5 6 namespace HeuristicLab.JsonInterface { 2 7 public class ResultJsonItem : JsonItem, IResultJsonItem { 8 public string ResultFormatterType { get; set; } 9 10 public Type ValueType { get; set; } 11 3 12 protected override ValidationResult Validate() => ValidationResult.Successful(); 4 13 5 public string Converter { get; set; } 14 public override void SetJObject(JObject jObject) { 15 base.SetJObject(jObject); 16 ResultFormatterType = (jObject[nameof(IResultJsonItem.ResultFormatterType)]?.ToObject<string>()); 17 } 18 6 19 } 7 20 }
Note: See TracChangeset
for help on using the changeset viewer.