123456789101112131415161718192021222324252627282930313233 |
- using GeneralData;
- namespace EEMSUIClient.Models;
- public class DeviceInfo
- {
- public DeviceModel DeviceModel { get; set; }
- public string? DeviceSubModel { get; set; }
- public string? DeviceName { get; set; }
- public string? Position { get; set; }
- public string? SoftwareVersion { get; set; }
- public Guid? Guid { get; set; }
- public string? IP { get; set; }
- public ushort Port { get; set; }
- public string? DBConnectionString { get; set; }
- public Device.DeviceInfo Convert()
- {
- return new Device.DeviceInfo()
- {
- DeviceModel = this.DeviceModel,
- DeviceSubModel = this.DeviceSubModel,
- DeviceName = this.DeviceName,
- Position = this.Position,
- SoftwareVersion = this.SoftwareVersion,
- Guid = this.Guid,
- IP = this.IP ?? string.Empty,
- Port = this.Port,
- DBConnectionString = this.DBConnectionString
- };
- }
- }
|