import { IApiRequest } from "../../../models" ; import { Requests } from "../../Requests" ; export enum SubmitPostResponse { SUCCESS , TITLEALREADYINUSE , INVALIDINPUT , ALREADYHASINDEX } export class CreatePostCallback { constructor ( public response , public postHash ? ) { } } export class SubmitPost implements IApiRequest < CreatePostCallback > { public static getURL : string = Requests . SUBMITPOST ; public URL : string = SubmitPost . getURL ; constructor ( public postTitle , public postTopicHash , public isIndex , public isExample ) { } }