rama creada apartir de master en j
This commit is contained in:
@@ -5,6 +5,12 @@ using Newtonsoft.Json;
|
||||
|
||||
namespace adas_core.Domain.Models.MongoModels;
|
||||
|
||||
/// <summary>
|
||||
/// Represents an observation or record related to configuration state.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This type is intended to capture configuration-related observation data within the application.
|
||||
/// </remarks>
|
||||
public class ConfigObservation
|
||||
{
|
||||
public Dictionary<string, ConfigObservation>? Grouped;
|
||||
@@ -74,11 +80,20 @@ public class ConfigObservation
|
||||
public List<ColorRange>? ColorRanges { get; set; }
|
||||
public DemoConfig? DemoConfig { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns a JSON string representation of the current object with indented formatting,
|
||||
/// overriding the default <see cref="object.ToString"/> behavior to provide a
|
||||
/// human-readable serialization.
|
||||
/// </summary>
|
||||
/// <returns>A string containing the JSON-serialized representation of the object with indented formatting.</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Represents a range of colors, typically used to define a spectrum or gradient between a start and end color.
|
||||
/// </summary>
|
||||
public class ColorRange
|
||||
{
|
||||
public ObservationEnum.ValueType? ValueType;
|
||||
@@ -103,6 +118,9 @@ public class ConfigObservation
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Represents a configuration class that holds settings for demonstration purposes.
|
||||
/// </summary>
|
||||
public class DemoConfig
|
||||
{
|
||||
public int? MaxValue { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user