C# Class JetstreamLaunchpad.DAL.DBDevice

Inheritance: TersoConnectEntity, IDisposable
Mostra file Open project: tersosolutions/JetstreamSDK-.NET_Launchpad Class Usage Examples

Public Methods

Method Description
CheckForDuplicateSerial ( int deviceId, string serial ) : int

Method to check for duplicate device with same serial

DeleteDevice ( int deviceId ) : void

Method to delete device

Dispose ( ) : void

Function is used to dispose unused objects.

GetDeviceByDeviceId ( int deviceId, int sensorTimeWindow ) : DeviceModel

Method to get device by deviceid

GetDeviceById ( int deviceId ) : DeviceModel

Method to get the device by id for deletion

GetDeviceByLogicalDeviceId ( string logicalDeviceId, int sensorTimeWindow ) : DeviceModel

Method to get device by deviceid

GetDeviceInventoriesList ( string logicalDeviceId ) : DeviceModel

Method to get device by deviceid

GetDeviceList ( int sensorTimeWindow ) : IEnumerable

Method to get device list

GetDeviceModelByLogicalDeviceId ( DeviceModel deviceMl ) : int

Method to get device by logical deviceid

GetDevicesList ( string searchText, int pageNumber, int pageSize, int sensorTimeWindow ) : List

Method to get the device list by page number and page size for server side paging

GetFilterDeviceList ( string searchText, int sensorTimeWindow ) : List

Method to get device list after applying filter of search text

SaveDevice ( DeviceModel deviceMl ) : int

Method to save device detail

UpdateDevice ( DeviceModel deviceMl ) : int

Method to update device

Private Methods

Method Description
Dispose ( bool disposing ) : void

Dispose(bool disposing) executes in two distinct scenarios. If disposing equals true, it will dispose managed and unmanaged resources. If disposing equals false, only unmanaged resources can be disposed.

GetTotalInventory ( string logicalDeviceId ) : List

Get Total list of items in the inventory

Method Details

CheckForDuplicateSerial() public method

Method to check for duplicate device with same serial
public CheckForDuplicateSerial ( int deviceId, string serial ) : int
deviceId int
serial string
return int

DeleteDevice() public method

Method to delete device
public DeleteDevice ( int deviceId ) : void
deviceId int
return void

Dispose() public method

Function is used to dispose unused objects.
public Dispose ( ) : void
return void

GetDeviceByDeviceId() public method

Method to get device by deviceid
public GetDeviceByDeviceId ( int deviceId, int sensorTimeWindow ) : DeviceModel
deviceId int
sensorTimeWindow int
return JetstreamLaunchpad.Entity.DeviceModel

GetDeviceById() public method

Method to get the device by id for deletion
public GetDeviceById ( int deviceId ) : DeviceModel
deviceId int
return JetstreamLaunchpad.Entity.DeviceModel

GetDeviceByLogicalDeviceId() public method

Method to get device by deviceid
public GetDeviceByLogicalDeviceId ( string logicalDeviceId, int sensorTimeWindow ) : DeviceModel
logicalDeviceId string
sensorTimeWindow int
return JetstreamLaunchpad.Entity.DeviceModel

GetDeviceInventoriesList() public method

Method to get device by deviceid
public GetDeviceInventoriesList ( string logicalDeviceId ) : DeviceModel
logicalDeviceId string
return JetstreamLaunchpad.Entity.DeviceModel

GetDeviceList() public method

Method to get device list
public GetDeviceList ( int sensorTimeWindow ) : IEnumerable
sensorTimeWindow int
return IEnumerable

GetDeviceModelByLogicalDeviceId() public method

Method to get device by logical deviceid
public GetDeviceModelByLogicalDeviceId ( DeviceModel deviceMl ) : int
deviceMl JetstreamLaunchpad.Entity.DeviceModel
return int

GetDevicesList() public method

Method to get the device list by page number and page size for server side paging
public GetDevicesList ( string searchText, int pageNumber, int pageSize, int sensorTimeWindow ) : List
searchText string
pageNumber int
pageSize int
sensorTimeWindow int
return List

GetFilterDeviceList() public method

Method to get device list after applying filter of search text
public GetFilterDeviceList ( string searchText, int sensorTimeWindow ) : List
searchText string
sensorTimeWindow int
return List

SaveDevice() public method

Method to save device detail
public SaveDevice ( DeviceModel deviceMl ) : int
deviceMl JetstreamLaunchpad.Entity.DeviceModel
return int

UpdateDevice() public method

Method to update device
public UpdateDevice ( DeviceModel deviceMl ) : int
deviceMl JetstreamLaunchpad.Entity.DeviceModel
return int