Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
use base interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
Harald Meyer committed Dec 23, 2022
1 parent f4d4dec commit 8180cbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.adamos.hubconnector.model.events;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
Expand All @@ -12,9 +13,9 @@
public class EventMapping {

private String c8yEventType;
private ArrayList<String> c8yDevices;
private List<String> c8yDevices;
private String adamosEventType;
private ArrayList<String> c8yFragments;
private List<String> c8yFragments;

private String id;
private String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void pollEventMappings() {

for (EventMapping mapping : mappings) {
if (mapping.isEnabled()) {
ArrayList<String> relevantHubDeviceIds = mapping.getC8yDevices();
List<String> relevantHubDeviceIds = mapping.getC8yDevices();
// filter for c8y devices which were configured in the mapping via c8yDevices
List<ManagedObjectRepresentation> devicesFromMapping = (relevantHubDeviceIds == null
|| relevantHubDeviceIds.isEmpty()) ? hubDevices
Expand Down

0 comments on commit 8180cbb

Please sign in to comment.