using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MTWorkHR.Core.Global
{
    public class GlobalInfo
    {
        public string UserName { get; set; }
        public string UserId { get; set; }
        public UserTypeEnum UserType { get; set; }
        public long? CompanyId { get; set; }
        public static string lang { get; set; }
        public string Token { get; set; }

        public void SetValues(string UserName, string UserId, long? CompanyId, string token, string lang)
        {
            this.UserName = UserName;
            this.UserId = UserId;
            this.CompanyId = CompanyId;
            GlobalInfo.lang = lang;
            this.Token = token;
        }
    }
}