Files
java-design-patterns/notification/src/main/java/com/iluwatar/ServerCommand.java
T
2024-03-09 14:46:46 +02:00

22 lines
489 B
Java

package com.iluwatar;
import lombok.AllArgsConstructor;
/**
* Stores the dto and access the notification within it.
* Acting as a layer supertype in this instance for the domain layer.
*/
@AllArgsConstructor
public class ServerCommand {
protected DataTransferObject data;
/**
* Basic getter to extract information from our data.
*
* @return the notification stored within the data
*/
public Notification getNotification() {
return data.getNotification();
}
}