IOT Dash
Public Member Functions | List of all members
IotDash.Services.ModelStore.HistoryEntryStore Class Reference
Inheritance diagram for IotDash.Services.ModelStore.HistoryEntryStore:
Inheritance graph
[legend]
Collaboration diagram for IotDash.Services.ModelStore.HistoryEntryStore:
Collaboration graph
[legend]

Public Member Functions

 HistoryEntryStore (DataContext db)
 
async Task< IEnumerable< HistoryEntry > > GetPagedHistoryAsync (IotInterface iface, HistoryRequest request)
 
async Task< bool > SaveChangesAsync ()
 
async Task CreateAsync (HistoryEntry entry)
 
Task< IEnumerable< HistoryEntry > > GetPagedHistoryAsync (IotInterface iface, HistoryRequest request)
 
Task CreateAsync (HistoryEntry entry)
 
Task< bool > SaveChangesAsync ()
 

Member Function Documentation

◆ CreateAsync()

async Task IotDash.Services.ModelStore.HistoryEntryStore.CreateAsync ( HistoryEntry  entry)
inline

Add new measurement to the database.

Parameters
entryThe measurement to add.
Returns
A task which represents the async operation.

Implements IotDash.Services.IHistoryStore.

◆ GetPagedHistoryAsync()

async Task< IEnumerable< HistoryEntry > > IotDash.Services.ModelStore.HistoryEntryStore.GetPagedHistoryAsync ( IotInterface  iface,
HistoryRequest  request 
)
inline

Get a series of measurements over a continuous interval of time.

Parameters
ifaceThe interface which to which the measurements belong.
requestThe parameters of this request.
Returns
An enumerable of the retrieved measurements.

Implements IotDash.Services.IHistoryStore.

◆ SaveChangesAsync()

async Task< bool > IotDash.Services.ModelStore.HistoryEntryStore.SaveChangesAsync ( )
inline

Save changes to the database.

Returns
A task that represents the asynchronous save operation. The task result is false, when no entities were modified.

Implements IotDash.Services.IModelSaver.


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