tar dur, jws demotivant
This commit is contained in:
parent
e1301f007b
commit
b3bdec1049
14 changed files with 65 additions and 11 deletions
|
|
@ -1,7 +1,9 @@
|
|||
package fr.epita.assistants.yakamon.presentation.api;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class YakamonAction {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
package fr.epita.assistants.yakamon.presentation.api.request;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class StartGameRequest {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
package fr.epita.assistants.yakamon.presentation.api.request;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class TeamFeedRequest {
|
||||
|
||||
public Integer quantity;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
package fr.epita.assistants.yakamon.presentation.api.request;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class TeamRenameRequest {
|
||||
|
||||
public String newNickname;
|
||||
|
|
|
|||
|
|
@ -2,21 +2,37 @@ package fr.epita.assistants.yakamon.presentation.api.response;
|
|||
|
||||
import java.util.List;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class GetInventoryResponse {
|
||||
|
||||
public class ItemType {
|
||||
|
||||
public String type;
|
||||
public String value;
|
||||
|
||||
public ItemType() {}
|
||||
|
||||
public ItemType(String type, String value) {
|
||||
this.type = type;
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
|
||||
public class Items {
|
||||
|
||||
public ItemType itemType;
|
||||
public Integer quantity;
|
||||
|
||||
public Items() {}
|
||||
|
||||
public Items(ItemType itemType, Integer quantity) {
|
||||
this.itemType = itemType;
|
||||
this.quantity = quantity;
|
||||
}
|
||||
}
|
||||
|
||||
List<Items> items;
|
||||
public List<Items> items;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
package fr.epita.assistants.yakamon.presentation.api.response;
|
||||
|
||||
import fr.epita.assistants.yakamon.presentation.api.YakamonAction;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@NoArgsConstructor
|
||||
public class PlayerCatchResponse extends YakamonAction {
|
||||
|
||||
public PlayerCatchResponse(
|
||||
|
|
|
|||
|
|
@ -3,20 +3,36 @@ package fr.epita.assistants.yakamon.presentation.api.response;
|
|||
import fr.epita.assistants.yakamon.utils.tile.ItemType;
|
||||
import fr.epita.assistants.yakamon.utils.tile.TerrainType;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class PlayerCollectResponse {
|
||||
|
||||
public class TileType {
|
||||
|
||||
public class Collectible {
|
||||
|
||||
ItemType type;
|
||||
String value;
|
||||
public ItemType type;
|
||||
public String value;
|
||||
|
||||
public Collectible() {}
|
||||
|
||||
public Collectible(ItemType type, String value) {
|
||||
this.type = type;
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
|
||||
TerrainType terrainType;
|
||||
Collectible collectible;
|
||||
public TerrainType terrainType;
|
||||
public Collectible collectible;
|
||||
|
||||
public TileType() {}
|
||||
|
||||
public TileType(TerrainType terrainType, Collectible collectible) {
|
||||
this.terrainType = terrainType;
|
||||
this.collectible = collectible;
|
||||
}
|
||||
}
|
||||
|
||||
public TileType tileType;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
package fr.epita.assistants.yakamon.presentation.api.response;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class PlayerInfosResponse {
|
||||
|
||||
|
|
@ -10,7 +12,7 @@ public class PlayerInfosResponse {
|
|||
public Integer posX;
|
||||
public Integer posY;
|
||||
public String lastMove;
|
||||
public String lastCatch;
|
||||
public String lastCollect;
|
||||
public String lastCatch;
|
||||
public String lastFeed;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
package fr.epita.assistants.yakamon.presentation.api.response;
|
||||
|
||||
import fr.epita.assistants.yakamon.presentation.api.YakamonAction;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@NoArgsConstructor
|
||||
public class TeamEvolveResponse extends YakamonAction {
|
||||
|
||||
public TeamEvolveResponse(
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
package fr.epita.assistants.yakamon.presentation.api.response;
|
||||
|
||||
import fr.epita.assistants.yakamon.presentation.api.YakamonAction;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@NoArgsConstructor
|
||||
public class TeamFeedResponse extends YakamonAction {
|
||||
|
||||
public TeamFeedResponse(
|
||||
|
|
|
|||
|
|
@ -2,9 +2,11 @@ package fr.epita.assistants.yakamon.presentation.api.response;
|
|||
|
||||
import fr.epita.assistants.yakamon.presentation.api.YakamonAction;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class TeamInfosResponse {
|
||||
|
||||
YakamonAction[] yakamons;
|
||||
public YakamonAction[] yakamons;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
package fr.epita.assistants.yakamon.presentation.api.response;
|
||||
|
||||
import fr.epita.assistants.yakamon.presentation.api.YakamonAction;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@NoArgsConstructor
|
||||
public class TeamRenameResponse extends YakamonAction {
|
||||
|
||||
public TeamRenameResponse(
|
||||
|
|
|
|||
|
|
@ -2,9 +2,11 @@ package fr.epita.assistants.yakamon.presentation.api.response;
|
|||
|
||||
import fr.epita.assistants.yakamon.presentation.api.YakadexEntry;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class YakadexAllInfosResponse {
|
||||
|
||||
YakadexEntry[] entries;
|
||||
public YakadexEntry[] entries;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -123,12 +123,12 @@ public class PlayerResource {
|
|||
player.lastMove != null
|
||||
? player.lastMove.format(formatter)
|
||||
: null,
|
||||
player.lastCatch != null
|
||||
? player.lastCatch.format(formatter)
|
||||
: null,
|
||||
player.lastCollect != null
|
||||
? player.lastCollect.format(formatter)
|
||||
: null,
|
||||
player.lastCatch != null
|
||||
? player.lastCatch.format(formatter)
|
||||
: null,
|
||||
player.lastFeed != null
|
||||
? player.lastFeed.format(formatter)
|
||||
: null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue