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; } = "en";
        public static string timeZone { get; set; } = "utc";
        public string Token { get; set; }

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