GlobalInfo.cs 906 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace MTWorkHR.Core.Global
  7. {
  8. public class GlobalInfo
  9. {
  10. public string UserName { get; set; }
  11. public string UserId { get; set; }
  12. public UserTypeEnum UserType { get; set; }
  13. public long? CompanyId { get; set; }
  14. public static string lang { get; set; } = "en";
  15. public static string timeZone { get; set; } = "utc";
  16. public string Token { get; set; }
  17. public void SetValues(string UserName, string UserId, long? CompanyId, string token, string lang, string timeZone)
  18. {
  19. this.UserName = UserName;
  20. this.UserId = UserId;
  21. this.CompanyId = CompanyId;
  22. GlobalInfo.lang = lang;
  23. GlobalInfo.timeZone = timeZone;
  24. this.Token = token;
  25. }
  26. }
  27. }