-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDeviceReading.cs
More file actions
11 lines (9 loc) · 873 Bytes
/
Copy pathDeviceReading.cs
File metadata and controls
11 lines (9 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
namespace RustPlusBot.Abstractions.Connections;
/// <summary>A smart-switch/alarm read: on/off state plus reachability. <see cref="IsActive"/> is null unless <see cref="Reachability"/> is Reachable.</summary>
/// <param name="IsActive">The device on/off state; null unless Reachable.</param>
/// <param name="Reachability">The device reachability.</param>
public readonly record struct DeviceReading(bool? IsActive, DeviceReachability Reachability);
/// <summary>A storage-monitor read: contents plus reachability. <see cref="Contents"/> is null unless <see cref="Reachability"/> is Reachable.</summary>
/// <param name="Contents">The storage contents snapshot; null unless Reachable.</param>
/// <param name="Reachability">The device reachability.</param>
public readonly record struct StorageReading(StorageContentsSnapshot? Contents, DeviceReachability Reachability);