Table of Contents

Class Worker

Namespace
Acuit.Pinpoint.Client2
Assembly
Acuit.Pinpoint.Client2.dll

A worker.

[DataContract(IsReference = true)]
[KnownType(typeof(Group))]
public class Worker : INotifyPropertyChanged
Inheritance
Worker
Implements
Inherited Members

Properties

BadgeNumber

Gets or sets the badge number.

[DataMember]
public string BadgeNumber { get; set; }

Property Value

string

FirstName

Gets or sets the first name.

[DataMember]
public string FirstName { get; set; }

Property Value

string

FullName

Gets the full name of the worker.

public string FullName { get; }

Property Value

string

Remarks

This property value is derived from the FirstName and LastName properties.

FullNameAndNumber

Gets the full name and id of the worker, in the form "FullName (BadgeNumber)".

public string FullNameAndNumber { get; }

Property Value

string

Remarks

This property value is derived from the FirstName, LastName, and BadgeNumber properties.

Groups

Gets or sets the groups to which this worker belongs.

[DataMember(Order = 2)]
public TrackableCollection<Group> Groups { get; set; }

Property Value

TrackableCollection<Group>

IsActive

Gets or sets whether this worker is an active worker (i.e., allowed to log on).

[DataMember]
public bool IsActive { get; set; }

Property Value

bool

IsDeserializing

Gets or sets whether this object is currently being deserialized.

protected bool IsDeserializing { get; }

Property Value

bool

LastName

Gets or sets the last name.

[DataMember]
public string LastName { get; set; }

Property Value

string

WorkerId

Gets or sets the worker identification number.

[DataMember]
public int WorkerId { get; set; }

Property Value

int

Methods

OnPropertyChanged(string)

Processes property changes by raising the PropertyChanged event.

protected virtual void OnPropertyChanged(string propertyName)

Parameters

propertyName string

The name of the property that changed.

ToString()

Returns the FullNameAndNumber value as a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Events

PropertyChanged

Occurs when a property value changes.

public event PropertyChangedEventHandler PropertyChanged

Event Type

PropertyChangedEventHandler