UserContext.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using MECF.Framework.Common.CommonData;
  3. namespace MECF.Framework.Common.Account.Extends
  4. {
  5. [Serializable]
  6. public class UserContext: NotifiableItem
  7. {
  8. public string Address { get; set; }
  9. public string HostName { get; set; }
  10. private string _loginName;
  11. public string LoginName
  12. {
  13. get { return this._loginName; }
  14. set { this._loginName = value; this.InvokePropertyChanged("LoginName"); }
  15. }
  16. private string _rolename;
  17. public string RoleName
  18. {
  19. get { return this._rolename; }
  20. set { this._rolename = value; this.InvokePropertyChanged("RoleName"); }
  21. }
  22. public string RoleID { get; set; }
  23. public string LoginId { get; set; }
  24. public Role Role { get; set; }
  25. public DateTime LoginTime { get; set; }
  26. public DateTime LastAccessTime { get; set; }
  27. public int Token { get; set; }
  28. public string Language { get; private set; }
  29. public bool IsLogin { get; set; }
  30. }
  31. }