sharp-chat/SharpChat.Common/Sessions/ISession.cs

21 lines
558 B
C#

using SharpChat.Events;
using SharpChat.Protocol;
using SharpChat.Users;
using System;
using System.Net;
namespace SharpChat.Sessions {
public interface ISession : IEventHandler, IEquatable<ISession> {
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);
}
}