Constructor
new Service(serviceId, mon, tue, wed, thu, fri, sat, sun, startDate, endDate, exceptionsopt)
- Source:
- See:
Service Constructor
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
serviceId |
string | Service ID |
||
mon |
int | Service availability for Monday |
||
tue |
int | Service availability for Tuesday |
||
wed |
int | Service availability for Wednesday |
||
thu |
int | Service availability for Thursday |
||
fri |
int | Service availability for Friday |
||
sat |
int | Service availability for Saturday |
||
sun |
int | Service availability for Sunday |
||
startDate |
int | Service Start Date (yyyymmdd) |
||
endDate |
int | Service End Date (yyyymmdd) |
||
exceptions |
Array.<ServiceException> |
<optional> |
[]
|
List of Service Exceptions |
Members
(static, constant) SERVICE_AVAILABLE :number
- Source:
- Default Value:
- 1
Service Availability: Available
Type:
- number
(static, constant) SERVICE_UNAVAILABLE :number
- Source:
- Default Value:
- 0
Service Availability: Unavailable
Type:
- number
endDate :Number
- Source:
The end date for the service in YYYYMMDD format
Type:
- Number
friday :int
- Source:
A binary value indicating whether the service is valid for all Fridays
Type:
- int
id :string
- Source:
A unique ID that identifies the service
Type:
- string
monday :int
- Source:
A binary value indicating whether the service is valid for all Mondays
Type:
- int
saturday :int
- Source:
A binary value indicating whether the service is valid for all Saturdays
Type:
- int
serviceExceptions :Array.<ServiceException>
- Source:
A list of Service Exceptions (additions and/or removals of regular service on specific dates) for the Service
Type:
- Array.<ServiceException>
startDate :Number
- Source:
The start date for the service in YYYYMMDD format
Type:
- Number
sunday :int
- Source:
A binary value indicating whether the service is valid for all Sundays
Type:
- int
thursday :int
- Source:
A binary value indicating whether the service is valid for all Thursdays
Type:
- int
tuesday :int
- Source:
A binary value indicating whether the service is valid for all Tuesdays
Type:
- int
wednesday :int
- Source:
A binary value indicating whether the service is valid for all Wednesdays
Type:
- int