/// <summary> /// Serializes content from the writer /// </summary> public override void InternalFromBinary(IBinaryRawReader reader) { base.InternalFromBinary(reader); var version = VersionSerializationHelper.CheckVersionByte(reader, VERSION_NUMBER); if (version == 1) { FileName = reader.ReadString(); CoordType = (CoordType)reader.ReadInt(); OutputType = (OutputTypes)reader.ReadInt(); UserPreferences = new CSVExportUserPreferences(); UserPreferences.FromBinary(reader); var count = reader.ReadInt(); MappedMachines = new List <CSVExportMappedMachine>(count); for (var i = 0; i < count; i++) { MappedMachines.Add(new CSVExportMappedMachine { Uid = reader.ReadGuid() ?? Guid.Empty, InternalSiteModelMachineIndex = reader.ReadShort(), Name = reader.ReadString() }); } RestrictOutputSize = reader.ReadBoolean(); RawDataAsDBase = reader.ReadBoolean(); } }
private void Clear() { FileName = string.Empty; Filters = new FilterSet(new CombinedFilter()); CoordType = CoordType.Northeast; OutputType = OutputTypes.PassCountLastPass; UserPreferences = new CSVExportUserPreferences(); MappedMachines = new List <CSVExportMappedMachine>(); RestrictOutputSize = false; RawDataAsDBase = false; }
public CSVExportRequestArgument(Guid siteModelUid, IFilterSet filters, string fileName, CoordType coordType, OutputTypes outputType, CSVExportUserPreferences userPreferences, List <CSVExportMappedMachine> mappedMachines, bool restrictOutputSize, bool rawDataAsDBase) { ProjectID = siteModelUid; Filters = filters; FileName = fileName; CoordType = coordType; OutputType = outputType; UserPreferences = userPreferences; MappedMachines = mappedMachines; RestrictOutputSize = restrictOutputSize; RawDataAsDBase = rawDataAsDBase; }