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

22 lines
558 B
C#
Raw Normal View History

2022-08-30 15:05:29 +00:00
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);
}
}