io.github.dronesecurity.userapplication.domain.user.events.LoggedOut Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of user-application Show documentation
Show all versions of user-application Show documentation
System able to monitor the drone and manage the security thanks to some particular sensors.
The newest version!
/*
* Copyright (c) 2021-2022, Mirko Felice & Maxim Derevyanchenko. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for details.
*/
package io.github.dronesecurity.userapplication.domain.user.events;
import io.github.dronesecurity.userapplication.domain.user.entities.contracts.User;
import io.github.dronesecurity.userapplication.events.DomainEvent;
/**
* {@link DomainEvent} representing a {@link User} that has just logged out of the system.
*/
public final class LoggedOut implements DomainEvent {
private final User user;
/**
* Builds the event.
* @param user {@link User} just logged out
*/
public LoggedOut(final User user) {
this.user = user;
}
/**
* Gets the user just logged out.
* @return the logged out {@link User}
*/
public User getUser() {
return this.user;
}
}