Commit 9dbc3179 authored by Mamadou Saliou DIALLO's avatar Mamadou Saliou DIALLO

fix import error

parent 20157592
......@@ -2,14 +2,13 @@ package fr.univnantes.alma.handler;
import fr.univnantes.alma.common.GameInterface;
import fr.univnantes.alma.common.GameJoinRequest;
import fr.univnantes.alma.thrift.GameService;
import fr.univnantes.alma.thrift.JoinRequest;
import fr.univnantes.alma.thrift.*;
import org.apache.thrift.TException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class GameServiceHandler implements GameService.Iface {
public class GameServiceHandler implements GameServerService.Iface {
@Autowired
GameInterface service;
......@@ -25,4 +24,39 @@ public class GameServiceHandler implements GameService.Iface {
return service.join(gameId, new GameJoinRequest());
}
@Override
public Response isConnected(PlayerID player, InfoClient params) throws TException {
return null;
}
@Override
public Phase nextPhase(Phase phase) throws TException {
return null;
}
@Override
public Response resits(PlayerID hunted) throws TException {
return null;
}
@Override
public Response toGo(PlayerID hunted) throws TException {
return null;
}
@Override
public Response playPlaceCard(PlayerID hunted, Card card) throws TException {
return null;
}
@Override
public Response putToken(Token token, Place place) throws TException {
return null;
}
@Override
public Response playHuntCard(PlayerID creature, Card card) throws TException {
return null;
}
}
package fr.univnantes.alma;
import fr.univnantes.alma.thrift.GameService;
import fr.univnantes.alma.thrift.GameServerService;
import fr.univnantes.alma.thrift.JoinRequest;
import org.apache.thrift.TException;
import org.apache.thrift.protocol.TProtocol;
......@@ -24,7 +24,7 @@ class NotAloneApplicationTest {
@LocalServerPort
protected int port;
protected GameService.Iface client;
protected GameServerService.Iface client;
@BeforeEach
public void setUp() throws Exception {
......@@ -32,7 +32,7 @@ class NotAloneApplicationTest {
TProtocol protocol = protocolFactory.getProtocol(transport);
client = new GameService.Client(protocol);
client = new GameServerService.Client(protocol);
}
@Test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment