Projekt

Obecné

Profil

« Předchozí | Další » 

Revize e6a01bd8

Přidáno uživatelem Pultak před více než 2 roky(ů)

re #9712 Added documentation of the newly implemented methods + refactoring

Zobrazit rozdíly:

ld_client/LDClient/detection/IInfoFetcher.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
1
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 {
6 8

  
7
namespace LDClient.detection {
8
    
9 9
    /// <summary>
10
    /// This interface defines the functionality of an info fetcher which
11
    /// takes care of sending commands to the debugger. 
10
    /// Returns the head serial number of the debugger.
12 11
    /// </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; }
12
    public string HeadSerialNumber { get; set; }
19 13
        
20
        /// <summary>
21
        /// Returns the body serial number of the debugger.
22
        /// </summary>
23
        public string BodySerialNumber { get; set; }
14
    /// <summary>
15
    /// Returns the body serial number of the debugger.
16
    /// </summary>
17
    public string BodySerialNumber { get; set; }
24 18

  
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
}
19
    /// <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
}

Také k dispozici: Unified diff