Constructor
protected
new ShiftTaskModel(siteId)
ShiftTaskModel Constructor
Parameters
-
siteId
number
The Site ID associated with this Shift Task
Source
Members
authorNamestring
The Name of the Author for this Task
Type
-
string
Source
nullable
authorUserIdstring
The User ID of the Author for this Task
Type
-
string
Source
nullable
completedTimestampDate
When this Task was Completed
Type
-
Date
Source
contentstring
The Content of this Task
Type
-
string
Source
createdTimestampDate
When this Task was Created
Type
-
Date
Source
deletedboolean
Whether the Shift Task has been deleted
Type
-
boolean
Source
idstring
The Shift Task ID
Type
-
string
Source
packingLineIdstring
The Packing Line ID this Task is associated with
Type
-
string
Source
shiftIdstring
The Shift ID this Task is asssociated with
Type
-
string
Source
siteIdnumber
The Site ID associated with this Shift Task
Type
-
number
Source
statusstring
The Status of this Task
Type
-
string
Source
tagsArray.<string>
An Array of Tag IDs for this Task
Type
-
Array.<string>
Source
titlestring
The Title of this Task
Type
-
string
Source
typestring
The Task Type
Type
-
string
Source
updateTimestampDate
When the Shift Task was last updated
Type
-
Date
Source
Methods
static
fromJSON(json, siteId) → {ShiftTaskModel}
Create a new ShiftTaskModel 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 Shift Task
Returns
-
ShiftTaskModel