12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using InABox.Core;
- namespace PRSServer
- {
- public enum DumpFormat
- {
- None,
- Raw,
- SemiParsed
- }
- public class GPSServerProperties : ServerProperties
- {
- public GPSServerProperties()
- {
- ListenPort = 7999;
- DumpFormat = DumpFormat.None;
- UpdateTimer = 2000;
- }
- [ComboLookupEditor(typeof(DatabaseServerLookupGenerator))]
- [EditorSequence(1)]
- public string Server { get; set; }
- [IntegerEditor]
- [EditorSequence(2)]
- public int ListenPort { get; set; }
- [IntegerEditor]
- [EditorSequence(3)]
- public int SigfoxListenPort { get; set; }
- [EnumLookupEditor(typeof(DumpFormat))]
- [EditorSequence(4)]
- public DumpFormat DumpFormat { get; set; }
- [FileNameEditor(RequireExisting = false, AllowView = false)]
- [EditorSequence(5)]
- public string DumpFile { get; set; }
-
- [IntegerEditor]
- [EditorSequence(6)]
- [Caption("Update Timer (ms)")]
- public int UpdateTimer { get; set; }
- public override ServerType Type()
- {
- return ServerType.GPS;
- }
- }
- }
|