An abstract class for replies of all forms to inherit from.
More...
|
override bool | Equals (object obj) |
| Tests the equality of any object against this reply. More...
|
|
abstract bool | Equals (Reply reply) |
| Checks to see if this reply is equal to another Reply. More...
|
|
abstract override int | GetHashCode () |
| Returns a hash code based off the reply's attributes. More...
|
|
abstract override string | ToString () |
| Returns a human-readable representation of this reply. More...
|
|
An abstract class for replies of all forms to inherit from.
Creates a new instance of the Reply class.
override bool Equals |
( |
object |
obj | ) |
|
|
inline |
Tests the equality of any object against this reply.
- Parameters
-
obj | The object to be compared. |
- Returns
- True if the object and this reply are equal, false if they are inequal.
abstract bool Equals |
( |
Reply |
reply | ) |
|
|
pure virtual |
Checks to see if this reply is equal to another Reply.
- Parameters
-
reply | The reply to compare this one to. |
- Returns
- True if the replies are equal, false if inequal.
Implemented in AsciiReply, and BinaryReply.
abstract override int GetHashCode |
( |
| ) |
|
|
pure virtual |
Returns a hash code based off the reply's attributes.
The hash code returned by this function depends on all of the attributes of the object, including the mutable ones. This means that when using this class in a HashMap or similar structure, it should be considered immutable, or else it will be lost upon being changed.
- Returns
- The calculated hash code.
Implemented in AsciiReply, and BinaryReply.
abstract override string ToString |
( |
| ) |
|
|
pure virtual |
Returns a human-readable representation of this reply.
- Returns
- A string representing the reply.
Implemented in AsciiReply, and BinaryReply.
The address of the device from which the reply came.
The documentation for this class was generated from the following file: