sharp-chat/SharpChat.Common/Sessions/ISession.cs
2022-08-30 17:05:29 +02:00

22 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);
}
}