Class BeaconResponse
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
colorstringpocObjectIdunitIdObjectId
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
otherBeaconResponseThe BeaconResponse to compare with the current instance.
Returns
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.