Files
tnb.server/common/Tnb.WebSockets/Models/WebSocketClient.cs
2023-05-31 10:19:05 +08:00

81 lines
1.7 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.Net.WebSockets;
using JNPF.Common.Enums;
using SqlSugar;
namespace JNPF.Extras.WebSockets.Models;
/// <summary>
/// WebSocket客户端信息.
/// </summary>
public class WebSocketClient
{
/// <summary>
/// 连接Id.
/// </summary>
public string ConnectionId { get; set; }
/// <summary>
/// 用户Id.
/// </summary>
public string UserId { get; set; }
/// <summary>
/// 用户账号.
/// </summary>
public string Account { get; set; }
/// <summary>
/// 头像.
/// </summary>
public string HeadIcon { get; set; }
/// <summary>
/// 用户名称.
/// </summary>
public string UserName { get; set; }
/// <summary>
/// 登录IP.
/// </summary>
public string LoginIpAddress { get; set; }
/// <summary>
/// 登录设备.
/// </summary>
public string LoginPlatForm { get; set; }
/// <summary>
/// 登录时间.
/// </summary>
public string LoginTime { get; set; }
/// <summary>
/// 连接字符串.
/// </summary>
public ConnectionConfigOptions ConnectionConfig { get; set; }
/// <summary>
/// 移动端.
/// </summary>
public bool IsMobileDevice { get; set; }
/// <summary>
/// 单一登录方式1后登录踢出先登录 2同时登录.
/// </summary>
public LoginMethod SingleLogin { get; set; }
/// <summary>
/// 单点登录标识.
/// </summary>
public string onlineTicket { get; set; }
/// <summary>
/// token.
/// </summary>
public string Token { get; set; }
/// <summary>
/// WebSocket对象.
/// </summary>
public WebSocket WebSocket { get; set; }
}