aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Transport/Web/IWebTransportClient.cs
blob: b1645401a3b9bf010062b40c503fc945d06a9d32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using Google.Protobuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.Transport.Web
{
    public interface IWebTransportClient : IDisposable
    {
        String AuthenticationToken { get; set; }
        Task<Response> PostProto<Request, Response>(String url, Request request) where Request : class, IMessage where Response : class, IMessage;
        Task<Response> PostJson<Request, Response>(String url, Request request) where Request : class, IWebRequestMessage where Response : class, IWebResponseMessage;
    }
}