2017-09-22 12:26:08 +02:00
|
|
|
/**
|
|
|
|
* Created by stefania on 4/26/17.
|
|
|
|
*/
|
2019-03-04 15:32:58 +01:00
|
|
|
import { Topic } from './topic';
|
2017-09-22 12:26:08 +02:00
|
|
|
|
|
|
|
export interface Question {
|
|
|
|
_id: string;
|
|
|
|
question: string;
|
|
|
|
answer: string;
|
2019-03-04 15:32:58 +01:00
|
|
|
date: Date;
|
2017-09-22 12:26:08 +02:00
|
|
|
isActive: boolean;
|
|
|
|
weight: number;
|
|
|
|
hitCount: number;
|
|
|
|
topics: Topic[] | string[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface CheckQuestion {
|
2019-03-04 15:32:58 +01:00
|
|
|
question: Question;
|
|
|
|
checked: boolean;
|
2017-09-22 12:26:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface QuestionFilterOptions {
|
2019-03-04 15:32:58 +01:00
|
|
|
id: string;
|
|
|
|
active: Boolean;
|
|
|
|
text: RegExp;
|
|
|
|
}
|