Newer
Older
import { Person } from 'app/shared/model/person.model';
import { SearchResultDTO } from 'app/shared/model/search/search-result-dto.model';

Michael Breu
committed
COLLECTION = 'collection',
PROGRAMMING_EXERCISE = 'programming exercise',
EXERCISE = 'exercise',
OTHER = 'other',
}
export enum ILanguages {
GERMAN = 'de',
ENGLISH = 'en',
}
// just a cheap trick, to make enum available to HTML.
// see https://stackoverflow.com/questions/35835984/how-to-use-a-typescript-enum-value-in-an-angular2-ngswitch-statement
// export function IExerciseTypeAware(constructor: Function) {

Michael Breu
committed
// constructor.prototype.IExerciseType = IExerciseType;
// }
// export class IExerciseTypeClass {
// myEnum: typeof IExerciseType;
// myEnumField: IExerciseType;
// }
license: string;
// from metadata (optional)
programmingLanguages: string[];
languages: string[];

Eduard Frankford
committed
publisher: Person[];
contributor: Person[];

Eduard Frankford
committed
requires: string[];

Eduard Frankford
committed
timeRequired: string;
deprecated: boolean;
difficulty: string;
educationLevel: string;
format: Array<string>;
keyword: Array<string>;
// language: Array<string>;
// repositoryURL: string;
// source: Array<string>;

Eduard Frankford
committed
status: string;

Eduard Frankford
committed
type: IExerciseType;

Eduard Frankford
committed
structure: string;

Eduard Frankford
committed
version: string;

Eduard Frankford
committed
metadataVersion: string;
originalResult: SearchResultDTO;

Michael Breu
committed

Michael Breu
committed
views: number;
downloads: number;