import { IApiRequest } from "../../../models" ; import { Requests } from "../../Requests" ; import { FullQuestion } from "./models/FullQuestion" ; export class AddQuestion implements IApiRequest < void > { public static getURL : string = Requests . ADDQUESTIONS ; public URL : string = AddQuestion . getURL ; constructor ( public question , public topicHash ) { } } export class EditQuestion implements IApiRequest < void > { public static getURL : string = Requests . EDITQUESTION ; public URL : string = EditQuestion . getURL ; constructor ( public question , originalId ) { this . URL = this . URL . replace ( /:id/ , originalId . toString ( ) ) ; } }