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

com.geotab.model.enumeration.DtcSeverity Maven / Gradle / Ivy

package com.geotab.model.enumeration;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * Represents a severity/class code from the engine system of the specific {@link
 * com.geotab.model.entity.device.Device}.
 */
public enum DtcSeverity {

  /**
   * This value indicates that the failure requests maintenance only.
   */
  MAINTENANCE_ONLY("MaintenanceOnly", 0),

  /**
   * This value indicates the failure that a check of the vehicle is required at next halt.
   */
  CHECK_AT_NEXT_HALT("CheckAtNextHalt", 1),

  /**
   * This value indicates the failure that an immediate check of the vehicle is required.
   */
  CHECK_IMMEDIATELY("CheckImmediately", 2);

  private String name;
  private int code;

  DtcSeverity(String name, int code) {
    this.name = name;
    this.code = code;
  }

  public int getCode() {
    return code;
  }

  @JsonValue
  public String getName() {
    return name;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy