Class ResponseBase
Base class for response messages.
Inheritance
System.Object
ResponseBase
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Unosquare.Sparkfun.FingerprintModule
Syntax
public abstract class ResponseBase : PacketBase
Constructors
ResponseBase(Byte[])
Initializes a new instance of the ResponseBase class.
Declaration
protected ResponseBase(byte[] payload)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | payload | A byte array representing the payload of the response. |
Properties
ErrorCode
Gets the error code.
Declaration
public ErrorCode ErrorCode { get; }
Property Value
Type | Description |
---|---|
ErrorCode |
IsCrcValid
Gets a value indicating whether this instance has a valid CRC.
Declaration
protected bool IsCrcValid { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsSuccessful
Gets a value indicating whether this instance is successful.
Declaration
public virtual bool IsSuccessful { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Response
Gets the response code.
Declaration
protected ResponseCode Response { get; }
Property Value
Type | Description |
---|---|
ResponseCode |