src/app/models/activity-opensteam.ts
_my_classes[]->students[]->activities[] element
| activity |
activity: |
Type : ActivityOpenSteam
|
| autocorrection |
autocorrection: |
Type : boolean
|
| classroomLink |
classroomLink: |
Type : string
|
| coefficient |
coefficient: |
Type : number
|
| commentary |
commentary: |
Type : string
|
| correction |
correction: |
Type : Number
|
|
0 : init, 1 : evaluated, 2 corrected = activity done |
| course |
course: |
Type : string
|
| dateBegin |
dateBegin: |
Type : RegionalDateOpenSteam
|
| dateEnd |
dateEnd: |
Type : RegionalDateOpenSteam
|
| dateSend |
dateSend: |
Type : RegionalDateOpenSteam
|
| evaluation |
evaluation: |
Type : boolean
|
| id |
id: |
Type : number
|
| introduction |
introduction: |
Type : string
|
| note |
note: |
Type : number
|
|
4 : non noté, 0->3 a revoir -> tres bien |
| project |
project: |
Type : string
|
| reference |
reference: |
Type : string
|
| response |
response: |
Type : string
|
| timePassed |
timePassed: |
Type : number
|
| tries |
tries: |
Type : number
|
| url |
url: |
Type : string
|
| user |
user: |
Type : UserOpenSteam
|
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
}