GPSServerProperties.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using InABox.Core;
  2. namespace PRSServer
  3. {
  4. public enum DumpFormat
  5. {
  6. None,
  7. Raw,
  8. SemiParsed
  9. }
  10. public class GPSServerProperties : ServerProperties
  11. {
  12. public GPSServerProperties()
  13. {
  14. ListenPort = 7999;
  15. DumpFormat = DumpFormat.None;
  16. UpdateTimer = 2000;
  17. }
  18. [ComboLookupEditor(typeof(DatabaseServerLookupGenerator))]
  19. [EditorSequence(1)]
  20. public string Server { get; set; }
  21. [IntegerEditor]
  22. [EditorSequence(2)]
  23. public int ListenPort { get; set; }
  24. [IntegerEditor]
  25. [EditorSequence(3)]
  26. public int SigfoxListenPort { get; set; }
  27. [EnumLookupEditor(typeof(DumpFormat))]
  28. [EditorSequence(4)]
  29. public DumpFormat DumpFormat { get; set; }
  30. [FileNameEditor(RequireExisting = false, AllowView = false)]
  31. [EditorSequence(5)]
  32. public string DumpFile { get; set; }
  33. [IntegerEditor]
  34. [EditorSequence(6)]
  35. [Caption("Update Timer (ms)")]
  36. public int UpdateTimer { get; set; }
  37. public override ServerType Type()
  38. {
  39. return ServerType.GPS;
  40. }
  41. }
  42. }