Halyri - Server  0.9.1
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Connection Class Reference

Class representing a mobile emergency client connection. Contains the GUID identifying the client, the SignalR connection ID for asynchronous callbacks, time stamp of the connection arrival, current state of the connection and all information received from the client or sent to it during its connection. More...

Public Member Functions

 Connection ()
 Instantiates a Connection that is not connected to a remote mobile emergency client. More...
 
 Connection (MobileClientController controller, string guid, string transportId)
 Instantiates a Connection that is connected to a remote mobile emergency client using the provided MobileClientController and the SignalR transportId. Connected instances will automatically propagate changes of certain attributes to the mobile emergy client. More...
 

Properties

int Id [get, set]
 Gets or sets the primary key identifying this connection in the database. More...
 
string ConnectionGuid [get, set]
 Gets or sets the Guid idenfying this connection in the system. More...
 
string TransportId [get, set]
 Gets or sets the SignalR transport ID identifying this connection on the SignalR Hub instance. More...
 
bool RequestedNoSound [get, set]
 Gets or sets the silent operation request state. True, if the mobile emergency client represented by this instance has requested operation without audio. More...
 
PersonalInformation PersonalInformation [get, set]
 Gets or sets the personal information provided by the mobile emergency client represented by this instace. More...
 
ConnectionPriority ConnectionPriority [get, set]
 Gets or sets the priority of this emerngecy connection. More...
 
EmergencyType EmergencyType [get, set]
 Gets or sets the type of emergency provided by the mobile emergency client represented by this instance. More...
 
bool AttachedToRemoteClient [get]
 Gets the value indicating whether this instance is attached to an active mobile emergency client or restored from presistent database storage. True, if there is an attached client, otherwise false. More...
 
DateTime ArrivalTime [get, set]
 Gets or sets the DateTime specifying the moment in time when this connection first arrived to the server from the mobile emergency client. More...
 
bool clientDisconnected [get, set]
 Gets or sets the value indicating if the mobile emergency client repserensted by this instance has already disconnected its server connection. True, if the client has disconnected, otherwise false. More...
 
ConnectionState ConnectionState [get, set]
 Gets or sets the state of this connection. If represents an active connection, changes to this property will be propagated to the mobile emergency client associated with this connection unless it has disconnected. More...
 
virtual ICollection
< MobileDeviceInformation
MobileDeviceInformation [get]
 Gets the collection containing all mobile device status information updates provided by the mobile emergency client during the emergency connection. More...
 
virtual ICollection
< LocationInformation
LocationInformation [get]
 Gets the collection containing all location information updates provided by the mobile emergency client during the emergency connection. More...
 
virtual ICollection
< CallCenterConnection
AttachedCallCenterConnections [get]
 Gets the collection containing all CallCenterConnection instances representing the call center clients that are currently handling this emergency connection. More...
 
virtual ICollection
< MeasurementInstrument
MeasurementInstruments [get, set]
 Gets the collection containing all MeasurementInstrumentDto instances provided on the mobile emergency client's last available measurement instrument list update. More...
 
virtual ICollection< TextMessageTextMessages [get]
 Gets the collection containing all text based messages received from or sent to the mobile emergency client during this emergency connection. More...
 

Detailed Description

Class representing a mobile emergency client connection. Contains the GUID identifying the client, the SignalR connection ID for asynchronous callbacks, time stamp of the connection arrival, current state of the connection and all information received from the client or sent to it during its connection.

<author>Veli-Mikko Puupponen</author>

Constructor & Destructor Documentation

Instantiates a Connection that is not connected to a remote mobile emergency client.

Connection ( MobileClientController  controller,
string  guid,
string  transportId 
)

Instantiates a Connection that is connected to a remote mobile emergency client using the provided MobileClientController and the SignalR transportId. Connected instances will automatically propagate changes of certain attributes to the mobile emergy client.

Parameters
controllerMobileClientController for communication to the mobile emergency client
guidGuid for this mobile emergency client connection
transportIdSignalR transport ID for communication to the mobile emergency client

Property Documentation

DateTime ArrivalTime
getset

Gets or sets the DateTime specifying the moment in time when this connection first arrived to the server from the mobile emergency client.

virtual ICollection<CallCenterConnection> AttachedCallCenterConnections
get

Gets the collection containing all CallCenterConnection instances representing the call center clients that are currently handling this emergency connection.

bool AttachedToRemoteClient
get

Gets the value indicating whether this instance is attached to an active mobile emergency client or restored from presistent database storage. True, if there is an attached client, otherwise false.

bool clientDisconnected
getset

Gets or sets the value indicating if the mobile emergency client repserensted by this instance has already disconnected its server connection. True, if the client has disconnected, otherwise false.

string ConnectionGuid
getset

Gets or sets the Guid idenfying this connection in the system.

Gets or sets the priority of this emerngecy connection.

Gets or sets the state of this connection. If represents an active connection, changes to this property will be propagated to the mobile emergency client associated with this connection unless it has disconnected.

Gets or sets the type of emergency provided by the mobile emergency client represented by this instance.

int Id
getset

Gets or sets the primary key identifying this connection in the database.

virtual ICollection<LocationInformation> LocationInformation
get

Gets the collection containing all location information updates provided by the mobile emergency client during the emergency connection.

virtual ICollection<MeasurementInstrument> MeasurementInstruments
getset

Gets the collection containing all MeasurementInstrumentDto instances provided on the mobile emergency client's last available measurement instrument list update.

Gets the collection containing all mobile device status information updates provided by the mobile emergency client during the emergency connection.

Gets or sets the personal information provided by the mobile emergency client represented by this instace.

bool RequestedNoSound
getset

Gets or sets the silent operation request state. True, if the mobile emergency client represented by this instance has requested operation without audio.

virtual ICollection<TextMessage> TextMessages
get

Gets the collection containing all text based messages received from or sent to the mobile emergency client during this emergency connection.

string TransportId
getset

Gets or sets the SignalR transport ID identifying this connection on the SignalR Hub instance.


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