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

Class for interacting with an emergency client. Functions as a broker between the ConnectionController and the SignalR and WCF interfaces used by the mobile emergency client. Maintains a reference to the SignalR IHubConnectionContext required for communication from the server to the connected mobile emergency clients. More...

Inherits IMobileClientMethods.

Public Member Functions

string ClientConnected (string transportId)
 Handles mobile emergency client connection initialization. More...
 
void ClientReconnected (string guid, string transportId)
 Handles mobile emergency client reconnect event. More...
 
void ClientDisconnected (string guid)
 Handles mobile emergency client disconnect event. More...
 
void RequestLocationUpdate (String transportId)
 Sends location information update request to the mobile emergency client with the specified SignalR connection ID. More...
 
void RequestDeviceInfo (String transportId)
 Sends mobile device status information update request to the mobile emergency client with the specified SignalR connection ID. More...
 
void UpdateConnectionStatus (String transportId, ConnectionStateDto status)
 Sends an updated connection status to the mobile emergency client with the specified SignalR connection ID. More...
 
void RequestUserInfo (String transportId)
 Sends user information update request to the mobile emergency client with the specified SignalR connection ID. More...
 
void RequestMedicalInfo (String transportId)
 Sends medical information update request to the mobile emergency client with the specified SignalR connection ID. More...
 
void DisplayUserLocationMap (String transportId)
 Orders the mobile emergency client to display a map enabling the user to manually specify the current location. More...
 
void CloseUserLocationMap (String transportId)
 Orders the mobile emergency client to hide the location map. More...
 
void GetInstrumentList (String transportId)
 Requests a list of available measurement instruments from the mobile emergency client with the specified SignalR connection ID. More...
 
void ClientUpdatedLocation (string guid, LocationInformationDto location)
 Method for handling mobile emergency client location updates. More...
 
void ClientUpdatedDeviceInfo (string guid, MobileDeviceInformationDto deviceInfo)
 Method for handling mobile emergency client mobile device status information updates. More...
 
void ClientUpdatedPersonalInfo (string guid, PersonalInformationDto userlInfo)
 Method for handling mobile emergency client user information updates. More...
 
void ClientUpdatedConnectionPriority (string guid, ConnectionPriorityDto priority)
 Method for handling mobile emergency client emergency connection priority updates. More...
 
void ClientUpdatedRequestType (string guid, EmergencyTypeDto emergencyType)
 Method for handling mobile emergency client emergency type updates. More...
 
void ClientUpdatedMedicalinfo (string guid, MedicalInformationDto medicalInfo)
 Method for handling mobile emergency client user's medical information updates. More...
 
void ClientUpdatedNoSoundStatus (string guid, bool noSound)
 Method for handling mobile emergency client request for operation without sound. More...
 
void ClientUpdatedInstrumentList (string guid, List< MeasurementInstrumentDto > instruments)
 Method for handling mobile emergency client measurement instrument list update More...
 
void ClientUploadedMediaData (string guid, MediaInformationDto mediaInfo, byte[] mediaData)
 Method for handling mobile emergency client media uploads More...
 
void ClientUploadedMeasurementData (string guid, MeasurementInstrumentDto instrument, byte[] measurementData)
 Method for handling mobile emergency client measurement data uploads More...
 
void RequestMediaUpstreaming (String transportId, MediaConfigurationDto mediaCofiguration)
 Requests the mobile emergency client to start upstreaming media according to the provided configuration More...
 
void RequestMediaDownstreaming (String transportId, string mediaUrl)
 Requests the mobile emergency client to start downstreaming and displaying media from the provided location. More...
 
void RequestStartMeasurement (String transportId, MeasurementInstrumentDto instrument)
 Requests the mobile emergency client with the specifiedSignalR connection ID to start measuring using the specified instrument and uploading the measurement data. More...
 
void RequestStopMeasurement (String transportId, MeasurementInstrumentDto instrument)
 Requests the mobile emergency client with the specifiedSignalR connection ID to stop measurement with the specified instrument and no to longer upload measurement data from it. More...
 
void ClientSentTextMessage (string guid, TextMessageDto textMessage)
 Handles text messages incoming from mobile emergency client More...
 
void IncomingTextMessage (string transportId, TextMessageDto textMessage)
 Sends a text based message to the mobile emergency client with the specified SignalR connection ID. More...
 
void RequestConnectionLatencyInfo (String transportId)
 Requests the mobile emergency client with the specified SignalR connection ID to start connection latency measurement. More...
 
void ClientUpdatedConnectionLatencyInfo (string guid, ConnectionLatencyInformationDto latencyInfo)
 Method for handling mobile emergency client latency information update. More...
 
