1 |
e6a01bd8
|
Pultak
|
namespace LDClient.detection;
|
2 |
|
|
|
3 |
|
|
/// <summary>
|
4 |
|
|
/// This interface defines the functionality of an info fetcher which
|
5 |
|
|
/// takes care of sending commands to the debugger.
|
6 |
|
|
/// </summary>
|
7 |
|
|
public interface IInfoFetcher {
|
8 |
0932a9e2
|
Pultak
|
|
9 |
f63d5489
|
silhavyj
|
/// <summary>
|
10 |
e6a01bd8
|
Pultak
|
/// Returns the head serial number of the debugger.
|
11 |
f63d5489
|
silhavyj
|
/// </summary>
|
12 |
e6a01bd8
|
Pultak
|
public string HeadSerialNumber { get; set; }
|
13 |
f63d5489
|
silhavyj
|
|
14 |
e6a01bd8
|
Pultak
|
/// <summary>
|
15 |
|
|
/// Returns the body serial number of the debugger.
|
16 |
|
|
/// </summary>
|
17 |
|
|
public string BodySerialNumber { get; set; }
|
18 |
0932a9e2
|
Pultak
|
|
19 |
e6a01bd8
|
Pultak
|
/// <summary>
|
20 |
|
|
/// Fetches data from the debugger. It sends the commands defined
|
21 |
|
|
/// in the appsettings.json file to the debugger and tries to
|
22 |
|
|
/// parse the .txt (contains the serial numbers).
|
23 |
|
|
/// </summary>
|
24 |
|
|
/// <returns>True, if data was fetched successfully. False otherwise.</returns>
|
25 |
|
|
public Task<bool> FetchDataAsync();
|
26 |
|
|
}
|