public class FaultCodeEvent extends com.digi.wva.internal.AbstractEvent<FaultCodeResponse>
Constructor and Description |
---|
FaultCodeEvent(EventFactory.Type type,
String uri,
String endpoint,
DateTime sent,
String shortName,
FaultCodeResponse response)
Constructor of a fault code event.
|
Modifier and Type | Method and Description |
---|---|
FaultCodeCommon.Bus |
getBus()
Gets the CAN bus that reported this data
|
String |
getEcu()
Gets the name of the ECU that reported this data
|
FaultCodeCommon.FaultCodeType |
getMessageType()
Gets the message type of this data
|
public FaultCodeEvent(EventFactory.Type type, String uri, String endpoint, DateTime sent, String shortName, FaultCodeResponse response)
type
- the event type (alarm or subscription)uri
- the URI ("uri"
field)endpoint
- the last section of the URIsent
- the timestamp of the message (not of the value)shortName
- the short name (the "short_name" field
)response
- a representation of the event data/valuepublic FaultCodeCommon.Bus getBus()
public FaultCodeCommon.FaultCodeType getMessageType()
public String getEcu()