-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIDataSource.cs
More file actions
38 lines (29 loc) · 822 Bytes
/
IDataSource.cs
File metadata and controls
38 lines (29 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System.Threading;
using SolarUseOptimiser.Models;
using SolarUseOptimiser.Models.ChargeHQ;
namespace SolarUseOptimiser
{
public interface IDataSource
{
string Name
{
get;
}
double PollRate
{
get;
}
int DeviceCount
{
get;
}
bool IsInitialised
{
get;
}
Task<IDataSource> InitialiseAsync(CancellationTokenSource cancellationTokenSource);
Task<CommandResponse> Authenticate(CancellationTokenSource cancellationTokenSource);
SiteMeterPush GetSiteMeterData(string userId, CancellationTokenSource cancellationTokenSource);
Task Restart(CancellationTokenSource cancellationTokenSource);
}
}