Constructor
new RackModel(siteId)
RackModel Constructor
Parameters
-
siteId
number
The Site ID associated with this Rack
Source
Members
deletedboolean
Whether the Rack has been deleted
Type
-
boolean
Source
horizontalPositionsArray.<{name: string}>
The Horizontal Positions defined for this Rack
Type
-
Array.<{name: string}>
Source
idstring
The Rack ID
Type
-
string
Source
invertHorizontalPositionsboolean
Whether the Horizontal Positions for this Rack should be Inverted. By Default, Horizontal Positions go from Left to Right
Type
-
boolean
Source
invertVerticalLevelsboolean
Whether the Vertical Levels for this Rack should be Inverted. By Default, Vertical Levels go from the Lowest Level upwards
Type
-
boolean
Source
labIdstring
The Lab that owns this Rack
Type
-
string
Source
namestring
The Name of this Rack
Type
-
string
Source
pointsObject
The Points used by this Rack
Type
-
Object
Source
rtuIdnumber
The RTU this Rack belongs to
Type
-
number
Source
siteIdnumber
The Site ID associated with this Rack
Type
-
number
Source
updateTimestampDate
When the Rack was last updated
Type
-
Date
Source
verticalLevelsArray.<{name: string}>
The Vertical Levels Defined for this Rack
Type
-
Array.<{name: string}>
Source
Methods
fromJSON(json, siteId) → {RackModel}
Create a new RackModel from a JSON Object or JSON String
Parameters
-
json
Object.<string, any>
|string
A JSON Object or JSON String
-
siteId
number
The Site ID associated with this Rack
Returns
-
RackModel