All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.smartcar.sdk.data.VehicleCharge Maven / Gradle / Ivy

There is a newer version: 4.6.0
Show newest version
package com.smartcar.sdk.data;

/** POJO for Smartcar /charge endpoint */
public class VehicleCharge extends ApiData {
  private String state;
  private boolean isPluggedIn;

  /**
   * Returns the charge state
   *
   * @return charge state
   */
  public String getState() {
    return this.state;
  }

  /**
   * Returns whether charging cable is plugged in
   *
   * @return whether charging cable is plugged in
   */
  public boolean getIsPluggedIn() {
    return this.isPluggedIn;
  }

  /**
   * Stores the charge state
   *
   * @param state stores the charge state
   */
  public void setState(String state) {
    this.state = state;
  }

  /** @return a stringified representation of VehicleCharge */
  @Override
  public String toString() {
    return this.getClass().getName() + "{" + "state=" + state + "isPluggedIn=" + isPluggedIn + '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy