File

src/app/models/activity-opensteam.ts

Properties

content
content: string
Type : string
contentOse
contentOse: { id: string | number; type: string; }
Type : { id: string | number; type: string; }
folder
folder: any
Type : any
fork
fork: number
Type : number
id
id: number
Type : number
isAutocorrect
isAutocorrect: boolean
Type : boolean
isFromClassroom
isFromClassroom: boolean
Type : boolean
isRetroAttributed
isRetroAttributed: boolean
Type : boolean
solution
solution: string
Type : string
title
title: string
Type : string
tolerance
tolerance: number
Type : number
type
type: string
Type : string
user
user: UserOpenSteam
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
}

results matching ""

    No results matching ""