import { IApiRequest } from "../../../models" ; import { Requests } from "../../Requests" ; export enum PostSettingsEditType { HIDE , WIP } export class PostSettings implements IApiRequest < void > { public static getURL : string = Requests . POSTSETTINGS ; public URL : string = PostSettings . getURL ; constructor ( postHash , editType ) { this . URL = this . URL . replace ( /:hash/ , postHash . toString ( ) ) ; this . URL = this . URL . replace ( /:action/ , PostSettingsEditType [ editType ] . toLowerCase ( ) ) ; } }