Changed classes to interface.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @author Aaron Moser
|
||||
* @date 01.12.2023
|
||||
*/
|
||||
package data.src.ControllerToView;
|
||||
|
||||
public interface ControllerToViewData {
|
||||
public static enum ControllerEvent {
|
||||
ConnectToServerWasSuccessful,
|
||||
}
|
||||
public void setControllerEvent(ControllerEvent controllerEvent);
|
||||
public ControllerEvent getControllerEvent();
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
/**
|
||||
* @author Aaron Moser
|
||||
* @date 01.12.2023
|
||||
*/
|
||||
package data.src;
|
||||
|
||||
public class ControllerToViewData {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @author Aaron Moser
|
||||
* @date 01.12.2023
|
||||
*/
|
||||
package data.src.ViewToController;
|
||||
|
||||
public interface ViewToControllerData {
|
||||
public static enum ViewEvent {
|
||||
EmptyEvent,
|
||||
QuitApplication,
|
||||
ConnectToServerButtonWasPressed,
|
||||
}
|
||||
public void setViewEvent(ViewEvent viewEvent);
|
||||
public ViewEvent getViewEvent();
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
/**
|
||||
* @author Aaron Moser
|
||||
* @date 01.12.2023
|
||||
*/
|
||||
package data.src;
|
||||
|
||||
public class ViewToControllerData {
|
||||
public static enum ViewEvent {
|
||||
QuitApplication,
|
||||
ConnectToServerButtonWasPressed,
|
||||
}
|
||||
|
||||
private ViewEvent viewEvent;
|
||||
|
||||
public void setViewEvent(ViewEvent viewEvent) {
|
||||
this.viewEvent = viewEvent;
|
||||
}
|
||||
|
||||
public ViewEvent getViewEvent() {
|
||||
return this.viewEvent;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user