2022-10-03 17:04:59 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Yi.Framework.WebCore.SignalRHub
|
|
|
|
|
|
{
|
|
|
|
|
|
public class OnlineUser
|
|
|
|
|
|
{
|
2022-10-03 18:27:37 +08:00
|
|
|
|
|
|
|
|
|
|
public OnlineUser()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
public OnlineUser(string connnectionId)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.ConnnectionId = connnectionId;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-10-03 17:04:59 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 客户端连接Id
|
|
|
|
|
|
/// </summary>
|
2022-10-03 18:27:37 +08:00
|
|
|
|
public string ConnnectionId { get; }
|
2022-10-03 17:04:59 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 用户id
|
|
|
|
|
|
/// </summary>
|
2022-10-03 18:27:37 +08:00
|
|
|
|
public long? UserId { get; set; }
|
|
|
|
|
|
public string UserName { get; set; }
|
2022-10-03 17:04:59 +08:00
|
|
|
|
public DateTime LoginTime { get; set; }
|
2022-10-03 18:27:37 +08:00
|
|
|
|
public string Ipaddr { get; set; }
|
|
|
|
|
|
public string LoginLocation { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string Os { get; set; }
|
|
|
|
|
|
public string Browser { get; set; }
|
|
|
|
|
|
|
2022-10-03 17:04:59 +08:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|