CfqOptions.cs 780 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Ips.Library.Entity
  7. {
  8. public class CfqOptions
  9. {
  10. public CfqOptions()
  11. {
  12. }
  13. public CfqOptions(string cfqAddr, long freqPoint)
  14. {
  15. CfqAddr = cfqAddr;
  16. FreqPoint = freqPoint;
  17. var addrInfo = CfqAddrInfo.Parse(cfqAddr);
  18. Addr = addrInfo.Addr;
  19. Port = addrInfo.Port;
  20. ChNum = addrInfo.ChNum;
  21. }
  22. public string CfqAddr { get; set; }
  23. public long FreqPoint { get; set; }
  24. public string Addr { get; private set; }
  25. public int Port { get; private set; }
  26. public int ChNum { get; private set; }
  27. }
  28. }