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

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)
 

Detailed Description

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.

See also
HalyriServer.Services.IWcfMobileService

Member Function Documentation

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

Parameters
guidGUID identifying the mobile emergency client connection
testPacketTest packet
Returns
big or small 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.

Parameters
guidGUID identifying the mobile emergency client connection
textMessageText 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.

Parameters
guidGUID identifying the mobile emergency clientconnection
noSoundtrue 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

Parameters
guidGUID identifying the mobile emergency client connection
latencyInfoLatency 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.

Parameters
guidGUID identifying the mobile emergency clientconnection
priorityNew 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.

Parameters
guidGUID identifying the mobile emergency clientconnection
deviceInfoNew 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.

Parameters
guidGUID identifying the mobile emergency clientconnection
instrumentsList 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.

Parameters
guidGUID identifying the mobile emergency clientconnection
locationNew 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.

Parameters
guidGUID identifying the mobile emergency clientconnection
medicalInfoNew 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.

Parameters
guidGUID identifying the mobile emergency clientconnection
userInfoNew 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.

Parameters
guidGUID identifying the mobile emergency clientconnection
requestTypeSelected 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.

Parameters
guidGUID identifying the mobile emergency client connection
instrumentMeasurement instrument
measurementDataMeasurement 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.

Parameters
guidGUID identifying the mobile emergency clientconnection
mediaInfoDescription of the media
mediaDataMedia data bytes

Implements IWcfMobileService.


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