Projekt

Obecné

Profil

Stáhnout (700 Bajtů) 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
using LDClient.network.data;
7

    
8
namespace LDClient.network {
9
    
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
    public interface IHttpClient {
15

    
16
        /// <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
        public Task<HttpResponseMessage> PostAsJsonAsync(Payload payload);
22
    }
23
}
(4-4/4)