import { IApiRequest } from "../../../models" ; import { Requests } from "../../Requests" ; import { IEdit } from "../../../entities/edit" ; export class GetEditContentCallback { constructor ( public edits ) { } } export class EditContent implements IApiRequest < GetEditContentCallback > { public static getURL : string = Requests . EDITCONTENT ; public URL : string = EditContent . getURL ; public headers : any = { } ; public static readonly includeLastEditHeader = "X-Include-Last-Edit" ; constructor ( postHash , includeLastEdit ) { this . URL = this . URL . replace ( /:hash/ , postHash . toString ( ) ) ; this . headers [ EditContent . includeLastEditHeader ] = ! includeLastEdit ; } }