diff --git a/src/main/java/org/ntlab/tampoposerver/models/Notification.java b/src/main/java/org/ntlab/tampoposerver/models/Notification.java index ccefd39..115664b 100644 --- a/src/main/java/org/ntlab/tampoposerver/models/Notification.java +++ b/src/main/java/org/ntlab/tampoposerver/models/Notification.java @@ -1,18 +1,22 @@ package org.ntlab.tampoposerver.models; +import com.fasterxml.jackson.annotation.JsonIgnore; + public class Notification { + @JsonIgnore private String userId; + @JsonIgnore private String notificationId; private String from; private String text; private String time; public Notification(String u, String n, String f, String tx, String tm) { - userId = u; - notificationId = n; - from = f; - text = tx; - time = tm; + this.userId = u; + this.notificationId = n; + this.from = f; + this.text = tx; + this.time = tm; } public String getUserId() {