Post
Describes a code-golf post
Static Method Summary
| Static Public Methods | ||
| public static |
fromIndexJSON(JSON: Object): User Unwraps from serach Index JSON object |
|
| public static |
Converts from JSON |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(postId: number, title: string, body: string, isDeleted: boolean, slug: string, owner: User, dateCreated: Date) Pass all parameters as object |
|
Member Summary
| Public Members | ||
| public get |
|
|
| public get |
|
|
| public get |
General endpoint for this type of model |
|
| public get |
|
|
| public get |
|
|
| public set |
|
|
| public get |
|
|
| public get |
|
|
Method Summary
| Public Methods | ||
| public |
async getDescription() Gets the description for this post |
|
| public |
async getSchema() Generates a "QAPost" schema |
|
| public |
Returns the canonical URL |
|
| public |
getURLSync(): string Gets a post URL sync. |
|
| public |
Converts to json |
|
