Projekt

Obecné

Profil

Stáhnout (1.05 KB) Statistiky
| Větev: | Tag: | Revize:
1
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
    
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
    public interface IInfoFetcher {
14

    
15
        /// <summary>
16
        /// Returns the head serial number of the debugger.
17
        /// </summary>
18
        public string HeadSerialNumber { get; set; }
19
        
20
        /// <summary>
21
        /// Returns the body serial number of the debugger.
22
        /// </summary>
23
        public string BodySerialNumber { get; set; }
24

    
25
        /// <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
        public Task<bool> FetchDataAsync();
32
    }
33
}
(2-2/7)