| 183 | } |
| 184 | |
| 185 | size_t JsonWriteSubscribeCommand(char* dest, size_t maxLen, int nonce, const char* evtName) |
| 186 | { |
| 187 | JsonWriter writer(dest, maxLen); |
| 188 | |
| 189 | { |
| 190 | WriteObject obj(writer); |
| 191 | |
| 192 | JsonWriteNonce(writer, nonce); |
| 193 | |
| 194 | WriteKey(writer, "cmd"); |
| 195 | writer.String("SUBSCRIBE"); |
| 196 | |
| 197 | WriteKey(writer, "evt"); |
| 198 | writer.String(evtName); |
| 199 | } |
| 200 | |
| 201 | return writer.Size(); |
| 202 | } |
| 203 | |
| 204 | size_t JsonWriteUnsubscribeCommand(char* dest, size_t maxLen, int nonce, const char* evtName) |
| 205 | { |
no test coverage detected