AutoDiscoveryServerProperties.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using Comal.Classes;
  3. using InABox.Core;
  4. namespace PRSServer
  5. {
  6. public class AutoDiscoveryServerProperties : ServerProperties
  7. {
  8. public AutoDiscoveryServerProperties()
  9. {
  10. DisplayName = "PRS";
  11. ServerURL = "http://127.0.0.1";
  12. ServerPort = 8000;
  13. GoogleAPIKey = "";
  14. }
  15. [TextBoxEditor]
  16. [EditorSequence(1)]
  17. public string DisplayName { get; set; }
  18. [TextBoxEditor]
  19. [EditorSequence(2)]
  20. public string ServerURL { get; set; }
  21. [IntegerEditor]
  22. [EditorSequence(3)]
  23. public int ServerPort { get; set; }
  24. [FolderEditor(Environment.SpecialFolder.CommonDocuments)]
  25. [EditorSequence(9)]
  26. public string LibraryLocation { get; set; }
  27. [TextBoxEditor]
  28. [EditorSequence(10)]
  29. public string GoogleAPIKey { get; set; }
  30. public override ServerType Type()
  31. {
  32. return ServerType.AutoDiscovery;
  33. }
  34. }
  35. }