| 8 | |
| 9 | |
| 10 | json_t* Cable::toJson() { |
| 11 | json_t* rootJ = json_object(); |
| 12 | json_object_set_new(rootJ, "id", json_integer(id)); |
| 13 | json_object_set_new(rootJ, "outputModuleId", json_integer(outputModule->id)); |
| 14 | json_object_set_new(rootJ, "outputId", json_integer(outputId)); |
| 15 | json_object_set_new(rootJ, "inputModuleId", json_integer(inputModule->id)); |
| 16 | json_object_set_new(rootJ, "inputId", json_integer(inputId)); |
| 17 | return rootJ; |
| 18 | } |
| 19 | |
| 20 | |
| 21 | void Cable::fromJson(json_t* rootJ) { |
no outgoing calls
no test coverage detected