You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by bo...@apache.org on 2023/10/22 07:39:53 UTC
[streampipes] 02/02: refactor: introduce string representation of Notification
This is an automated email from the ASF dual-hosted git repository.
bossenti pushed a commit to branch refactor-various-improvements
in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit 39d467bf0675417e0ac6136ce79ad47c0b0b8865
Author: bossenti <bo...@posteo.de>
AuthorDate: Sun Oct 22 08:43:03 2023 +0200
refactor: introduce string representation of Notification
---
.../java/org/apache/streampipes/model/message/Notification.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/streampipes-model/src/main/java/org/apache/streampipes/model/message/Notification.java b/streampipes-model/src/main/java/org/apache/streampipes/model/message/Notification.java
index e73e524a3..272a6fd73 100644
--- a/streampipes-model/src/main/java/org/apache/streampipes/model/message/Notification.java
+++ b/streampipes-model/src/main/java/org/apache/streampipes/model/message/Notification.java
@@ -71,5 +71,10 @@ public class Notification {
this.additionalInformation = additionalInformation;
}
-
+ public String toString() {
+ return String.format("Notification '%s' - '%s'",
+ title,
+ description
+ );
+ }
}