using System;
using System.Collections.ObjectModel;
using System.Threading.Tasks;

namespace RX_Sample._00_API
{
    public interface IAppCallService : IDisposable
    {
        Task<ICall> StartCall(string extension);

        ReadOnlyCollection<ICall> Calls { get; }

        event EventHandler<ICall> CallStarted;

        event EventHandler<ICall> CallEnded;

        event EventHandler<ICall> IncommingCall;
    }
}
