This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
exercise.model.ts 735 B
Newer Older
import { Person } from 'app/shared/model/person.model';
import { IExerciseType } from './search/exercise-type.model';
export interface Exercise {
  // from metadata (required)
  title: string;
  license: string;

  // from metadata (optional)
  description: string;
  programmingLanguages: string[];
  languages: string[];
Daniel Rainer's avatar
Daniel Rainer committed
  creators: Person[];
  imageURL: string;
  timeRequired: string;
  deprecated: boolean;
  difficulty: string;
  educationLevel: string;
  format: Array<string>;
  keyword: Array<string>;
  //repositoryURL: string;
  //source: Array<string>;
  status: string;
  //structure: string;
  type: IExerciseType;
  version: string;

  // not in metadata
  rating: number;
  lastUpdate: string;