PostableSettings.cs 868 B

123456789101112131415161718192021222324252627282930
  1. using InABox.Configuration;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace InABox.Core
  6. {
  7. /// <summary>
  8. /// The global settings for an <see cref="IPostable"/>.
  9. /// </summary>
  10. public class PostableSettings : BaseObject, IGlobalConfigurationSettings
  11. {
  12. [NullEditor]
  13. public string PostableType { get; set; } = "";
  14. /// <summary>
  15. /// What kind of <see cref="IPoster{TEntity, TSettings}"/> is to be used, globally; this will be a type name.
  16. /// </summary>
  17. [ComboLookupEditor(typeof(PosterTypeLookup))]
  18. [EditorSequence(1)]
  19. public string? PosterType { get; set; }
  20. [TextBoxEditor]
  21. [EditorSequence(2)]
  22. public string? ButtonName { get; set; }
  23. [EditorSequence(3)]
  24. public ImageDocumentLink Thumbnail { get; set; }
  25. }
  26. }