using SharpChat.Events; using SharpChat.Protocol; using SharpChat.Users; using System; using System.Net; namespace SharpChat.Sessions { public interface ISession : IEventHandler, IEquatable { string SessionId { get; } string ServerId { get; } bool IsSecure { get; } DateTimeOffset LastPing { get; } ILocalUser User { get; } bool IsConnected { get; } IPAddress RemoteAddress { get; } IConnection Connection { get; set; } bool HasConnection(IConnection conn); } }