AudioVideoContainerDto ClientGetMediaSegment (string guid)
 Handles new audio/video media segment requests from mobile emergency clients. Returns a new audio/video media segment if one has been uploaded by a call center client handling this emergency connection. Otherwise returns an empty AudioVideoContainerDto with no media payload. More...
 
- Public Member Functions inherited from IMobileClientMethods
void IncomingTextMessage (String transportId, TextMessageDto textMessage)
 Sends a text based message the mobile emergency client with the specified SignalR connection ID. More...
 

Properties

static MobileClientController Instance [get]
 Gets the MobileClientController instance. More...
 

Detailed Description

Class for interacting with an emergency client. Functions as a broker between the ConnectionController and the SignalR and WCF interfaces used by the mobile emergency client. Maintains a reference to the SignalR IHubConnectionContext required for communication from the server to the connected mobile emergency clients.

<author>Veli-Mikko Puupponen, Ilkka Rautiainen</author> This singleton is instantialized by the first call to either of the emergency client interfaces or by the ConnectionController.

See also
HalyriServer.Services.IWcfMobileService, HalyriServer.Services.WcfMobileService, HalyriServer.Services.IMobileClientMethods, HalyriServer.Services.SignalRMobileHub

Member Function Documentation

string ClientConnected ( string  transportId)

Handles mobile emergency client connection initialization.

Parameters
transportIdSignalR connection id for the client connection
Returns
GUID identifying the emergency client
void ClientDisconnected ( string  guid)

Handles mobile emergency client disconnect event.

Parameters
guidGUID identifying the emergency client
AudioVideoContainerDto ClientGetMediaSegment ( string  guid)

Handles new audio/video media segment requests from mobile emergency clients. Returns a new audio/video media segment if one has been uploaded by a call center client handling this emergency connection. Otherwise returns an empty AudioVideoContainerDto with no media payload.

Parameters
guidGUID identifying the emergency client
Returns
A AudioVideoContainerDto containing audio/video from the call center client. If no media is available, AudioVideoContainerDto is empty with no payload.
void ClientReconnected ( string  guid,
string  transportId 
)

Handles mobile emergency client reconnect event.

Parameters
guidGUID identifying the emergency client
transportIdSignalR connection id for the client connection
void ClientSentTextMessage ( string  guid,
TextMessageDto  textMessage 
)

Handles text messages incoming from mobile emergency client

Parameters
guidGUID identifying the emergency client
textMessageIncoming text message
void ClientUpdatedConnectionLatencyInfo ( string  guid,
ConnectionLatencyInformationDto  latencyInfo 
)

Method for handling mobile emergency client latency information update.

Parameters
guidGUID identifying the emergency client
latencyInfoLatency information
void ClientUpdatedConnectionPriority ( string  guid,
ConnectionPriorityDto  priority 
)

Method for handling mobile emergency client emergency connection priority updates.

Parameters
guidGUID identifying the emergency client
priorityNew location information
void ClientUpdatedDeviceInfo ( string  guid,
MobileDeviceInformationDto  deviceInfo 
)

Method for handling mobile emergency client mobile device status information updates.

Parameters
guidGUID identifying the emergency client
devideInfoNew location information
void ClientUpdatedInstrumentList ( string  guid,
List< MeasurementInstrumentDto instruments 
)

Method for handling mobile emergency client measurement instrument list update

Parameters
guidGUID identifying the emergency client
instrumentsList of available measurement instruments attached to the mobile device
void ClientUpdatedLocation ( string  guid,
LocationInformationDto  location 
)

Method for handling mobile emergency client location updates.

Parameters
guidGUID identifying the emergency client
locationNew location information
void ClientUpdatedMedicalinfo ( string  guid,
MedicalInformationDto  medicalInfo 
)

Method for handling mobile emergency client user's medical information updates.

Parameters
guidGUID identifying the emergency client
medicalInfoNew location information
void ClientUpdatedNoSoundStatus ( string  guid,
bool  noSound 
)

Method for handling mobile emergency client request for operation without sound.

Parameters
guidGUID identifying the emergency client
noSoundtrue for operation without sound
void ClientUpdatedPersonalInfo ( string  guid,
PersonalInformationDto  userlInfo 
)

Method for handling mobile emergency client user information updates.

Parameters
guidGUID identifying the emergency client
userlInfoNew location information
void ClientUpdatedRequestType ( string  guid,
EmergencyTypeDto  emergencyType 
)

Method for handling mobile emergency client emergency type updates.

