argos/dmp-frontend/src/app/models/help-content/question.ts

27 lines
421 B
TypeScript
Raw Normal View History

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;
}