SudokuFX
Loading...
Searching...
No Matches
Package fr.softsf.sudokufx.dto

Packages

package  github
 

Functions

record GameDto (Long gameid, @Nonnull @NotNull GridDto grididDto, @Nonnull @NotNull Long playerid, @Nonnull @NotNull GameLevelDto levelidDto, boolean selected, @Nonnull @NotNull Instant createdat, @Nonnull @NotNull Instant updatedat)
 Data Transfer Object representing a game entity.
 
record GameLevelDto (Byte levelid, @Min(1) @Max(3) byte level)
 Data Transfer Object representing a game level entity.
 
record GridDto (Long gridid, @Nonnull @NotNull @Size(max=81) String defaultgridvalue, @Nonnull @NotNull @Size(max=810) String gridvalue, @Min(0) @Max(100) byte possibilities)
 Data Transfer Object representing a grid entity.
 
record MenuDto (Byte menuid, @Min(1) @Max(3) byte mode)
 Data Transfer Object representing a menu entity.
 
record OptionsDto (Long optionsid, @Nonnull @NotNull @Size(min=8, max=8) String hexcolor, @Nonnull @NotNull @Size(max=260) String imagepath, @Nonnull @NotNull @Size(max=260) String songpath, boolean opaque, boolean muted)
 Data Transfer Object representing an Options entity.
 
record PlayerDto (Long playerid, @Nonnull @NotNull PlayerLanguageDto playerlanguageidDto, @Nonnull @NotNull OptionsDto optionsidDto, @Nonnull @NotNull MenuDto menuidDto, @Nullable GameDto selectedGame, @Nonnull @NotNull @Size(max=256) String name, boolean selected, @Nonnull @NotNull Instant createdat, @Nonnull @NotNull Instant updatedat)
 Data Transfer Object representing a player.
 
record PlayerLanguageDto (Long playerlanguageid, @Nonnull @NotNull @Pattern(regexp="^(FR|EN)$", message="iso must be either 'FR' or 'EN'") String iso)
 Data Transfer Object representing a player's language.
 
record ToastData (String visibleText, String detailedText, ToastLevels level, boolean requestFocus)
 A data transfer object representing a toast notification.
 

Function Documentation

◆ GameDto()

record fr.softsf.sudokufx.dto.GameDto ( Long gameid,
@Nonnull @NotNull GridDto grididDto,
@Nonnull @NotNull Long playerid,
@Nonnull @NotNull GameLevelDto levelidDto,
boolean selected,
@Nonnull @NotNull Instant createdat,
@Nonnull @NotNull Instant updatedat )

Data Transfer Object representing a game entity.

Parameters
gameidthe unique identifier of the game
grididDtothe associated grid data transfer object; must not be null
playeridthe identifier of the player linked to the game; must not be null
levelidDtothe associated game level data transfer object; must not be null
selectedflag indicating if the game is selected
createdatthe timestamp when the game was created; must not be null
updatedatthe timestamp when the game was last updated; must not be null

Returns a new instance with the given game ID.

Returns a new instance with the given grid DTO.

Returns a new instance with the given player ID.

Returns a new instance with the given level DTO.

Returns a new instance with the given selected flag.

Returns a new instance with the given creation timestamp.

Returns a new instance with the given update timestamp.

+ Here is the call graph for this function:

◆ GameLevelDto()

record fr.softsf.sudokufx.dto.GameLevelDto ( Byte levelid,
@Min(1) @Max(3) byte level )

Data Transfer Object representing a game level entity.

Parameters
levelidthe unique identifier of the game level
levelthe difficulty level, constrained between 1 and 3 (inclusive)

Returns a new GameLevelDto with the specified levelid, keeping the current level.

Parameters
levelidthe new levelid
Returns
a new GameLevelDto with updated levelid

Returns a new GameLevelDto with the specified level, keeping the current levelid.

Parameters
levelthe new level (1-3)
Returns
a new GameLevelDto with updated level
+ Here is the call graph for this function:

◆ GridDto()

record fr.softsf.sudokufx.dto.GridDto ( Long gridid,
@Nonnull @NotNull @Size(max=81) String defaultgridvalue,
@Nonnull @NotNull @Size(max=810) String gridvalue,
@Min(0) @Max(100) byte possibilities )

Data Transfer Object representing a grid entity.

