MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / makeSuccess

Method makeSuccess

app/src/API/CommandProtocol.h:129–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127 }
128
129 static CommandResponse makeSuccess(const QString& id, const QJsonObject& result = QJsonObject())
130 {
131 CommandResponse resp;
132 resp.id = id;
133 resp.success = true;
134 resp.result = result;
135 return resp;
136 }
137
138 static CommandResponse makeError(const QString& id,
139 const QString& code,

Callers

nothing calls this directly

Calls 1

QJsonObjectClass · 0.85

Tested by

no test coverage detected