Click or drag to resize
Shift Class
Container class for Shifts.
Inheritance Hierarchy
SystemObject
  AMG.API.Definitions.ShiftsShift

Namespace: AMG.API.Definitions.Shifts
Assembly: AMG.API (in AMG.API.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public class Shift

The Shift type exposes the following members.

Constructors
  NameDescription
Public methodShift
Initializes a new instance of the Shift class
Top
Properties
  NameDescription
Public propertyGross
This value is generated automatically and shows the total duration of the shift. Note that in case the shift group is fixed, this value is equal to the difference of Stop and Start times and in case the shift group is flexible it is equal to the sum of Total value and Lunch/Breaks durations. In both cases this option is not editable and its value can't be entered manually.
Public propertyId
Unique identification value for the shift.
Public propertyLunchesAndBreaks
Array of Lunch/Break configuration items
Public propertyStart
The Start time of the Shift. Note that this option will be active only in case shift group is not flexible.
Public propertyStop
The Stop time of the Shift. Note that this option will be active only in case shift group is not flexible.
Public propertyTotal
This value shows the total duration of the shift's working time and is calculated by subtracting the total duration of lunches and breaks from the Gross value. Note that in case the shift group is fixed, this option is not editable and its value can't be entered manually, but in case the shift group is flexible, it is to be entered manually.
Top
See Also