File

src/app/models/student.ts

Constructor

constructor(id: string, classe: Classroom, name: string, selected: boolean, selectedTemp: boolean, playerId: number, uid: string)

Properties

answers
answers: { award: string; answer: boolean; }[]
awardsCurrent
awardsCurrent: { shooting: number; normal: number; moons: number; total: number; }
classe
classe: Classroom
coords
coords: any
displayName
displayName: string
guest
guest: false
id
id: string
isGar
isGar: boolean
level
level: Grade
name
name: string
parentalConsent
parentalConsent: boolean
picture
picture: string
playerId
playerId: number
preview
preview: boolean
selected
selected: boolean
selectedTemp
selectedTemp: boolean
statisticsCurrent
statisticsCurrent: { shooting: number; }
uid
uid: string
import { LmsService } from "../services/lms.service";
import { Classroom } from "./classroom";
import { Grade } from "./exercices";
import { journeyStatus } from "./journey";
export enum Role {
	student = "learner",
	teacher = "trainer"
}
export class Student {
	name: string;
	displayName: string;
	classe: Classroom;
	id: string;
	selected: boolean;
	selectedTemp: boolean;
	parentalConsent: boolean;
	guest: false;
	level: Grade = Grade.cp;
	coords;
	picture: string = null;
	awardsCurrent: { shooting: number; normal: number; moons: number; total: number };
	statisticsCurrent: { shooting: number };
	// idea of persistent awards to propose long time monitoring of their progression to students (+transforming awards to something?)
	// awardsPersistent: { shooting: number, normal: number, moons: number, total: number };
	playerId: number;
	uid: string;
	preview : boolean;
	isGar : boolean;


	// history inside current exercise
	answers: Array<{ award: string; answer: boolean }>;

	constructor(
		id: string,
		classe: Classroom,
		name: string,
		selected: boolean = false,
		selectedTemp = false,
		playerId?: number,
		uid: string = null
	) {
		this.id = id;
		this.classe = classe;
		this.displayName = name;
		this.name = name.split('_')[0];
		this.selected = selected;
		this.selectedTemp = selectedTemp;
		this.awardsCurrent = { shooting: 0, normal: 0, moons: 0, total: 0 };
		// this.awardsPersistent = { shooting: 0, normal: 0, moons: 0, total: 0 };
		// // TODO this.awardsPersistent = from LS ?
		this.playerId = playerId;
		this.uid = uid;
		this.answers = new Array();
	}

}

results matching ""

    No results matching ""