C# Class JetstreamLaunchpadService.JetstreamEventRepository

This is the class that interacts with the database
Mostrar archivo Open project: tersosolutions/JetstreamSDK-.NET_Launchpad

Public Methods

Method Description
GetDevices ( ) : List

Get list of all the divces in local database

GetItemsWithLastStatusInInventory ( string logicalDeviceId ) : List
GetUser ( ) : List

Get List of all the users in the local database

RecordCommandCompletionEvent ( string commandId, string outputType, string outputName, string outputValue ) : void

Record Command Completion data to the database

RecordCommandQueuedEvent ( string commandId, string commandName, string userName ) : void

Record Command Queued data to the database

RecordHeartbeat ( TersoSolutions heartbeatEvent ) : void

Routine to save heartbeat data to the database

RecordInventory ( string logicalDeviceId, string tagEpc, string currentState, System.DateTime stateDate, string passId ) : void

Records the inventory data to the database

RecordSensorReading ( string logicalDeviceId, string readingName, string readingValue, System.DateTime readingTime ) : void

Records sensor reading data to the database

Method Details

GetDevices() public static method

Get list of all the divces in local database
public static GetDevices ( ) : List
return List

GetItemsWithLastStatusInInventory() public static method

public static GetItemsWithLastStatusInInventory ( string logicalDeviceId ) : List
logicalDeviceId string
return List

GetUser() public static method

Get List of all the users in the local database
public static GetUser ( ) : List
return List

RecordCommandCompletionEvent() public static method

Record Command Completion data to the database
public static RecordCommandCompletionEvent ( string commandId, string outputType, string outputName, string outputValue ) : void
commandId string
outputType string
outputName string
outputValue string
return void

RecordCommandQueuedEvent() public static method

Record Command Queued data to the database
public static RecordCommandQueuedEvent ( string commandId, string commandName, string userName ) : void
commandId string
commandName string
userName string
return void

RecordHeartbeat() public static method

Routine to save heartbeat data to the database
public static RecordHeartbeat ( TersoSolutions heartbeatEvent ) : void
heartbeatEvent TersoSolutions
return void

RecordInventory() public static method

Records the inventory data to the database
public static RecordInventory ( string logicalDeviceId, string tagEpc, string currentState, System.DateTime stateDate, string passId ) : void
logicalDeviceId string
tagEpc string
currentState string
stateDate System.DateTime
passId string
return void

RecordSensorReading() public static method

Records sensor reading data to the database
public static RecordSensorReading ( string logicalDeviceId, string readingName, string readingValue, System.DateTime readingTime ) : void
logicalDeviceId string
readingName string
readingValue string
readingTime System.DateTime
return void