Constructor
new PrePackSampleModel(siteId)
PrePackSampleModel Constructor
Parameters
-
siteId
number
The Site ID associated with this PrePack Sample
Source
Members
createdTimestampDate
When this Sample was Created
Type
-
Date
Source
deletedboolean
Whether the PrePack Sample has been deleted
Type
-
boolean
Source
idstring
The PrePack Sample ID
Type
-
string
Source
packingLineIdstring
The Packing Line ID this Sample is associated with
Type
-
string
Source
packrunIdstring
The Packrun ID this Sample is associated with
Type
-
string
Source
sampleDefectsArray.<{id: string, name: string, fruitCount: number}>
An Array of Defects found in this Pre-Pack Sample
Type
-
Array.<{id: string, name: string, fruitCount: number}>
Source
siteIdnumber
The Site ID associated with this PrePack Sample
Type
-
number
Source
totalFruitSamplednumber
The Total Number of Fruit Sampled in this Pre-Pack Sample
Type
-
number
Source
updateTimestampDate
When the PrePack Sample was last updated
Type
-
Date
Source
userIdstring
The ID of the User who created this Pre-Pack Sample
Type
-
string
Source
userNamestring
The Name of the User who created this Pre-Pack Sample
Type
-
string
Source
Methods
fromJSON(json, siteId) → {PrePackSampleModel}
Create a new PrePackSampleModel 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 PrePack Sample
Returns
-
PrePackSampleModel