Parameters
guidGUID identifying the emergency client
requestTypeNew location information
void ClientUploadedMeasurementData ( string  guid,
MeasurementInstrumentDto  instrument,
byte[]  measurementData 
)

Method for handling mobile emergency client measurement data uploads

Parameters
guidGUID identifying the emergency client
instrumentMeasurement instrument from which the data originates
measurementDataMeasurement data
void ClientUploadedMediaData ( string  guid,
MediaInformationDto  mediaInfo,
byte[]  mediaData 
)

Method for handling mobile emergency client media uploads

Parameters
guidGUID identifying the emergency client
mediaInfoInformation identifying the media type
mediaDataMedia data
void CloseUserLocationMap ( String  transportId)

Orders the mobile emergency client to hide the location map.

Parameters
transportIdSignalR connection ID for a mobile emergency client connection.

Implements IMobileClientMethods.

void DisplayUserLocationMap ( String  transportId)

Orders the mobile emergency client to display a map enabling the user to manually specify the current location.

Parameters
transportIdSignalR connection ID for a mobile emergency client connection.

Implements IMobileClientMethods.

void GetInstrumentList ( String  transportId)

Requests a list of available measurement instruments from the mobile emergency client with the specified SignalR connection ID.

Parameters
transportIdSignalR connection ID for a mobile emergency client connection.

Implements IMobileClientMethods.

void IncomingTextMessage ( string  transportId,
TextMessageDto  textMessage 
)

Sends a text based message to the mobile emergency client with the specified SignalR connection ID.

Parameters
transportIdSignalR connection ID for a mobile emergency client connection.
textMessageText message to be sent to the mobile emergency client
void RequestConnectionLatencyInfo ( String  transportId)

Requests the mobile emergency client with the specified SignalR connection ID to start connection latency measurement.

Parameters
transportIdSignalR connection ID for a mobile emergency client connection

Implements IMobileClientMethods.

void RequestDeviceInfo ( String  transportId)

Sends mobile device status information update request to the mobile emergency client with the specified SignalR connection ID.

Parameters
transportIdSignalR connection ID for a mobile emergency client connection.

Implements IMobileClientMethods.

void RequestLocationUpdate ( String  transportId)

Sends location information update request to the mobile emergency client with the specified SignalR connection ID.

Parameters
transportIdSignalR connection ID for a mobile emergency client connection.

Implements IMobileClientMethods.

void RequestMediaDownstreaming ( String  transportId,
string  mediaUrl 
)

Requests the mobile emergency client to start downstreaming and displaying media from the provided location.

Parameters
transportIdSignalR connection ID for a mobile emergency client connection.
mediaUrlLocation of the media to be displayed by the mobile emergency client

Implements IMobileClientMethods.

void RequestMediaUpstreaming ( String  transportId,
MediaConfigurationDto  mediaCofiguration 
)

Requests the mobile emergency client to start upstreaming media according to the provided configuration

Parameters
transportIdSignalR connection ID for a mobile emergency client connection.
mediaCofigurationConfiguration describing the requested media

Implements IMobileClientMethods.

void RequestMedicalInfo ( String  transportId)

Sends medical information update request to the mobile emergency client with the specified SignalR connection ID.

Parameters
transportIdSignalR connection ID for a mobile emergency client connection.

Implements IMobileClientMethods.

void RequestStartMeasurement ( String  transportId,
MeasurementInstrumentDto  instrument 
)

Requests the mobile emergency client with the specifiedSignalR connection ID to start measuring using the specified instrument and uploading the measurement data.

Parameters
transportIdSignalR connection ID for a mobile emergency client connection.
instrumentTarget measurement instrumet

Implements IMobileClientMethods.

void RequestStopMeasurement ( String  transportId,
MeasurementInstrumentDto  instrument 
)

Requests the mobile emergency client with the specifiedSignalR connection ID to stop measurement with the specified instrument and no to longer upload measurement data from it.

Parameters
transportIdSignalR connection ID for a mobile emergency client connection.
instrumentTarget measurement instrument

Implements IMobileClientMethods.

void RequestUserInfo ( String  transportId)

Sends user information update request to the mobile emergency client with the specified SignalR connection ID.

Parameters
transportIdSignalR connection ID for a mobile emergency client connection.

Implements IMobileClientMethods.

void UpdateConnectionStatus ( String  transportId,
ConnectionStateDto  status 
)

Sends an updated connection status to the mobile emergency client with the specified SignalR connection ID.

Parameters
transportIdSignalR connection ID for a mobile emergency client connection.
statusNew connection state

Implements IMobileClientMethods.

Property Documentation

MobileClientController Instance
staticget

Gets the MobileClientController instance.


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