AutoDiscoveryServerProperties.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. using Comal.Classes;
  3. using InABox.Clients;
  4. using InABox.Core;
  5. namespace PRSServer
  6. {
  7. public class AutoDiscoveryServerProperties : ServerProperties
  8. {
  9. public AutoDiscoveryServerProperties()
  10. {
  11. DisplayName = "PRS";
  12. //ServerURL = "http://127.0.0.1";
  13. //ServerPort = 8000;
  14. ServerURLs = "127.0.0.1:8000";
  15. GoogleAPIKey = "";
  16. }
  17. [TextBoxEditor]
  18. [EditorSequence(1)]
  19. public string DisplayName { get; set; }
  20. [NullEditor]
  21. [Obsolete("Replaced with ServerURLs", true)]
  22. public string ServerURL { get; set; }
  23. [NullEditor]
  24. [Obsolete("Replaced with ServerURLs", true)]
  25. public int ServerPort { get; set; }
  26. [TextBoxEditor]
  27. [EditorSequence(2)]
  28. public String ServerURLs { get; set; }
  29. [EnumLookupEditor(typeof(SerializerProtocol))]
  30. [EditorSequence(3)]
  31. public SerializerProtocol Protocol { get; set; } = SerializerProtocol.RPC;
  32. [FolderEditor(Environment.SpecialFolder.CommonDocuments)]
  33. [EditorSequence(9)]
  34. public string LibraryLocation { get; set; }
  35. [TextBoxEditor]
  36. [EditorSequence(10)]
  37. public string GoogleAPIKey { get; set; }
  38. public override ServerType Type()
  39. {
  40. return ServerType.AutoDiscovery;
  41. }
  42. }
  43. }