Projekt

Obecné

Profil

Stáhnout (1.05 KB) Statistiky
| Větev: | Tag: | Revize:
1 0932a9e2 Pultak
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6
7
namespace LDClient.detection {
8 f63d5489 silhavyj
    
9
    /// <summary>
10
    /// This interface defines the functionality of an info fetcher which
11
    /// takes care of sending commands to the debugger. 
12
    /// </summary>
13 0932a9e2 Pultak
    public interface IInfoFetcher {
14
15 f63d5489 silhavyj
        /// <summary>
16
        /// Returns the head serial number of the debugger.
17
        /// </summary>
18 0932a9e2 Pultak
        public string HeadSerialNumber { get; set; }
19 f63d5489 silhavyj
        
20
        /// <summary>
21
        /// Returns the body serial number of the debugger.
22
        /// </summary>
23 0932a9e2 Pultak
        public string BodySerialNumber { get; set; }
24
25 f63d5489 silhavyj
        /// <summary>
26
        /// Fetches data from the debugger. It sends the commands defined
27
        /// in the appsettings.json file to the debugger and tries to
28
        /// parse the .txt (contains the serial numbers).
29
        /// </summary>
30
        /// <returns>True, if data was fetched successfully. False otherwise.</returns>
31 0932a9e2 Pultak
        public Task<bool> FetchDataAsync();
32
    }
33
}