# Class BeaconResponse

Namespace
  adas_core.Domain.Models.Responses

Assembly
  adas-core.Domain.dll

Represents a response payload for a beacon, encapsulating its color, point-of-contact identifier, and associated unit identifier.

    public class BeaconResponse : IEquatable<BeaconResponse>

Inheritance
  object
  BeaconResponse

Implements
  IEquatable<BeaconResponse>

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

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## Remarks

Implements IEquatable<T> to enable value-based equality comparison between BeaconResponse instances.

## Constructors

### BeaconResponse(string, ObjectId, ObjectId)

Represents a response payload for a beacon, encapsulating its color, point-of-contact identifier, and associated unit identifier.

    public BeaconResponse(string color, ObjectId poc, ObjectId unitId)

#### Parameters

`color` string
`poc` ObjectId
`unitId` ObjectId

#### Remarks

Implements IEquatable<T> to enable value-based equality comparison between BeaconResponse instances.

## Methods

### Equals(BeaconResponse?)

Determines whether the specified BeaconResponse is equal to the current instance by comparing their `PointOfCareId` and `UnitId` values.

    public bool Equals(BeaconResponse? other)

#### Parameters

`other` BeaconResponse

  The BeaconResponse to compare with the current instance.

#### Returns

bool

  true if both `PointOfCareId` and `UnitId` match; otherwise, false.

### ToString()

Returns a string representation of the BeaconResponse, including the point of care identifier, unit (bed) identifier, and color.

    public override string ToString()

#### Returns

string

  A formatted string describing the beacon's point of care, unit, and color.