ThinkingHome.DeviceModel
ThinkingHome.DeviceModel
Endpoint Class
Логическая часть устройства: тип + способности и свойства.
csharp
public sealed record Endpoint : System.IEquatable<ThinkingHome.DeviceModel.Endpoint>Inheritance System.Object → Endpoint
Implements System.IEquatable<Endpoint>
Properties
Endpoint.Capabilities Property
Способности — то, чем можно управлять (актуаторы).
csharp
public System.Collections.Generic.IReadOnlyList<ThinkingHome.DeviceModel.Capabilities.Capability> Capabilities { get; init; }Property Value
System.Collections.Generic.IReadOnlyList<Capability>
Endpoint.Id Property
Номер endpoint'а внутри устройства (0 — основной).
csharp
public int Id { get; init; }Property Value
Endpoint.Properties Property
Свойства — то, что можно только читать (сенсоры/события).
csharp
public System.Collections.Generic.IReadOnlyList<ThinkingHome.DeviceModel.Properties.Property> Properties { get; init; }Property Value
System.Collections.Generic.IReadOnlyList<Property>
Endpoint.Type Property
Тип endpoint'а — роль из каталога Matter.
csharp
public ThinkingHome.DeviceModel.DeviceType Type { get; init; }