diff options
Diffstat (limited to 'appc-event-listener/appc-event-listener-bundle/src/main')
-rw-r--r-- | appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/demo/model/CommonMessage.java | 55 |
1 files changed, 27 insertions, 28 deletions
diff --git a/appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/demo/model/CommonMessage.java b/appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/demo/model/CommonMessage.java index ae32828ac..45b99a9f6 100644 --- a/appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/demo/model/CommonMessage.java +++ b/appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/demo/model/CommonMessage.java @@ -5,6 +5,8 @@ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Copyright (C) 2017 Amdocs + * ================================================================================ + * Modifications Copyright (C) 2019 Ericsson * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -265,7 +267,7 @@ public class CommonMessage implements Serializable { public void setGenericVnfId(String genericVnfId) { this.genericVnfId = genericVnfId; } - + @JsonProperty("pg-streams") private pgStreams pgStreams; @@ -303,38 +305,35 @@ public class CommonMessage implements Serializable { }; @JsonIgnoreProperties(ignoreUnknown = true) public static class pgStreams { - @JsonProperty("pg-stream") + @JsonProperty("pg-stream") private Collection<pgStream> streams; - - public Collection<pgStream> getStreams() { - return streams; - } - - public void setStreams(Collection<pgStream> streams) { - this.streams = streams; - } + public Collection<pgStream> getStreams() { + return streams; + } + public void setStreams(Collection<pgStream> streams) { + this.streams = streams; + } }; - @JsonIgnoreProperties(ignoreUnknown = true) - public static class pgStream{ - public String getId() { - return id; - } - public void setId(String id) { - this.id = id; - } - public String getIsEnabled() { - return isEnabled; - } - public void setIsEnabled(String isEnabled) { - this.isEnabled = isEnabled; - } - @JsonProperty("id") + + @JsonIgnoreProperties(ignoreUnknown = true) + public static class pgStream{ + public String getId() { + return id; + } + public void setId(String id) { + this.id = id; + } + public String getIsEnabled() { + return isEnabled; + } + public void setIsEnabled(String isEnabled) { + this.isEnabled = isEnabled; + } + @JsonProperty("id") private String id; @JsonProperty("is-enabled") private String isEnabled; - }; - - + }; } |