-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate a JSON tracker for current app session players #237
Comments
Example: [{"name":"Allison","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_2","currTransition":"trans_2","timeEnterState":"2022-04-19T18:22:43.630Z","timeExitApp":"2022-04-19T18:22:43.630Z","prevTransAnswer":"BK"},{"name":"Allison2","guest":true,"gamePin":"12","team":"2","player":"1","currState":"state_4","currTransition":"trans_4","timeEnterState":"2022-04-19T18:23:05.674Z","timeExitApp":"2022-04-19T18:23:05.674Z","prevTransAnswer":"cat"}] Re-login as Allison updates the name=Allison entry: [{"name":"Allison2","guest":true,"gamePin":"12","team":"2","player":"1","currState":"state_4","currTransition":"trans_4","timeEnterState":"2022-04-19T18:23:05.674Z","timeExitApp":"2022-04-19T18:23:05.674Z","prevTransAnswer":"cat"},{"name":"Allison","guest":true,"gamePin":"12","team":"1","player":"1","currState":"state_5","currTransition":"trans_5","timeEnterState":"2022-04-19T18:23:53.911Z","timeExitApp":"","prevTransAnswer":"BL"}] |
Updated/Added Logging Fields: name guest gamePin team player currState currTransition prevTransAnswer currTransAnswer interactionType interactionTime timeEnterState timeExitApp |
Log file is deleted from device after 2 hours of the app being closed. This should give enough time for the log data to be transmitted to the server and database. |
Added new field to logs: prevTransType |
Create a JSON file
playerTracker.json
that tracks the current players for a session.playerTracker.json
will get updated for each player that uses the app for a session, as well as whenever there are updates to a player currently active in a game.Use case example:
allison1
logs into game PIN 1 as Team 1 Player 1 and then plays the game until state number 3 (her previous input to get from state 2 to state 3 was "cats"). She entered the state at time 00:10.playerTracker.json
as of this point will be:{
name: allison1
Team: 1
Player: 1
currState: 3
currTransition: 3
timeEnterState: 00:10
prevTransAnswer: “cats”
}
allison1
presses back and gets redirected to the game PIN screen. Playerallison2
logs into game PIN 1 as Team 2 Player 2 and then plays the game until state number 1 (the first state of the game). She entered the state at time 00:02playerTracker.json
as of this point will be:{
name: allison1
Team: 1
Player: 1
currState: 3
currTransition: 3
timeEnterState: 00:10
prevTransAnswer: “cats”
},
{
name: allison2
Team: 2
Player: 2
currState: 1
currTransition: 1
timeEnterState: 00:02
prevTransAnswer: null
}
The text was updated successfully, but these errors were encountered: