Skip to content

Commit

Permalink
API to I
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-kir-wwu committed Dec 13, 2023
1 parent a77070f commit fdd53cf
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/erathor/api/ErathorAPI.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.erathor.api;

import org.erathor.api.controller.ErathorControllersAPI;
import org.erathor.api.controller.IErathorControllers;

public interface ErathorAPI {
// This is the interface that the ErathorCore plugin implements.

ErathorControllersAPI getControllers();
IErathorControllers getControllers();

}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package org.erathor.api.controller;

public interface IErathorControllers {

public IExecutionController getExecutionController();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package org.erathor.api.controller;

import org.erathor.api.model.IExecution;

public interface IExecutionController extends IModelController<IExecution> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import java.util.List;
import java.util.Optional;

import org.erathor.api.model.ModelAPI;
import org.erathor.api.model.IModel;

public interface ModelControllerAPI<M extends ModelAPI<M>> {
public interface IModelController<M extends IModel<M>> {

public Optional<M> read(Integer id);

Expand Down
5 changes: 0 additions & 5 deletions src/main/java/org/erathor/api/model/ExecutionAPI.java

This file was deleted.

5 changes: 5 additions & 0 deletions src/main/java/org/erathor/api/model/IExecution.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package org.erathor.api.model;

public interface IExecution extends IModel<IExecution> {

}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.erathor.api.model;

public interface ModelAPI<M extends ModelAPI<M>> {
public interface IModel<M extends IModel<M>> {

public Integer getId();

Expand Down

0 comments on commit fdd53cf

Please sign in to comment.