using System;
using System.Collections.Generic;
using System.Text;

namespace ZR.Admin.WebApi.Hubs
{
    public class OnlineUsers
    {
        /// <summary>
        /// 客户端连接Id
        /// </summary>
        public string ConnnectionId { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public long? Userid { get; set; }
        public string Name { get; set; }
        public DateTime LoginTime { get; set; }
        public string UserIP { get; set; }
        public string Location { get; set; }

        public OnlineUsers(string clientid, string name, long? userid, string userip)
        {
            ConnnectionId = clientid;
            Name = name;
            LoginTime = DateTime.Now;
            Userid = userid;
            UserIP = userip;
        }
    }
}
