blob: 016fcb9a7d9ff00817ed10f0553fb5879998d7b8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package pokemon;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;
import models.Ability;
import models.History;
import models.Monster;
import models.MonsterViewModel;
import models.PokemonAddModel;
import models.User;
public interface IService extends Remote {
public boolean addUser(User user)throws RemoteException;
public User login(User user)throws RemoteException;
public long addMonster(Monster monster)throws RemoteException;
public boolean addAbility(Ability ability)throws RemoteException;
public ArrayList<Monster> getMonsters()throws RemoteException;
public Monster getUserMonster(String username) throws RemoteException;
public void addMonsterToUser(long id,long monsterId)throws RemoteException;
public MonsterViewModel getMonsterViewModel(long id)throws RemoteException;
public ArrayList<User> getAllUsers()throws RemoteException;
public void deleteUser(long id)throws RemoteException;
public boolean addPokemonWithAbilities(PokemonAddModel pokemon)throws RemoteException;
public void deleteMonster(long id)throws RemoteException;
public User getUserById(long id) throws RemoteException;
public int addHistory(Game game) throws Exception;
public ArrayList<History> getUserHistory(long id) throws RemoteException;
}
|