Halyri - Häke  0.9.1
 All Classes Namespaces Functions Variables Enumerations Properties
Assignment Class Reference

Assigment listboxitem that contains many properties like handlers, location, time, state, priority, pushpins, assigment info and street name. It sets content and background depending state and priority and if there is location available. More...

Inherits ListBoxItem, and INotifyPropertyChanged.

Public Types

enum  priorities { NotUrgent = 0, Urgent = 1 }
 Not urgent and urgent enums. NotUrgent is 0 and Urgent is 1 as ints. More...
 
enum  States {
  New = 0, InProgress = 1, InTransfer = 2, Finalized = 3,
  Hold = 4
}
 Enum of states. New = 0,...,Hold=4. More...
 

Public Member Functions

 Assignment (String guid, DateTime time, priorities priority, States state, LocationInformationDto location)
 Initializes Assigment: sets state, priority, time, location, assimentinfo, sets backgroundcolor and content. These are essential for assignment More...
 
 Assignment (String guid, DateTime time, priorities priority, States state)
 Constructor without location. More...
 

Static Public Attributes

static readonly DependencyProperty IsHandlerProperty
 DependencyProperty for ishandler. More...
 

Properties

String EmergencyType [get, set]
 Sets and getsEmergency type can be any string that is short description about emergency. More...
 
ObservableCollection
< TextMessageDto
TextMessages [get, set]
 Textmessages in observablecollection. More...
 
PersonalInformationDto PersonalInfo [get, set]
 Sets and gets personal information as PersonalInformationDto that includes name, address and list of phonenumbers and all as strings. More...
 
priorities Priority [get, set]
 Sets and gets priority of this assignment. When value is set, also sets background and content. More...
 
String Guid [get, set]
 Sets and gets guid. More...
 
DateTime Time [get, set]
 Sets and gets time. This time is when assignment is taken in. When setted, also sets background color and content. More...
 
bool NoSound [get, set]
 Gets and sets NoSound. More...
 
States State [get, set]
 Sets value and also takes care of background color and listboxitem content. Also if state is finalized removes pushpins. More...
 
bool IsHandler [get, set]
 Sets and gets IsHandler More...
 
LocationInformationDto Location [get, set]
 Sets and gets location as LocationInformationDto that contains location, accuracy in meters and time. When this is setted, sets content also. More...
 
double LocationAccuracyMeters [get, set]
 Sets and gets locationAccuracyMeters More...
 
DateTimeOffset LocationAcquisitionTime [get, set]
 Sets and gets LocationAcquisitionTime. More...
 
ObservableCollection< Pushpin > Pushpins [get, set]
 Sets and gets Pushpins as ObservableCollention. If assignemnts state is finalized, it won't set pushpins. Also adds pushpins in index 1 background to light green. More...
 
String StreetName [get, set]
 Sets and gets streetname. When setted, also sets content and invokes NotifyPropertyChanged. More...
 
MobileDeviceInformationDto DeviceInfo [get, set]
 Sets and gets DeviceInfo. More...
 

Events

PropertyChangedEventHandler PropertyChanged
 

Detailed Description

Assigment listboxitem that contains many properties like handlers, location, time, state, priority, pushpins, assigment info and street name. It sets content and background depending state and priority and if there is location available.

<author>Atte Söderlund</author>

Member Enumeration Documentation

enum priorities

Not urgent and urgent enums. NotUrgent is 0 and Urgent is 1 as ints.

enum States

Enum of states. New = 0,...,Hold=4.

Constructor & Destructor Documentation

Assignment ( String  guid,
DateTime  time,
priorities  priority,
States  state,
LocationInformationDto  location 
)

Initializes Assigment: sets state, priority, time, location, assimentinfo, sets backgroundcolor and content. These are essential for assignment

Parameters
timeAssigment connection time
priorityAssigments priority from Assigment.Priorities
stateAssigments state from Assigment.States
locationAssigments location
Assignment ( String  guid,
DateTime  time,
priorities  priority,
States  state 
)

Constructor without location.

Parameters
timeAssigment connection time
priorityAssigments priority from Assigment.Priorities
stateAssigments state from Assigment.States

Member Data Documentation

readonly DependencyProperty IsHandlerProperty
static
Initial value:
=
DependencyProperty.Register("IsHandler", typeof(bool), typeof(MainWindow), new PropertyMetadata(false))

DependencyProperty for ishandler.

Property Documentation

MobileDeviceInformationDto DeviceInfo
getset

Sets and gets DeviceInfo.

String EmergencyType
getset

Sets and getsEmergency type can be any string that is short description about emergency.

String Guid
getset

Sets and gets guid.

bool IsHandler
getset

Sets and gets IsHandler

LocationInformationDto Location
getset

Sets and gets location as LocationInformationDto that contains location, accuracy in meters and time. When this is setted, sets content also.

double LocationAccuracyMeters
getset

Sets and gets locationAccuracyMeters

DateTimeOffset LocationAcquisitionTime
getset

Sets and gets LocationAcquisitionTime.

bool NoSound
getset

Gets and sets NoSound.

PersonalInformationDto PersonalInfo
getset

Sets and gets personal information as PersonalInformationDto that includes name, address and list of phonenumbers and all as strings.

priorities Priority
getset

Sets and gets priority of this assignment. When value is set, also sets background and content.

ObservableCollection<Pushpin> Pushpins
getset

Sets and gets Pushpins as ObservableCollention. If assignemnts state is finalized, it won't set pushpins. Also adds pushpins in index 1 background to light green.

States State
getset

Sets value and also takes care of background color and listboxitem content. Also if state is finalized removes pushpins.

String StreetName
getset

Sets and gets streetname. When setted, also sets content and invokes NotifyPropertyChanged.

ObservableCollection<TextMessageDto> TextMessages
getset

Textmessages in observablecollection.

DateTime Time
getset

Sets and gets time. This time is when assignment is taken in. When setted, also sets background color and content.


The documentation for this class was generated from the following file: