Class DeviceVersion
Class to describe Nix device revisions
Inherited Members
Namespace: NixUniversalSDK
Assembly: NixUniversalSDK.dll
Syntax
public class DeviceVersion
Constructors
DeviceVersion(string)
Create a DeviceVersion instance from a raw string value as read from a Nix device
Declaration
public DeviceVersion(string String)
Parameters
Type | Name | Description |
---|---|---|
string | String |
Fields
PrefixError
String value used after regex parsing error
Declaration
public const string PrefixError = ""
Field Value
Type | Description |
---|---|
string |
VersionError
Numeric value used after regex parsing error
Declaration
public const int VersionError = -1
Field Value
Type | Description |
---|---|
int |
Properties
Major
Major revision number
Declaration
public int Major { get; }
Property Value
Type | Description |
---|---|
int |
Minor
Minor revision number
Declaration
public int Minor { get; }
Property Value
Type | Description |
---|---|
int |
Patch
Patch revision number
Declaration
public int Patch { get; }
Property Value
Type | Description |
---|---|
int |
Prefix
Single character prefix for this version. Expected values are 'F' for firmware version, 'H' for hardware version, 'S' for software version.
Declaration
public string Prefix { get; }
Property Value
Type | Description |
---|---|
string |
String
String value for this version
Declaration
public string String { get; }
Property Value
Type | Description |
---|---|
string |