using System;
using TdLib;

namespace Tel.Egram.Services.Settings
{
    public interface IProxyManager
    {
        IObservable<TdApi.Proxy[]> GetAllProxies();

        IObservable<TdApi.Proxy> AddProxy(TdApi.Proxy proxy);

        IObservable<TdApi.Proxy> UpdateProxy(TdApi.Proxy proxy);

        IObservable<TdApi.Ok> RemoveProxy(TdApi.Proxy proxy);

        IObservable<TdApi.Ok> EnableProxy(TdApi.Proxy proxy);

        IObservable<TdApi.Ok> DisableProxy();
    }
}