|  |  |  | 
|---|
|  |  |  | package com.zy.acs.manager.core.domain; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.zy.acs.common.domain.protocol.IMessageBody; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * Created by vincent on 8/19/2024 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | public class VehicleFaultDto { | 
|---|
|  |  |  | public class VehicleFaultDto<T extends IMessageBody> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private String vehicle; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private long timestamp; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private T t; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public VehicleFaultDto() { | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public VehicleFaultDto(String vehicle, T t) { | 
|---|
|  |  |  | this.vehicle = vehicle; | 
|---|
|  |  |  | this.t = t; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public VehicleFaultDto(String vehicle, long timestamp, T t) { | 
|---|
|  |  |  | this.vehicle = vehicle; | 
|---|
|  |  |  | this.timestamp = timestamp; | 
|---|
|  |  |  | this.t = t; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|