src/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
30 / 30
100.0%
Branches:
-
-%
Functions:
2 / 2
100.0%

ItemSnapshot.cpp
Line Branch Exec Source
1 #include "ItemSnapshot.h"
2
3 2 void writeShadeRef(JsonFormatter &json, const shade_snapshot_t &shade) {
4 2 json.addElem("shadeId", shade.shadeId);
5 2 json.addElem("roomId", shade.roomId);
6 2 json.addElem("name", shade.name);
7 2 json.addElem("remoteAddress", shade.remoteAddress);
8 2 json.addElem("paired", shade.paired);
9 2 json.addElem("shadeType", shade.shadeType);
10 2 json.addElem("flipCommands", shade.flipCommands);
11 2 json.addElem("flipPosition", shade.flipPosition);
12 2 json.addElem("bitLength", shade.bitLength);
13 2 json.addElem("proto", shade.proto);
14 2 json.addElem("flags", shade.flags);
15 2 json.addElem("sunSensor", shade.sunSensor);
16 2 json.addElem("hasLight", shade.light);
17 2 json.addElem("repeats", shade.repeats);
18 2 }
19 1 void writeGroupRef(JsonFormatter &json, const group_snapshot_t &group) {
20 1 json.addElem("groupId", group.groupId);
21 1 json.addElem("roomId", group.roomId);
22 1 json.addElem("name", group.name);
23 1 json.addElem("remoteAddress", group.remoteAddress);
24 1 json.addElem("lastRollingCode", static_cast<uint32_t>(group.lastRollingCode));
25 1 json.addElem("bitLength", group.bitLength);
26 1 json.addElem("proto", group.proto);
27 1 json.addElem("sunSensor", group.sunSensor);
28 1 json.addElem("flipCommands", group.flipCommands);
29 1 json.addElem("flags", group.flags);
30 1 json.addElem("repeats", group.repeats);
31 1 json.addElem("sortOrder", group.sortOrder);
32 1 }
33