code: public JSONObject construct(boolean includeSid){
          JSONObject ret = new JSONObject();
          ret.put("progress", progress);
          ret.put("state", state.getState());
          ret.put("error", error.getCode());
          if (includeSid) ret.put("sid_in_progress", sid);
          return ret;
      }
docs: Construct the message the vacuum sends to the controlling device.
  @param includeSid Whether to include the sounpack language id.
  @return The constructed message.