Table of Contents

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
BeaconResponse
Implements
Inherited Members
Extension Methods

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.