using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ips.Library.Entity { public class CfqOptions { public CfqOptions() { } public CfqOptions(string cfqAddr, long freqPoint) { CfqAddr = cfqAddr; FreqPoint = freqPoint; var addrInfo = CfqAddrInfo.Parse(cfqAddr); Addr = addrInfo.Addr; Port = addrInfo.Port; ChNum = addrInfo.ChNum; } public string CfqAddr { get; set; } public long FreqPoint { get; set; } public string Addr { get; private set; } public int Port { get; private set; } public int ChNum { get; private set; } } }