protected GlobalConfigBase() { Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); Encoding = Encoding.GetEncoding("GBK"); BusinessTypeFactory = new JT809BusinessTypeFactory(); SubBusinessTypeFactory = new JT809SubBusinessTypeFactory(); FormatterFactory = new JT809FormatterFactory(); }
protected JT809GlobalConfigBase(JT809Version version = JT809Version.JTT2011) { Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); Encoding = Encoding.GetEncoding("GBK"); BusinessTypeFactory = new JT809BusinessTypeFactory(); SubBusinessTypeFactory = new JT809SubBusinessTypeFactory(); FormatterFactory = new JT809FormatterFactory(); Version = version; }
protected JT809GlobalConfigBase(JT809Version version = JT809Version.JTT2011) { Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); Encoding = Encoding.GetEncoding("GBK"); BusinessTypeFactory = new JT809BusinessTypeFactory(); SubBusinessTypeFactory = new JT809SubBusinessTypeFactory(); FormatterFactory = new JT809FormatterFactory(); Version = version; AnalyzeCallbacks = new Dictionary <ushort, JT808AnalyzeCallback>(); }