SettingInfo.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System;
  2. namespace Abp.Configuration
  3. {
  4. /// <summary>
  5. /// Represents a setting information.
  6. /// </summary>
  7. [Serializable]
  8. public class SettingInfo
  9. {
  10. /// <summary>
  11. /// TenantId for this setting.
  12. /// TenantId is null if this setting is not Tenant level.
  13. /// </summary>
  14. public int? TenantId { get; set; }
  15. /// <summary>
  16. /// UserId for this setting.
  17. /// UserId is null if this setting is not user level.
  18. /// </summary>
  19. public long? UserId { get; set; }
  20. /// <summary>
  21. /// Unique name of the setting.
  22. /// </summary>
  23. public string Name { get; set; }
  24. /// <summary>
  25. /// Value of the setting.
  26. /// </summary>
  27. public string Value { get; set; }
  28. /// <summary>
  29. /// Creates a new <see cref="SettingInfo"/> object.
  30. /// </summary>
  31. public SettingInfo()
  32. {
  33. }
  34. /// <summary>
  35. /// Creates a new <see cref="SettingInfo"/> object.
  36. /// </summary>
  37. /// <param name="tenantId">TenantId for this setting. TenantId is null if this setting is not Tenant level.</param>
  38. /// <param name="userId">UserId for this setting. UserId is null if this setting is not user level.</param>
  39. /// <param name="name">Unique name of the setting</param>
  40. /// <param name="value">Value of the setting</param>
  41. public SettingInfo(int? tenantId, long? userId, string name, string value)
  42. {
  43. TenantId = tenantId;
  44. UserId = userId;
  45. Name = name;
  46. Value = value;
  47. }
  48. }
  49. }