12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using System;
- using Comal.Classes;
- using InABox.Clients;
- using InABox.Core;
- namespace PRSServer
- {
- public class AutoDiscoveryServerProperties : ServerProperties
- {
- public AutoDiscoveryServerProperties()
- {
- DisplayName = "PRS";
- //ServerURL = "http://127.0.0.1";
- //ServerPort = 8000;
- ServerURLs = "127.0.0.1:8000";
- GoogleAPIKey = "";
- }
- [TextBoxEditor]
- [EditorSequence(1)]
- public string DisplayName { get; set; }
- [NullEditor]
- [Obsolete("Replaced with ServerURLs", true)]
- public string ServerURL { get; set; }
- [NullEditor]
- [Obsolete("Replaced with ServerURLs", true)]
- public int ServerPort { get; set; }
-
- [TextBoxEditor]
- [EditorSequence(2)]
- public String ServerURLs { get; set; }
- [EnumLookupEditor(typeof(SerializerProtocol))]
- [EditorSequence(3)]
- public SerializerProtocol Protocol { get; set; } = SerializerProtocol.RPC;
-
- [FolderEditor(Environment.SpecialFolder.CommonDocuments)]
- [EditorSequence(9)]
- public string LibraryLocation { get; set; }
- [TextBoxEditor]
- [EditorSequence(10)]
- public string GoogleAPIKey { get; set; }
- public override ServerType Type()
- {
- return ServerType.AutoDiscovery;
- }
- }
- }
|