Example #1
0
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Tag {\n");

    sb.append("    id: ").append(StringUtil.toIndentedString(id)).append("\n");
    sb.append("    name: ").append(StringUtil.toIndentedString(name)).append("\n");
    sb.append("}");
    return sb.toString();
  }
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class NAResponse {\n");

    sb.append("    status: ").append(StringUtil.toIndentedString(status)).append("\n");
    sb.append("    timeExec: ").append(StringUtil.toIndentedString(timeExec)).append("\n");
    sb.append("    timeServer: ").append(StringUtil.toIndentedString(timeServer)).append("\n");
    sb.append("}");
    return sb.toString();
  }
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class NASimpleAlgo {\n");

    sb.append("    highDeadband: ").append(StringUtil.toIndentedString(highDeadband)).append("\n");
    sb.append("}");
    return sb.toString();
  }
 /**
  * Select the Accept header's value from the given accepts array: if JSON exists in the given
  * array, use it; otherwise use all of them (joining into a string)
  *
  * @param accepts The accepts array to select from
  * @return The Accept header to use. If the given array is empty, null will be returned (not to
  *     set the Accept header explicitly).
  */
 public String selectHeaderAccept(String[] accepts) {
   if (accepts.length == 0) {
     return null;
   }
   for (String accept : accepts) {
     if (isJsonMime(accept)) {
       return accept;
     }
   }
   return StringUtil.join(accepts, ",");
 }
Example #5
0
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Order {\n");

    sb.append("    id: ").append(StringUtil.toIndentedString(id)).append("\n");
    sb.append("    petId: ").append(StringUtil.toIndentedString(petId)).append("\n");
    sb.append("    quantity: ").append(StringUtil.toIndentedString(quantity)).append("\n");
    sb.append("    shipDate: ").append(StringUtil.toIndentedString(shipDate)).append("\n");
    sb.append("    status: ").append(StringUtil.toIndentedString(status)).append("\n");
    sb.append("    complete: ").append(StringUtil.toIndentedString(complete)).append("\n");
    sb.append("}");
    return sb.toString();
  }
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class NAThermStateBody {\n");

    sb.append("    setpoint: ").append(StringUtil.toIndentedString(setpoint)).append("\n");
    sb.append("    setpointOrder: ")
        .append(StringUtil.toIndentedString(setpointOrder))
        .append("\n");
    sb.append("    thermProgram: ").append(StringUtil.toIndentedString(thermProgram)).append("\n");
    sb.append("    thermProgramBackup: ")
        .append(StringUtil.toIndentedString(thermProgramBackup))
        .append("\n");
    sb.append("    thermProgramOrder: ")
        .append(StringUtil.toIndentedString(thermProgramOrder))
        .append("\n");
    sb.append("    thermOrientation: ")
        .append(StringUtil.toIndentedString(thermOrientation))
        .append("\n");
    sb.append("    thermRelayCmd: ")
        .append(StringUtil.toIndentedString(thermRelayCmd))
        .append("\n");
    sb.append("    batteryVp: ").append(StringUtil.toIndentedString(batteryVp)).append("\n");
    sb.append("    rfStatus: ").append(StringUtil.toIndentedString(rfStatus)).append("\n");
    sb.append("    plugConnectedBoiler: ")
        .append(StringUtil.toIndentedString(plugConnectedBoiler))
        .append("\n");
    sb.append("    udpConn: ").append(StringUtil.toIndentedString(udpConn)).append("\n");
    sb.append("    lastThermSeen: ")
        .append(StringUtil.toIndentedString(lastThermSeen))
        .append("\n");
    sb.append("    lastPlugSeen: ").append(StringUtil.toIndentedString(lastPlugSeen)).append("\n");
    sb.append("    wifiStatus: ").append(StringUtil.toIndentedString(wifiStatus)).append("\n");
    sb.append("    measured: ").append(StringUtil.toIndentedString(measured)).append("\n");
    sb.append("}");
    return sb.toString();
  }
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class NADevice {\n");

    sb.append("    id: ").append(StringUtil.toIndentedString(id)).append("\n");
    sb.append("    behavior: ").append(StringUtil.toIndentedString(behavior)).append("\n");
    sb.append("    cipherId: ").append(StringUtil.toIndentedString(cipherId)).append("\n");
    sb.append("    dateSetup: ").append(StringUtil.toIndentedString(dateSetup)).append("\n");
    sb.append("    firmware: ").append(StringUtil.toIndentedString(firmware)).append("\n");
    sb.append("    hwVersion: ").append(StringUtil.toIndentedString(hwVersion)).append("\n");
    sb.append("    heatingSystem: ")
        .append(StringUtil.toIndentedString(heatingSystem))
        .append("\n");
    sb.append("    houseModel: ").append(StringUtil.toIndentedString(houseModel)).append("\n");
    sb.append("    ip: ").append(StringUtil.toIndentedString(ip)).append("\n");
    sb.append("    lastFwUpdate: ").append(StringUtil.toIndentedString(lastFwUpdate)).append("\n");
    sb.append("    lastRadioStore: ")
        .append(StringUtil.toIndentedString(lastRadioStore))
        .append("\n");
    sb.append("    lastStatusStore: ")
        .append(StringUtil.toIndentedString(lastStatusStore))
        .append("\n");
    sb.append("    lastUpgrade: ").append(StringUtil.toIndentedString(lastUpgrade)).append("\n");
    sb.append("    moduleName: ").append(StringUtil.toIndentedString(moduleName)).append("\n");
    sb.append("    modules: ").append(StringUtil.toIndentedString(modules)).append("\n");
    sb.append("    place: ").append(StringUtil.toIndentedString(place)).append("\n");
    sb.append("    setpoint: ").append(StringUtil.toIndentedString(setpoint)).append("\n");
    sb.append("    setpointDefaultDuration: ")
        .append(StringUtil.toIndentedString(setpointDefaultDuration))
        .append("\n");
    sb.append("    setpointOrder: ")
        .append(StringUtil.toIndentedString(setpointOrder))
        .append("\n");
    sb.append("    publicExtData: ")
        .append(StringUtil.toIndentedString(publicExtData))
        .append("\n");
    sb.append("    stationName: ").append(StringUtil.toIndentedString(stationName)).append("\n");
    sb.append("    thermProgram: ").append(StringUtil.toIndentedString(thermProgram)).append("\n");
    sb.append("    thermProgramBackup: ")
        .append(StringUtil.toIndentedString(thermProgramBackup))
        .append("\n");
    sb.append("    thermProgramOrder: ")
        .append(StringUtil.toIndentedString(thermProgramOrder))
        .append("\n");
    sb.append("    type: ").append(StringUtil.toIndentedString(type)).append("\n");
    sb.append("    userOwner: ").append(StringUtil.toIndentedString(userOwner)).append("\n");
    sb.append("    udpConn: ").append(StringUtil.toIndentedString(udpConn)).append("\n");
    sb.append("    wifiStatus: ").append(StringUtil.toIndentedString(wifiStatus)).append("\n");
    sb.append("    newFeatureAvail: ")
        .append(StringUtil.toIndentedString(newFeatureAvail))
        .append("\n");
    sb.append("    firstPidAvail: ")
        .append(StringUtil.toIndentedString(firstPidAvail))
        .append("\n");
    sb.append("    dataType: ").append(StringUtil.toIndentedString(dataType)).append("\n");
    sb.append("}");
    return sb.toString();
  }