AutoDiscoveryServerProperties.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. ServerURLs = "127.0.0.1:8000";
  14. GoogleAPIKey = "";
  15. }
  16. [TextBoxEditor]
  17. [EditorSequence(1)]
  18. public string DisplayName { get; set; }
  19. [NullEditor]
  20. [Obsolete("Replaced with ServerURLs", true)]
  21. public string ServerURL { get; set; }
  22. [NullEditor]
  23. [Obsolete("Replaced with ServerURLs", true)]
  24. public int ServerPort { get; set; }
  25. [TextBoxEditor]
  26. [EditorSequence(2)]
  27. public String ServerURLs { get; set; }
  28. [FolderEditor(Environment.SpecialFolder.CommonDocuments)]
  29. [EditorSequence(9)]
  30. public string LibraryLocation { get; set; }
  31. [TextBoxEditor]
  32. [EditorSequence(10)]
  33. public string GoogleAPIKey { get; set; }
  34. public override ServerType Type()
  35. {
  36. return ServerType.AutoDiscovery;
  37. }
  38. }
  39. }