import { IApiRequest } from "../../../models" ; import { Requests } from "../../Requests" ; import { IPost } from "../../../entities/post" ; export class GetPostCallBack { constructor ( public post ) { } } export class PostData implements IApiRequest < GetPostCallBack > { public static getURL : string = Requests . POSTDATA ; public URL : string = PostData . getURL ; constructor ( postHash ) { this . URL = this . URL . replace ( /:hash/ , postHash . toString ( ) ) ; } }