2018-02-16 08:45:18 +01:00
|
|
|
/**
|
|
|
|
* Created by stefania on 4/26/17.
|
|
|
|
*/
|
2018-10-05 17:00:54 +02:00
|
|
|
import { Topic } from './topic';
|
2018-02-16 08:45:18 +01:00
|
|
|
|
|
|
|
export interface Question {
|
2018-10-05 17:00:54 +02:00
|
|
|
_id: string;
|
|
|
|
question: string;
|
|
|
|
answer: string;
|
|
|
|
date: Date;
|
|
|
|
isActive: boolean;
|
|
|
|
weight: number;
|
|
|
|
hitCount: number;
|
|
|
|
topics: Topic[] | string[];
|
2018-02-16 08:45:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface CheckQuestion {
|
2018-10-05 17:00:54 +02:00
|
|
|
question: Question;
|
|
|
|
checked: boolean;
|
2018-02-16 08:45:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface QuestionFilterOptions {
|
2018-10-05 17:00:54 +02:00
|
|
|
id: string;
|
|
|
|
active: Boolean;
|
|
|
|
text: RegExp;
|
|
|
|
}
|