Browse Source

add PlayerService

main
fdai7920 11 months ago
parent
commit
2281108c54
  1. 18
      src/main/java/de/hsfulda/onses/services/PlayerService.java

18
src/main/java/de/hsfulda/onses/services/PlayerService.java

@ -0,0 +1,18 @@
package de.hsfulda.onses.services;
import de.hsfulda.onses.models.Player;
import java.util.ArrayList;
public class PlayerService {
private final ArrayList<Player> playerList = new ArrayList<>();
public ArrayList<Player> getPlayerList() {
return playerList;
}
public void addPlayerToList(Player player) {
playerList.add(player);
}
}
Loading…
Cancel
Save