UserSettings.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Configuration;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace HTEXMark
  8. {
  9. public sealed class UserSettings : ApplicationSettingsBase
  10. {
  11. private static UserSettings _defaultInstance = ((UserSettings)(Synchronized(new UserSettings())));
  12. public static UserSettings Default
  13. {
  14. get { return _defaultInstance; }
  15. }
  16. [UserScopedSetting()]
  17. [DefaultSettingValue("")]
  18. public string access_token
  19. {
  20. get { return (string)this["access_token"]; }
  21. set { this["access_token"] = value; }
  22. }
  23. [UserScopedSetting()]
  24. [DefaultSettingValue("")]
  25. public string id_token
  26. {
  27. get { return (string)this["id_token"]; }
  28. set { this["id_token"] = value; }
  29. }
  30. [UserScopedSetting()]
  31. [DefaultSettingValue("")]
  32. public string x_auth_token
  33. {
  34. get { return (string)this["x_auth_token"]; }
  35. set { this["x_auth_token"] = value; }
  36. }
  37. [UserScopedSetting()]
  38. [DefaultSettingValue("false")]
  39. public bool is_login
  40. {
  41. get { return (bool)this["is_login"]; }
  42. set { this["is_login"] = value; }
  43. }
  44. }
  45. }