Skip to content
Snippets Groups Projects
answer.dao.ts 690 B
import {Optional} from '@angular/core';

export class AnswerDao {

  answerId: String;
  answerText: String;
  username: String;
  paperId: String;
  questionId: String;
  submitted: Boolean;
  submissionDate: String;
  draft: String;

  constructor(answerId: String, answerText: String, username: String,
              paperId: String, questionId: String, submitted: Boolean, submissionDate: String, @Optional() draft: String) {
    this.answerId = answerId;
    this.answerText = answerText;
    this.username = username;
    this.paperId = paperId;
    this.questionId = questionId;
    this.submitted = submitted;
    this.submissionDate = submissionDate;
    this.draft = draft;
  }
}