Projekt

Obecné

Profil

Stáhnout (700 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 afafbc22 Pultak
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6
using LDClient.network.data;
7
8
namespace LDClient.network {
9 a155a763 silhavyj
    
10
    /// <summary>
11
    /// This interface defines the functionality of a HTTP client
12
    /// through which the API client sends data (payloads) to the server.
13
    /// </summary>
14 afafbc22 Pultak
    public interface IHttpClient {
15
16 a155a763 silhavyj
        /// <summary>
17
        /// Asynchronically sends data in JSON format to the server.
18
        /// </summary>
19
        /// <param name="payload">Payload to be sent to the server</param>
20
        /// <returns></returns>
21 afafbc22 Pultak
        public Task<HttpResponseMessage> PostAsJsonAsync(Payload payload);
22
    }
23
}