File
|
firstname
|
firstname: string
|
Type : string
|
|
id
|
id: number
|
Type : number
|
|
picture
|
picture: string
|
Type : string
|
|
pseudo
|
pseudo: string
|
Type : string
|
|
surname
|
surname: string
|
Type : string
|
export interface UserOpenSteam {
id: number;
firstname: string;
surname: string;
picture: string;
pseudo: string;
}
export interface ActivityOpenSteam {
id: number;
title: string;
content: string;
contentOse:{id: number | string, type: string};
isFromClassroom: boolean;
user: UserOpenSteam;
fork: number;
type: string;
solution: string;
tolerance: number;
isAutocorrect: boolean;
folder: any;
isRetroAttributed: boolean;
}
export interface RegionalDateOpenSteam {
date: string;
timezone_type: number;
timezone: string;
}
/**
* object builder to link activity to user
*/
export interface LinkedActivityOpenSteam {
activity: ActivityOpenSteam;
students: string[];
classrooms: string[];
dateBegin?: string;
dateEnd?: string;
evaluation: boolean;
autocorrection: boolean;
introduction?: string;
isFromClassroom: boolean;
retroAttribution: boolean;
ref?: string;
}
/**
* _my_classes[]->students[]->activities[] element
*/
export interface ActivityLinkUserOpenSteam {
id: number;
user: UserOpenSteam;
activity: ActivityOpenSteam;
course?: string;
/**
* 4 : non noté, 0->3 a revoir -> tres bien
*/
note: number;
tries: number;
introduction: string;
commentary: string;
dateBegin: RegionalDateOpenSteam;
dateEnd: RegionalDateOpenSteam;
dateSend: RegionalDateOpenSteam;
timePassed: number;
coefficient: number;
/**
* 0 : init, 1 : evaluated, 2 corrected = activity done
*/
correction?: Number;
autocorrection: boolean;
evaluation: boolean;
project?: string;
reference: string;
url: string;
response?: string;
classroomLink? : string
}