We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27aec88 commit be7ece2Copy full SHA for be7ece2
HomeKitDotNet/Models/Service.cs
@@ -16,14 +16,18 @@ namespace HomeKitDotNet.Models
16
{
17
public class Service : IService
18
19
- protected Service(Accessory accessory, string type)
+ protected Service(Accessory accessory, ServiceJSON json)
20
21
- this.Type = type;
22
- this.Accessory = accessory;
+ Accessory = accessory;
+ Type = json.Type;
23
+ Primary = json.PrimaryService;
24
+ Hidden = json.HiddenService;
25
}
26
27
public string Type { get; init; }
28
public Accessory Accessory { get; init; }
29
+ public bool Primary { get; init; }
30
+ public bool Hidden { get; init; }
31
32
protected CharacteristicBase? GetCharacteristic(string type, ServiceJSON service)
33
0 commit comments