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