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

Class for call center client connection. Contains a reference to the WCF callback channel for the connected client and the identifying GUID for the connected client. Contains the callback methods for publishing data to the connected client. More...

Public Member Functions

 CallCenterConnection (CallCenterController callCenterController)
 Initializes a new CallCenterConnection instance that reports changes its connection state to the provided CallCenterController. More...
 
void PushUpdatedConnections (List< ConnectionDto > updatedConnections)
 Sends a list of ConnectioDtos to the call center client represented by this instance. If the operation times out, this instance is marked as HasTimeOut = true, and subsequent calls to this method will not try to do a callback to the client before HasTimeOut has been set to false again. More...
 
void PushAudioVideo (string sourceGuid, MediaInformationDto mediaInfo, byte[] mediaData)
 Sends audio/video received from emergency mobile client to the call center client represented by this instance. If the operation times out, this instance is marked as HasTimeOut = true, and subsequent calls to this method will not try to do a callback to the client before HasTimeOut has been set to false again. More...
 
void PushMeasurementData (string sourceGuid, MeasurementInstrumentDto instrument, byte[] measurementData)
 Sends measurement data from emergency mobile client to the call center client represented by this instance. If the operation times out, this instance is marked as HasTimeOut = true, and subsequent calls to this method will not try to do a callback to the client before HasTimeOut has been set to false again. More...
 

Properties

string Id [get, set]
 Gets or sets the primary key identifying this call center connection in the database. More...
 
string ConnectionGuid [get, set]
 Gets or sets the Guid used to identify this instance in the system. More...
 
string UserName [get, set]
 Gets or sets the identifying user name for this client. More...
 
string Password [get, set]
 Gets or sets the password for this client, More...
 
IWcfCallCenterCallback ClientCallbackChannel [get, set]
 Gets or sets the IWcfCallCenterCallback instance used for client callbacks. More...
 
Boolean IsInactive [get, set]
 True, if a callback attempt for this connection has time out or the client has explicitly disconnected. New callbacks will not be performed on a timed out connection. False for all active connections. More...
 

Detailed Description

Class for call center client connection. Contains a reference to the WCF callback channel for the connected client and the identifying GUID for the connected client. Contains the callback methods for publishing data to the connected client.

<author>Veli-Mikko Puupponen</author>

Constructor & Destructor Documentation

CallCenterConnection ( CallCenterController  callCenterController)

Initializes a new CallCenterConnection instance that reports changes its connection state to the provided CallCenterController.

Parameters
callCenterControllerCallCenterController instance to which this instance reports changes in its connection state

Member Function Documentation

void PushAudioVideo ( string  sourceGuid,
MediaInformationDto  mediaInfo,
byte[]  mediaData 
)

Sends audio/video received from emergency mobile client to the call center client represented by this instance. If the operation times out, this instance is marked as HasTimeOut = true, and subsequent calls to this method will not try to do a callback to the client before HasTimeOut has been set to false again.

Parameters
sourceGuidGUID of the originating mobile emergency client connection
mediaInfoDescription of the media
mediaDataMedia data
void PushMeasurementData ( string  sourceGuid,
MeasurementInstrumentDto  instrument,
byte[]  measurementData 
)

Sends measurement data from emergency mobile client to the call center client represented by this instance. If the operation times out, this instance is marked as HasTimeOut = true, and subsequent calls to this method will not try to do a callback to the client before HasTimeOut has been set to false again.

Parameters
sourceGuidGUID of the originating mobile emergency client connection
instrumentInstrument producing the data
measurementDataMeasurement data
void PushUpdatedConnections ( List< ConnectionDto updatedConnections)

Sends a list of ConnectioDtos to the call center client represented by this instance. If the operation times out, this instance is marked as HasTimeOut = true, and subsequent calls to this method will not try to do a callback to the client before HasTimeOut has been set to false again.

Parameters
updatedConnectionsList of updated ConnectioDtos

Property Documentation

IWcfCallCenterCallback ClientCallbackChannel
getset

Gets or sets the IWcfCallCenterCallback instance used for client callbacks.

string ConnectionGuid
getset

Gets or sets the Guid used to identify this instance in the system.

string Id
getset

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

Boolean IsInactive
getset

True, if a callback attempt for this connection has time out or the client has explicitly disconnected. New callbacks will not be performed on a timed out connection. False for all active connections.

string Password
getset

Gets or sets the password for this client,

string UserName
getset

Gets or sets the identifying user name for this client.


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