All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.dronesecurity.userapplication.domain.user.events.LoggedOut Maven / Gradle / Ivy

Go to download

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy