detect/detect.gui/Models/DeviceModel.cs

159 lines
3.4 KiB
C#
Raw Normal View History

2024-11-13 17:09:15 +08:00
using System;
using ReactiveUI;
namespace detect.gui.Models;
public class DeviceModel : ReactiveObject
{
private long? _id;
public long? Id
{
get => _id;
set => this.RaiseAndSetIfChanged(ref _id, value);
}
private string? _name;
public string? Name
{
get => _name;
set => this.RaiseAndSetIfChanged(ref _name, value);
}
private string? _deviceIp;
public string? DeviceIp
{
get => _deviceIp;
set => this.RaiseAndSetIfChanged(ref _deviceIp, value);
}
private string? _devicePort;
public string? DevicePort
{
get => _devicePort;
set => this.RaiseAndSetIfChanged(ref _devicePort, value);
}
private string? _deviceUsername;
public string? DeviceUsername
{
get => _deviceUsername;
set => this.RaiseAndSetIfChanged(ref _deviceUsername, value);
}
private string? _devicePassword;
public string? DevicePassword
{
get => _devicePassword;
set => this.RaiseAndSetIfChanged(ref _devicePassword, value);
}
private string? _deviceType;
public string? DeviceType
{
get => _deviceType;
set => this.RaiseAndSetIfChanged(ref _deviceType, value);
}
private string? _softwareVersion;
public string? SoftwareVersion
{
get => _softwareVersion;
set => this.RaiseAndSetIfChanged(ref _softwareVersion, value);
}
private string? _firmwareVersion;
public string? FirmwareVersion
{
get => _firmwareVersion;
set => this.RaiseAndSetIfChanged(ref _firmwareVersion, value);
}
private string? _algorithmVersion;
public string? AlgorithmVersion
{
get => _algorithmVersion;
set => this.RaiseAndSetIfChanged(ref _algorithmVersion, value);
}
private string? _modelVersion;
public string? ModelVersion
{
get => _modelVersion;
set => this.RaiseAndSetIfChanged(ref _modelVersion, value);
}
private string? _cameraIp;
public string? CameraIp
{
get => _cameraIp;
set => this.RaiseAndSetIfChanged(ref _cameraIp, value);
}
private string? _cameraUsername;
public string? CameraUsername
{
get => _cameraUsername;
set => this.RaiseAndSetIfChanged(ref _cameraUsername, value);
}
private string? _cameraPassword;
public string? CameraPassword
{
get => _cameraPassword;
set => this.RaiseAndSetIfChanged(ref _cameraPassword, value);
}
private string? _cameraRtsp;
public string? CameraRtsp
{
get => _cameraRtsp;
set => this.RaiseAndSetIfChanged(ref _cameraRtsp, value);
}
private string? _assayType;
public string? AssayType
{
get => _assayType;
set => this.RaiseAndSetIfChanged(ref _assayType, value);
}
private DateTime? _createTime;
public DateTime? CreateTime
{
get => _createTime;
set => this.RaiseAndSetIfChanged(ref _createTime, value);
}
private DateTime? _updateTime;
public DateTime? UpdateTime
{
get => _updateTime;
set => this.RaiseAndSetIfChanged(ref _updateTime, value);
}
private bool _isSelected;
public bool IsSelected
{
get => _isSelected;
set => this.RaiseAndSetIfChanged(ref _isSelected, value);
}
}