Unosquare
    Show / Hide Table of Contents

    Class ResponseBase

    Base class for response messages.

    Inheritance
    System.Object
    MessageBase
    PacketBase
    ResponseBase
    BasicResponse
    CheckEnrollmentResponse
    CheckFingerPressingResponse
    CountEnrolledFingerprintResponse
    EnrollmentResponse
    FastSearchingResponse
    GetFingerprintImageResponse
    GetRawImageResponse
    GetSecurityLevelResponse
    InitializationResponse
    MatchOneToNResponse
    TemplateResponse
    Inherited Members
    PacketBase.BasePacketLength
    PacketBase.Parameter
    PacketBase.HasDataPacket
    MessageBase.Payload
    MessageBase.StartCode1
    MessageBase.StartCode2
    MessageBase.DeviceId
    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

    true if this instance has a valid CRC; otherwise, false.

    IsSuccessful

    Gets a value indicating whether this instance is successful.

    Declaration
    public virtual bool IsSuccessful { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is successful; otherwise, false.

    Response

    Gets the response code.

    Declaration
    protected ResponseCode Response { get; }
    Property Value
    Type Description
    ResponseCode

    See Also

    PacketBase

    Comments

    Back to top Copyright © 2017-2019 Unosquare