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

de.hamstersimulator.objectsfirst.server.communication.clienttoserver.RequestInputOperation Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
package de.hamstersimulator.objectsfirst.server.communication.clienttoserver;

import de.hamstersimulator.objectsfirst.server.communication.Operation;
import de.hamstersimulator.objectsfirst.server.input.InputMessage;

/**
 * Operation to notify the server that a new input is requested
 */
public class RequestInputOperation implements Operation {

    private static final long serialVersionUID = 7728004034947790199L;

    /**
     * the new requested input
     */
    private final InputMessage message;

    /**
     * Creates a new RequestInputOperation
     * @param message the new input message, must be != null
     */
    public RequestInputOperation(final InputMessage message) {
        this.message = message;
    }

    /**
     * Getter for the new input message
     * @return the new message, != null
     */
    public InputMessage getMessage() {
        return message;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy