Halyri - Server
0.9.1
|
WCF service for the for the emergency mobile clients. This service is only used for client-to-server invocation after the emergency mobile client has opened an emergency connection using the SignalR hub connection. More...
Inherits IWcfMobileService.
Public Member Functions | |
void | UpdateLocation (string guid, LocationInformationDto location) |
Send new location information to the server. More... | |
void | UpdateDeviceInfo (string guid, MobileDeviceInformationDto deviceInfo) |
Send new mobile device status information to the server. More... | |
void | UpdatePersonalInfo (string guid, PersonalInformationDto userInfo) |
Send new mobile emergency client user's information to the server. More... | |
void | UpdateMedicalInfo (string guid, MedicalInformationDto medicalInfo) |
Send new mobile emergency client user medical information to the server. More... | |
void | UpdateConnectionPriority (string guid, ConnectionPriorityDto priority) |
Sends the selected emergency priority to the server. More... | |
void | UpdateRequestType (string guid, EmergencyTypeDto requestType) |
Sends the selected emergency type to the server. More... | |
void | ToggleNoSound (string guid, bool noSound) |
Sets mobile emergency client request for operation without sound. More... | |
void | UpdateInstrumentList (string guid, List< MeasurementInstrumentDto > instruments) |
Updates the list of supported measurement instruments to the server. More... | |
void | UploadMediaSegment (string guid, MediaInformationDto mediaInfo, byte[] mediaData) |
Uploads a segment of media from the mobile emergency client to the server. More... | |
void | UploadMeasurementData (string guid, MeasurementInstrumentDto instrument, byte[] measurementData) |
Uploads a segment of measurement data from an instrument at the mobile device to the server. More... | |
void | SendTextMessage (string guid, TextMessageDto textMessage) |
Sends a text based message to the call center client handling this emergency connection. More... | |
byte[] | SendTestPacket (string guid, byte[] testPacket) |
Sends a test packet. If the received packet is small, a big random packet is returned. If the received packet is big, a small random packet is returned. More... | |
void | UpdateConnectionLatencyInfo (string guid, ConnectionLatencyInformationDto latencyInfo) |
Updates the connection latency information to the server. More... | |
AudioVideoContainerDto | GetMediaSegment (string guid) |
int | Ping (int pingSequence) |
WCF service for the for the emergency mobile clients. This service is only used for client-to-server invocation after the emergency mobile client has opened an emergency connection using the SignalR hub connection.
<author>Veli-Mikko Puupponen</author> Implements IWcfMobileService.
byte [] SendTestPacket | ( | string | guid, |
byte[] | testPacket | ||
) |
Sends a test packet. If the received packet is small, a big random packet is returned. If the received packet is big, a small random packet is returned.
Throws ParameterFault if guid is null Throws Fault if test packet length is wrong
guid | GUID identifying the mobile emergency client connection |
testPacket | Test packet |
Implements IWcfMobileService.
void SendTextMessage | ( | string | guid, |
TextMessageDto | textMessage | ||
) |
Sends a text based message to the call center client handling this emergency connection.
Throws ParameterFault if supplied parameters are null or incorrect. Throws ConnectionFault if supplied GUID does not represent a valid connection. Throws TargetStateFault if the connection is processed or otherwise in an incompatible state.
guid | GUID identifying the mobile emergency client connection |
textMessage | Text message to the call center |
Implements IWcfMobileService.
void ToggleNoSound | ( | string | guid, |
bool | noSound | ||
) |
Sets mobile emergency client request for operation without sound.
Throws ParameterFault if supplied parameters are null or incorrect. Throws ConnectionFault if supplied GUID does not represent a valid connection. Throws TargetStateFault if the connection is processed or otherwise in an incompatible state.
guid | GUID identifying the mobile emergency clientconnection |
noSound | true if operation without sound is requested |
Implements IWcfMobileService.
void UpdateConnectionLatencyInfo | ( | string | guid, |
ConnectionLatencyInformationDto | latencyInfo | ||
) |
Updates the connection latency information to the server.
Throws ParameterFault if guid or latencyInfo is null
guid | GUID identifying the mobile emergency client connection |
latencyInfo | Latency info |
Implements IWcfMobileService.
void UpdateConnectionPriority | ( | string | guid, |
ConnectionPriorityDto | priority | ||
) |
Sends the selected emergency priority to the server.
Throws ParameterFault if supplied parameters are null or incorrect. Throws ConnectionFault if supplied GUID does not represent a valid connection. Throws TargetStateFault if the connection is processed or otherwise in an incompatible state.
guid | GUID identifying the mobile emergency clientconnection |
priority | New emergency connection priority |
Implements IWcfMobileService.
void UpdateDeviceInfo | ( | string | guid, |
MobileDeviceInformationDto | deviceInfo | ||
) |
Send new mobile device status information to the server.
Throws ParameterFault if supplied parameters are null or incorrect. Throws ConnectionFault if supplied GUID does not represent a valid connection. Throws TargetStateFault if the connection is processed or otherwise in an incompatible state.
guid | GUID identifying the mobile emergency clientconnection |
deviceInfo | New mobile device information |
Implements IWcfMobileService.
void UpdateInstrumentList | ( | string | guid, |
List< MeasurementInstrumentDto > | instruments | ||
) |
Updates the list of supported measurement instruments to the server.
Throws ParameterFault if supplied parameters are null or incorrect. Throws ConnectionFault if supplied GUID does not represent a valid connection. Throws TargetStateFault if the connection is processed or otherwise in an incompatible state.
guid | GUID identifying the mobile emergency clientconnection |
instruments | List of available measurement instruments at the mobile device |
Implements IWcfMobileService.
void UpdateLocation | ( | string | guid, |
LocationInformationDto | location | ||
) |
Send new location information to the server.
Throws ParameterFault if supplied parameters are null or incorrect. Throws ConnectionFault if supplied GUID does not represent a valid connection. Throws TargetStateFault if the connection is processed or otherwise in an incompatible state.
guid | GUID identifying the mobile emergency clientconnection |
location | New location information |
Implements IWcfMobileService.
void UpdateMedicalInfo | ( | string | guid, |
MedicalInformationDto | medicalInfo | ||
) |
Send new mobile emergency client user medical information to the server.
Throws ParameterFault if supplied parameters are null or incorrect. Throws ConnectionFault if supplied GUID does not represent a valid connection. Throws TargetStateFault if the connection is processed or otherwise in an incompatible state.
guid | GUID identifying the mobile emergency clientconnection |
medicalInfo | New user medical information |
Implements IWcfMobileService.
void UpdatePersonalInfo | ( | string | guid, |
PersonalInformationDto | userInfo | ||
) |
Send new mobile emergency client user's information to the server.
Throws ParameterFault if supplied parameters are null or incorrect. Throws ConnectionFault if supplied GUID does not represent a valid connection. Throws TargetStateFault if the connection is processed or otherwise in an incompatible state.
guid | GUID identifying the mobile emergency clientconnection |
userInfo | New user information |
Implements IWcfMobileService.
void UpdateRequestType | ( | string | guid, |
EmergencyTypeDto | requestType | ||
) |
Sends the selected emergency type to the server.
Throws ParameterFault if supplied parameters are null or incorrect. Throws ConnectionFault if supplied GUID does not represent a valid connection. Throws TargetStateFault if the connection is processed or otherwise in an incompatible state.
guid | GUID identifying the mobile emergency clientconnection |
requestType | Selected emergency type |
Implements IWcfMobileService.
void UploadMeasurementData | ( | string | guid, |
MeasurementInstrumentDto | instrument, | ||
byte[] | measurementData | ||
) |
Uploads a segment of measurement data from an instrument at the mobile device to the server.
Throws ParameterFault if supplied parameters are null or incorrect. Throws ConnectionFault if supplied GUID does not represent a valid connection. Throws TargetStateFault if the connection is processed or otherwise in an incompatible state.
guid | GUID identifying the mobile emergency client connection |
instrument | Measurement instrument |
measurementData | Measurement data bytes |
Implements IWcfMobileService.
void UploadMediaSegment | ( | string | guid, |
MediaInformationDto | mediaInfo, | ||
byte[] | mediaData | ||
) |
Uploads a segment of media from the mobile emergency client to the server.
Throws ParameterFault if supplied parameters are null or incorrect. Throws ConnectionFault if supplied GUID does not represent a valid connection. Throws TargetStateFault if the connection is processed or otherwise in an incompatible state.
guid | GUID identifying the mobile emergency clientconnection |
mediaInfo | Description of the media |
mediaData | Media data bytes |
Implements IWcfMobileService.