com.geotab.model.entity.controller.GoFaultController Maven / Gradle / Ivy
/*
*
* 2020 Copyright (C) Geotab Inc. All rights reserved.
*/
package com.geotab.model.entity.controller;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.geotab.model.entity.source.SourceGo;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
* Controller reserved for faults generated by the Geotab GO Device.
*/
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public final class GoFaultController extends Controller {
private static class InstanceHolder {
private static final GoFaultController INSTANCE = new GoFaultController();
}
public static final String GO_FAULT_CONTROLLER_ID = "ControllerGoDeviceId";
private GoFaultController() {
super(GO_FAULT_CONTROLLER_ID, "Telematics device", 0L, (short) 0, (short) 0,
SourceGo.getInstance());
}
public static GoFaultController getInstance() {
return InstanceHolder.INSTANCE;
}
@Override
@JsonIgnore
public boolean isSystemEntity() {
return true;
}
}