URL: /stu/subscribe
Enviroment: Any (Internet connection available)
Data: {action,attributes,token}
action |
attributes |
token |
Description |
Emitted (dashboard, PCB) |
Listening (Dashboard, PCB) |
Subscribe |
{id_stu=id} |
session token |
Suscrito a alumno |
both |
none |
URL: /stu/unsubscribe
Enviroment: Any (Internet connection available)
Data: {Action}
action |
Description |
Emitted (dashboard, PCB) |
Listening (Dashboard, PCB) |
Unsubscribe |
Cancelar suscripción a todos los estudiantes |
Dashboard |
none |
URL: /stu/vocabulary
Enviroment: Any (Internet connection available)
Data: {action,attributes}
action |
attributes |
Description |
Emitted (dashboard, PCB) |
Listening (Dashboard, PCB) |
Add |
{id_stu=id, stu_picto=stu_picto} |
Pictograma añadido |
both |
both |
Delete |
{id_stu=id, stu_Picto=picto} |
Pictograma eliminado |
both |
both |
Update |
{id_stu=id, stu_Picto=picto} |
Pictograma actualizado |
both |
both |
Ejemplo de mensaje para add:
{
"action":"add",
"attributes": {
"id_stu":24,
"stu_picto": {
id: 2457,
student: 24,
attributes: {
id_cat: null,
coord_x: null,
coord_y: null,
free_category_coord_x: 2,
free_category_coord_y: 1,
status: 'invisible',
highlight: false,
legend: false,
legend_size: large,
expression: 'recipiente 10',
color: any valid HEX color or [null]
},
"picto": {
"source":1,
"owner":null,
"id":2386,
"uri":"/symbolstx/color/png/containers/container_10.png",
"category":43
},
}
}
}
}
URL: /stu/action
Enviroment: Try
Data: {action,attributes}
action |
attributes |
Description |
Emitted (dashboard, PCB) |
Listening (Dashboard, PCB) |
InitLink |
|
Dispositivo enlazado |
|
|
Unlink |
|
Desconectar dispositivo |
|
|
InitSession |
{ d_stu=id, id_ws=id, id_instruction=id, timestamp=time } |
Comienza la sesión |
Dashboard |
none |
EndSession |
{ d_stu=id, id_ws=id, timestamp=time } |
Finalizar sesión |
Dashboard |
none |
PauseSession |
{ d_stu=id, id_ws=id, timestamp=time } |
Supervisor pausa el ensayo actual |
Dashboard |
none |
ResumeSession |
{ d_stu=id, id_ws=id, timestamp=time } |
Supervisor retoma el ensayo actual (quita pausa) |
Dashboard |
none |
ChangeInstruction |
{ d_stu=id, id_instruction=id, timestamp=time } |
Cambia la instrucción |
Dashboard |
none |
LUClickInit* |
NO NECESARIO (se inicia automáticamente al iniciar la sesión de trabajo o cuando el alumno entrega la frase anterior, por lo que con la acción LUInit es suficiente) |
Supervisor pulsa en comienzo de LU (implica un LUInit justo después |
|
|
TryInit |
|
Comienza el ensayo. Si lo realiza el alumno de forma independiente, el id_try será null. En cambio, si está dentro de una sesión, pertenecerá a un ensayo y sí tendrá id_try |
|
|
Add |
{id_stu=id, Picto=picto,timestamp=time} |
Se añade un picto a la cinta de frase |
PCB |
Dashboard |
Delete |
{id_stu=id, Picto=picto,timestamp=time} |
Se borra el último elemento de la cinta de frase |
PCB |
Dashboard |
Select |
{id_stu=id, Picto=picto,timestamp=time} |
Se selecciona un picto |
PCB |
Dashboard |
Stop* |
NO NECESARIO (El supervisor termina la sesión y el alumno termina el ensayo al entregar). |
Supervisor da por finalizada Try (implica un TryEnd justo después |
|
|
Show |
{id_stu=id, Pictos=[ picto1, picto2, .. ], timestamp=time } |
Estudiante hace entrega (implica un TryEnd justo después y entrar en modo "mostrado") |
PCB |
Dashboard |
TryEnd |
|
Finaliza ensayo. Si lo realiza el alumno de forma independiente, el id_try será null. En cambio, si está dentro de una sesión, pertenecerá a un ensayo y sí tendrá id_try |
|
|
Empty |
|
Cinta de frase borrada por completo (tras un último Delete) |
PCB |
Dashboard |
Unshow |
{id_stu=id, timestamp=time} |
Se vuelve al modo escritura desde el mostrado. Implica un TryInit |
PCB |
Dashboard |
URL: /stu/config
Enviroment: Any (Internet connection available)
Data: {Action,Attributes}
Action |
Attributes |
Description |
Emitted (dashboard, PCB) |
Listening (dashboard, PCB) |
Update |
Student Config |
Configuración del estudiante actualizada |
both |
both |
Ejemplo de objeto picto enviado:
{
"id": 1470,
"picto": {
"id": 2718,
"uri": "/symbolstx/color/png/descriptives/hot_spicy.png",
"category": 9,
"source": 1,
"owner": null
},
"expression": {
"id": 7878,
"lang": "es-es",
"text": "condimentado",
"picto": 2718
},
"attributes": {
"id_cat": 609,
"coord_x": 3,
"coord_y": 3,
"status": "invisible",
"magnify": false,
"highlight": false
}
}