C# Class JetstreamLaunchpad.DAL.DBDevice

Inheritance: TersoConnectEntity, IDisposable
Afficher le fichier Open project: tersosolutions/JetstreamSDK-.NET_Launchpad Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

DeleteDevice() public méthode

Method to delete device
public DeleteDevice ( int deviceId ) : void
deviceId int
Résultat void

Dispose() public méthode

Function is used to dispose unused objects.
public Dispose ( ) : void
Résultat void

GetDeviceByDeviceId() public méthode

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

GetDeviceById() public méthode

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

GetDeviceByLogicalDeviceId() public méthode

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

GetDeviceInventoriesList() public méthode

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

GetDeviceList() public méthode

Method to get device list
public GetDeviceList ( int sensorTimeWindow ) : IEnumerable
sensorTimeWindow int
Résultat IEnumerable

GetDeviceModelByLogicalDeviceId() public méthode

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

GetDevicesList() public méthode

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
Résultat List

GetFilterDeviceList() public méthode

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

SaveDevice() public méthode

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

UpdateDevice() public méthode

Method to update device
public UpdateDevice ( DeviceModel deviceMl ) : int
deviceMl JetstreamLaunchpad.Entity.DeviceModel
Résultat int