Halyri - Server
0.9.1
|
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... | |
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.
string ClientConnected | ( | string | transportId | ) |
Handles mobile emergency client connection initialization.
transportId | SignalR connection id for the client connection |
void ClientDisconnected | ( | string | guid | ) |
Handles mobile emergency client disconnect event.
guid | GUID 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.
guid | GUID identifying the emergency client |
void ClientReconnected | ( | string | guid, |
string | transportId | ||
) |
Handles mobile emergency client reconnect event.
guid | GUID identifying the emergency client |
transportId | SignalR connection id for the client connection |
void ClientSentTextMessage | ( | string | guid, |
TextMessageDto | textMessage | ||
) |
Handles text messages incoming from mobile emergency client
guid | GUID identifying the emergency client |
textMessage | Incoming text message |
void ClientUpdatedConnectionLatencyInfo | ( | string | guid, |
ConnectionLatencyInformationDto | latencyInfo | ||
) |
Method for handling mobile emergency client latency information update.
guid | GUID identifying the emergency client |
latencyInfo | Latency information |
void ClientUpdatedConnectionPriority | ( | string | guid, |
ConnectionPriorityDto | priority | ||
) |
Method for handling mobile emergency client emergency connection priority updates.
guid | GUID identifying the emergency client |
priority | New location information |
void ClientUpdatedDeviceInfo | ( | string | guid, |
MobileDeviceInformationDto | deviceInfo | ||
) |
Method for handling mobile emergency client mobile device status information updates.
guid | GUID identifying the emergency client |
devideInfo | New location information |
void ClientUpdatedInstrumentList | ( | string | guid, |
List< MeasurementInstrumentDto > | instruments | ||
) |
Method for handling mobile emergency client measurement instrument list update
guid | GUID identifying the emergency client |
instruments | List of available measurement instruments attached to the mobile device |
void ClientUpdatedLocation | ( | string | guid, |
LocationInformationDto | location | ||
) |
Method for handling mobile emergency client location updates.
guid | GUID identifying the emergency client |
location | New location information |
void ClientUpdatedMedicalinfo | ( | string | guid, |
MedicalInformationDto | medicalInfo | ||
) |
Method for handling mobile emergency client user's medical information updates.
guid | GUID identifying the emergency client |
medicalInfo | New location information |
void ClientUpdatedNoSoundStatus | ( | string | guid, |
bool | noSound | ||
) |
Method for handling mobile emergency client request for operation without sound.
guid | GUID identifying the emergency client |
noSound | true for operation without sound |
void ClientUpdatedPersonalInfo | ( | string | guid, |
PersonalInformationDto | userlInfo | ||
) |
Method for handling mobile emergency client user information updates.
guid | GUID identifying the emergency client |
userlInfo | New location information |
void ClientUpdatedRequestType | ( | string | guid, |
EmergencyTypeDto | emergencyType | ||
) |
Method for handling mobile emergency client emergency type updates.
guid | GUID identifying the emergency client |
requestType | New location information |
void ClientUploadedMeasurementData | ( | string | guid, |
MeasurementInstrumentDto | instrument, | ||
byte[] | measurementData | ||
) |
Method for handling mobile emergency client measurement data uploads
guid | GUID identifying the emergency client |
instrument | Measurement instrument from which the data originates |
measurementData | Measurement data |
void ClientUploadedMediaData | ( | string | guid, |
MediaInformationDto | mediaInfo, | ||
byte[] | mediaData | ||
) |
Method for handling mobile emergency client media uploads
guid | GUID identifying the emergency client |
mediaInfo | Information identifying the media type |
mediaData | Media data |
void CloseUserLocationMap | ( | String | transportId | ) |
Orders the mobile emergency client to hide the location map.
transportId | SignalR 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.
transportId | SignalR 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.
transportId | SignalR 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.
transportId | SignalR connection ID for a mobile emergency client connection. |
textMessage | Text 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.
transportId | SignalR 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.
transportId | SignalR 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.
transportId | SignalR 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.
transportId | SignalR connection ID for a mobile emergency client connection. |
mediaUrl | Location 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
transportId | SignalR connection ID for a mobile emergency client connection. |
mediaCofiguration | Configuration 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.
transportId | SignalR 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.
transportId | SignalR connection ID for a mobile emergency client connection. |
instrument | Target 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.
transportId | SignalR connection ID for a mobile emergency client connection. |
instrument | Target measurement instrument |
Implements IMobileClientMethods.
void RequestUserInfo | ( | String | transportId | ) |
Sends user information update request to the mobile emergency client with the specified SignalR connection ID.
transportId | SignalR 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.
transportId | SignalR connection ID for a mobile emergency client connection. |
status | New connection state |
Implements IMobileClientMethods.
|
staticget |
Gets the MobileClientController instance.