java.lang.Object
com.cumulocity.rest.representation.BaseResourceRepresentation
com.cumulocity.microservice.customdecoders.api.model.DecoderResult
All Implemented Interfaces:
com.cumulocity.rest.representation.ResourceRepresentation, Serializable

public class DecoderResult extends com.cumulocity.rest.representation.BaseResourceRepresentation implements Serializable
See Also:
  • Constructor Details

    • DecoderResult

      public DecoderResult()
  • Method Details

    • empty

      public static DecoderResult empty()
    • setAsFailed

      public final DecoderResult setAsFailed(String message)
    • addAlarm

      public void addAlarm(com.cumulocity.rest.representation.alarm.AlarmRepresentation alarmRepresentation, boolean internal)
    • addAlarms

      public void addAlarms(Collection<com.cumulocity.rest.representation.alarm.AlarmRepresentation> alarmRepresentations)
    • addAlarmTypesToClear

      public void addAlarmTypesToClear(String... alarmTypes)
    • addAlarmTypesToAcknowledge

      public void addAlarmTypesToAcknowledge(String... alarmTypes)
    • addAlarmTypesToUpdate

      public void addAlarmTypesToUpdate(com.cumulocity.model.event.CumulocityAlarmStatuses status, String... alarmTypes)
    • addEvent

      public void addEvent(com.cumulocity.rest.representation.event.EventRepresentation eventRepresentation, boolean internal)
    • addMeasurement

      public void addMeasurement(MeasurementDto measurementDto)
    • addMeasurements

      public void addMeasurements(Collection<MeasurementDto> measurementDtoCollection)
    • addDataFragment

      public void addDataFragment(DataFragmentUpdate dataFragmentUpdate)
    • getAlarms

      @JSONTypeHint(com.cumulocity.rest.representation.alarm.AlarmRepresentation.class) public List<com.cumulocity.rest.representation.alarm.AlarmRepresentation> getAlarms()
    • getEvents

      @JSONTypeHint(com.cumulocity.rest.representation.event.EventRepresentation.class) public List<com.cumulocity.rest.representation.event.EventRepresentation> getEvents()
    • getMeasurements

      @JSONTypeHint(MeasurementDto.class) public List<MeasurementDto> getMeasurements()
    • getDataFragments

      @JSONTypeHint(DataFragmentUpdate.class) public List<DataFragmentUpdate> getDataFragments()
    • getAlarmTypesToUpdate

      public Map<String,List<String>> getAlarmTypesToUpdate()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object