Class GroupedField
- Namespace
- adas_core.Domain.Models.GroupedObservations
- Assembly
- adas-core.Domain.dll
Represents a field that belongs to a logical grouping, encapsulating the concept of a field within a grouped structure.
public class GroupedField
- Inheritance
-
GroupedField
- Inherited Members
- Extension Methods
Remarks
This type is intended to model fields that are organized together as part of a group, allowing related field metadata or behavior to be handled collectively.
Constructors
GroupedField()
public GroupedField()
GroupedField(string?, List<string>?, string?, List<string>?, int, Regularity?, Since, List<Result>?, List<string>?)
public GroupedField(string? name, List<string>? names, string? group, List<string>? startTimeShift, int max, GroupedObservationEnum.Regularity? regularity, GroupedObservationEnum.Since since, List<GroupedObservationEnum.Result>? result, List<string>? labelList)
Parameters
namestringnamesList<string>groupstringstartTimeShiftList<string>maxintregularityGroupedObservationEnum.Regularity?sinceGroupedObservationEnum.SinceresultList<GroupedObservationEnum.Result>labelListList<string>
Properties
Group
public string? Group { get; init; }
Property Value
LabelList
public List<string>? LabelList { get; init; }
Property Value
Max
public int Max { get; init; }
Property Value
Name
public string? Name { get; init; }
Property Value
Names
public List<string> Names { get; init; }
Property Value
Regularity
public GroupedObservationEnum.Regularity? Regularity { get; init; }
Property Value
Result
public List<GroupedObservationEnum.Result> Result { get; init; }
Property Value
Since
public GroupedObservationEnum.Since Since { get; init; }
Property Value
StartTimeShift
public List<string> StartTimeShift { get; init; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current GroupedField by comparing their Group property values.
Returns true only when obj is a GroupedField instance with a matching Group; otherwise returns false (including for null or non-matching types).
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
trueif the specified object is a GroupedField with the sameGroup; otherwise,false.
GetHashCode()
Computes a hash code for the current instance by combining the values of its key properties: Name, Group, Max, Regularity, and Result. This override ensures consistent hash-based behavior for equality comparisons and use in hash-based collections.
public override int GetHashCode()
Returns
- int
An integer hash code derived from the object's key properties.
GetNames()
Retrieves the list of names stored in the current instance.
public List<string> GetNames()