Static Method Summary
| Static Public Methods | ||
| public static | fromIndexJSON(JSON: Object): User Unwraps from serach Index JSON object | |
| public static | Unwraps from an API JSON object. | |
Constructor Summary
| Public Constructor | ||
| public | constructor(answer: Object) Creates an answer from an answer config object | |
Member Summary
| Public Members | ||
| public get | Returns the code | |
| public set | Sets the code | |
| public get |  | |
| public get |  | |
| public get | General endpoint for this type of model | |
| public get |  | |
| public set | Gets if deleted | |
| public get | Gets if deleted | |
| public get | Language of ans | |
| public get | Returns length of answer | |
| public get |  | |
| public get | URL of answer | |
| public get | Returns owner of the answer | |
Method Summary
| Public Methods | ||
| public | Clones and returns a new copy of the answer. | |
| public | Converts to json | |
Static Public Methods
Public Constructors
public constructor(answer: Object) source
Creates an answer from an answer config object
Params:
| Name | Type | Attribute | Description | 
| answer | Object | ||
| answer.id | number | ||
| answer.code | string | 
 | |
| answer.encoding | string | 
 | |
| answer.deleted | boolean | 
 | |
| answer.commentary | string | 
 | |
| answer.length | number | 
 | |
| answer.language | Language | 
 | |
| answer.user | User | ||
| answer.post | Post | 
 | Parent post | 
| answer.dateCreated | Date | 
 | |
| answer.dateModified | Date | 
 | 
 
    
  