Table of Contents

Class State

Namespace
Loehnert.Lisrt.Can.Protocol
Assembly
Loehnert.Lisrt.Can.Protocol.dll

Represents the state of the board.

public class State : IEquatable<State>
Inheritance
State
Implements
Derived
Inherited Members

Constructors

State(string)

Initializes a new instance of the State class.

public State(string key)

Parameters

key string

The unique key.

Exceptions

ArgumentException

Thrown when key is null, empty or whitespace.

Properties

DefectEeprom

Gets a ErrorState representing a defect EEPROM.

public static State DefectEeprom { get; }

Property Value

State

Key

Gets the key.

public string Key { get; }

Property Value

string

OK

Gets a OK state.

public static State OK { get; }

Property Value

State

UnknownFunctionCode

Gets a ErrorState representing an unknown function code.

public static State UnknownFunctionCode { get; }

Property Value

State

UnknownRelayNumber

Gets a ErrorState for an unknown relay number.

public static State UnknownRelayNumber { get; }

Property Value

State

Methods

Equals(State)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(State other)

Parameters

other State

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.