Preparing search index...
The search index is not available
Procon 2023
Procon 2023
Services
PlayerService
Class PlayerService
Index
Constructors
constructor
Properties
client
Methods
create
Action
get
Game
Actions
get
Game
By
Id
get
Game
Status
get
Games
get
Time
Constructors
constructor
new
Player
Service
(
client
?
)
:
PlayerService
Parameters
client
:
AxiosInstance
= ...
Returns
PlayerService
Properties
Private
client
client
:
AxiosInstance
= ...
Methods
create
Action
create
Action
(
gameId
,
body
)
:
Promise
<
CreateActionResponse
>
Parameters
gameId
:
number
body
:
CreateActionDto
Returns
Promise
<
CreateActionResponse
>
get
Game
Actions
get
Game
Actions
(
gameId
)
:
Promise
<
GameActionModel
[]
>
Parameters
gameId
:
number
Returns
Promise
<
GameActionModel
[]
>
get
Game
By
Id
get
Game
By
Id
(
gameId
)
:
Promise
<
GameModel
>
Parameters
gameId
:
number
Returns
Promise
<
GameModel
>
get
Game
Status
get
Game
Status
(
gameId
)
:
Promise
<
{
cur_turn
:
number
;
max_turn
:
number
;
remaining
:
number
;
}
>
Parameters
gameId
:
number
Returns
Promise
<
{
cur_turn
:
number
;
max_turn
:
number
;
remaining
:
number
;
}
>
get
Games
get
Games
(
)
:
Promise
<
GameModel
[]
>
Returns
Promise
<
GameModel
[]
>
get
Time
get
Time
(
)
:
Promise
<
GetTimeResponse
>
Returns
Promise
<
GetTimeResponse
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
client
create
Action
get
Game
Actions
get
Game
By
Id
get
Game
Status
get
Games
get
Time
Procon 2023
<internal>
Config
Constants
Game
Hooks
Models
Services
Utils
Generated using
TypeDoc