import { IApiRequest } from "../../../models" ; import { Requests } from "../../Requests" ; import { FullQuestionWithId } from "./models/FullQuestion" ; import { PracticeQuestion } from "./models/PracticeQuestion" ; export class GetFullQuestionCallback { constructor ( public question ) { } } export class GetFullQuestion implements IApiRequest < GetFullQuestionCallback > { public static getURL : string = Requests . FULLQUESTION ; public URL : string = GetFullQuestion . getURL ; constructor ( questionId ) { this . URL = this . URL . replace ( /:id/ , questionId . toString ( ) ) ; } see IApiRequest . response response ? : GetFullQuestionCallback ; } export class GetQuestionCallback { constructor ( public question ) { } } export class GetQuestion implements IApiRequest < GetQuestionCallback > { public static getURL : string = Requests . QUESTION ; public URL : string = GetQuestion . getURL ; constructor ( questionId ) { this . URL = this . URL . replace ( /:id/ , questionId . toString ( ) ) ; } see IApiRequest . response response ? : GetQuestionCallback ; }