Parameters
grididthe unique identifier of the grid
defaultgridvaluethe default grid value string, max length 81; must not be null
gridvaluethe current grid value string, max length 810; must not be null
possibilitiesthe percentage of possibilities (0 to 100)

Returns a new instance with the given grid ID.

Returns a new instance with the given default grid value.

Returns a new instance with the given current grid value.

Returns a new instance with the given possibilities percentage.

+ Here is the call graph for this function:

◆ MenuDto()

record fr.softsf.sudokufx.dto.MenuDto ( Byte menuid,
@Min(1) @Max(3) byte mode )

Data Transfer Object representing a menu entity.

Parameters
menuidthe unique identifier of the menu
modethe mode of the menu, must be between 1 and 3 (inclusive)

◆ OptionsDto()

record fr.softsf.sudokufx.dto.OptionsDto ( Long optionsid,
@Nonnull @NotNull @Size(min=8, max=8) String hexcolor,
@Nonnull @NotNull @Size(max=260) String imagepath,
@Nonnull @NotNull @Size(max=260) String songpath,
boolean opaque,
boolean muted )

Data Transfer Object representing an Options entity.

Parameters
optionsidthe unique identifier of the options
hexcolorthe color in hexadecimal format (e.g., FFFFFFFF), 8 characters, not null
imagepaththe file path to the image associated with the options, max 260 characters, not null
songpaththe file path to the song associated with the options, max 260 characters, not null
opaqueflag indicating if the grid's background is opaque (true) or transparent (false)
mutedflag indicating if sound is muted (true) or enabled (false)

Returns a copy of this DTO with a new optionsid.

Parameters
optionsidthe new options ID
Returns
a new OptionsDto instance

Returns a copy of this DTO with a new hexcolor.

Parameters
hexcolorthe new hex color
Returns
a new OptionsDto instance

Returns a copy of this DTO with a new imagepath.

Parameters
imagepaththe new image path
Returns
a new OptionsDto instance

Returns a copy of this DTO with a new songpath.

Parameters
songpaththe new song path
Returns
a new OptionsDto instance

Returns a copy of this DTO with a new opaque flag.

Parameters
opaquethe new opaque value
Returns
a new OptionsDto instance

Returns a copy of this DTO with a new muted flag.

Parameters
mutedthe new muted value
Returns
a new OptionsDto instance
+ Here is the call graph for this function:

◆ PlayerDto()

record fr.softsf.sudokufx.dto.PlayerDto ( Long playerid,
@Nonnull @NotNull PlayerLanguageDto playerlanguageidDto,
@Nonnull @NotNull OptionsDto optionsidDto,
@Nonnull @NotNull MenuDto menuidDto,
@Nullable GameDto selectedGame,
@Nonnull @NotNull @Size(max=256) String name,
boolean selected,
@Nonnull @NotNull Instant createdat,
@Nonnull @NotNull Instant updatedat )

Data Transfer Object representing a player.

Parameters
playeridthe unique identifier of the player
playerlanguageidDtothe player's language data, must not be null
optionsidDtothe player's options data, must not be null
menuidDtothe menu associated with the player, must not be null
selectedGamethe currently selected game for the player, can be null
namethe player's name, must not be null and maximum length 256 characters
selectedindicates whether this player is selected
createdatthe creation timestamp, must not be null
updatedatthe last update timestamp, must not be null

Returns a new instance with the given player language.

Returns a new instance with the given options.

Returns a new instance with the given menu.

Returns a new instance with the given selected game.

Returns a new instance with the given name.

Returns a new instance with the given selected flag.

Returns a new instance with the given creation timestamp.

Returns a new instance with the given update timestamp.

+ Here is the call graph for this function:

◆ PlayerLanguageDto()

record fr.softsf.sudokufx.dto.PlayerLanguageDto ( Long playerlanguageid,
@Nonnull @NotNull @Pattern(regexp="^(FR|EN)$", message="iso must be either 'FR' or 'EN'") String iso )

Data Transfer Object representing a player's language.

Parameters
playerlanguageidthe unique identifier of the player language
isothe ISO code; must be "FR" or "EN" and not null

◆ ToastData()

record fr.softsf.sudokufx.dto.ToastData ( String visibleText,
String detailedText,
ToastLevels level,
boolean requestFocus )

A data transfer object representing a toast notification.