Constructor
new SampleModel(siteId)
SampleModel Constructor
Parameters
-
siteId
number
The Site ID associated with this Sample
Source
Members
createdSourcestring
The Source that Created this Sample
Type
-
string
Source
createdTimestampDate
When this Sample was Created
Type
-
Date
Source
createdUserNamestring
Name of the User who Created this Sample
Type
-
string
Source
dehydratorIdstring
The Dehydrator used for this Sample
Type
-
string
Source
deletedboolean
Whether the Sample has been deleted
Type
-
boolean
Source
finishTimestampDate
When this Sample was Finished
Type
-
Date
Source
fruitProfileIdstring
The Fruit Profile for this Sample
Type
-
string
Source
idstring
The Sample ID
Type
-
string
Source
labIdstring
The Lab ID this Sample is associated with
Type
-
string
Source
loadedTimestampDate
When this Sample was Loaded into the Dehydrator
Type
-
Date
Source
publishSourcestring
The Source that Published this Sample
Type
-
string
Source
publishTimestampDate
When this Sample was Published
Type
-
Date
Source
publishUserNamestring
Name of the User who Published this Sample
Type
-
string
Source
rackPositionIdstring
The Rack Position used for this Sample
Type
-
string
Source
resultIdstring
The Sample Result ID asociated with this Sample
Type
-
string
Source
sampleNumberstring
The Numeric Sample Number
Type
-
string
Source
scheduledTimestampDate
Optional Scheduled Timestamp when this Sample should Begin
Type
-
Date
Source
siteIdnumber
The Site ID associated with this Sample
Type
-
number
Source
startTimestampDate
When this Sample was Started
Type
-
Date
Source
statusstring
The Status of this Sample
Type
-
string
Source
unloadedTimestampDate
When this Sample was Unloaded from the Dehydrator
Type
-
Date
Source
updateTimestampDate
When the Sample was last updated
Type
-
Date
Source
Methods
fromJSON(json, siteId) → {SampleModel}
Create a new SampleModel 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 Sample
Returns
-
SampleModel