# Class WsSubscriberGrouped

Namespace
  adas_core.Application.Subscriptions

Assembly
  adas-core.Application.dll

Represents a grouped WebSocket subscriber that aggregates and manages multiple related subscription registrations.

    public class WsSubscriberGrouped

Inheritance
  object
  WsSubscriberGrouped

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)
  WsSubscriberExtension.Compare(WsSubscriberGrouped, GroupedField, ObjectId)
  WsSubscriberExtension.IsNewObservationRelevantForGroup(WsSubscriberGrouped, PatientObservation)

## Constructors

### WsSubscriberGrouped(ObjectId, string, string?, GroupedField, GroupedObservation, EventHandler<string>)

    public WsSubscriberGrouped(ObjectId patientId, string wsId, string? timeZoneId, GroupedField gf, GroupedObservation lastGroupedObservationObs, EventHandler<string> sendEvent)

#### Parameters

`patientId` ObjectId
`wsId` string
`timeZoneId` string
`gf` GroupedField
`lastGroupedObservationObs` GroupedObservation
`sendEvent` EventHandler<string>

## Properties

### Group

    public Dictionary<string, string> Group { get; set; }

#### Property Value

Dictionary<string, string>

### HashCode

    public string HashCode { get; set; }

#### Property Value

string

### LastGroupedObservationObs

    public List<GroupedObservation.GroupedObservationObs> LastGroupedObservationObs { get; set; }

#### Property Value

List<GroupedObservation.GroupedObservationObs>

### Max

    public int Max { get; set; }

#### Property Value

int

### Names

    public List<string> Names { get; set; }

#### Property Value

List<string>

### PatientId

    public ObjectId PatientId { get; set; }

#### Property Value

ObjectId

### Regularity

    public GroupedObservationEnum.Regularity? Regularity { get; set; }

#### Property Value

GroupedObservationEnum.Regularity?

### Result

    public List<GroupedObservationEnum.Result> Result { get; set; }

#### Property Value

List<GroupedObservationEnum.Result>

### Since

    public GroupedObservationEnum.Since Since { get; set; }

#### Property Value

GroupedObservationEnum.Since

### StartTimeShift

    public List<string> StartTimeShift { get; set; }

#### Property Value

List<string>

### TimeZoneId

    public string TimeZoneId { get; set; }

#### Property Value

string

### Timer

    public Timer Timer { get; set; }

#### Property Value

Timer

### WsSubscriber

    public List<string> WsSubscriber { get; set; }

#### Property Value

List<string>

## Methods

### UpdateLastGo(GroupedObservation)

Refreshes the cached last observations by matching each known name against the supplied grouped observation, falling back to the most recent observation when no match is found.

    public void UpdateLastGo(GroupedObservation lastGroupedObservationObs)

#### Parameters

`lastGroupedObservationObs` GroupedObservation

  The source grouped observation whose observations are searched to populate the last-observation cache.