Table of Contents

Class WorkerStation

Namespace
Acuit.Pinpoint.Services.Entities
Assembly
Acuit.Pinpoint.Services.Entities.dll

Information about a worker logged in at a workstation.

[DataContract(IsReference = true)]
[KnownType(typeof(Station))]
[KnownType(typeof(StationType))]
[KnownType(typeof(Worker))]
public class WorkerStation
Inheritance
WorkerStation
Inherited Members

Constructors

WorkerStation(int, DateTime, DateTime, byte, Station, StationType, Worker)

Initializes a new instance of the WorkerStation class.

public WorkerStation(int workerStationId, DateTime logOnDateTime, DateTime shiftDate, byte shiftNumber, Station station, StationType stationType, Worker worker)

Parameters

workerStationId int

The unique identifier for this worker station.

logOnDateTime DateTime

The date/time when the worker logged on to the station, in UTC.

shiftDate DateTime

The shift date, in local time, expressed as a date only.

shiftNumber byte

The shift number.

station Station

The station.

stationType StationType

The station type.

worker Worker

The worker.

Exceptions

ArgumentNullException

station is null.

ArgumentNullException

stationType is null.

ArgumentNullException

worker is null.

Properties

LogOffDateTime

Gets or sets the date/time when the worker logged off from the station, in UTC, or null if there is no log off date/time recorded.

[DataMember]
public DateTime? LogOffDateTime { get; set; }

Property Value

DateTime?

LogOnDateTime

Gets the date/time when the worker logged on to the station, in UTC.

[DataMember]
public DateTime LogOnDateTime { get; }

Property Value

DateTime

ShiftDate

Gets the shift date, in local time, expressed as a date only (time will be set to midnight).

[DataMember]
public DateTime ShiftDate { get; }

Property Value

DateTime

ShiftNumber

Gets the shift number.

[DataMember]
public byte ShiftNumber { get; }

Property Value

byte

Station

Gets the station.

[DataMember]
public Station Station { get; }

Property Value

Station

StationType

Gets the station type.

[DataMember]
public StationType StationType { get; }

Property Value

StationType

Worker

Gets the worker.

[DataMember]
public Worker Worker { get; }

Property Value

Worker

WorkerStationId

Gets the unique identifier for this worker station.

[DataMember]
public int WorkerStationId { get; }

Property Value

int