import { BaseModel } from '../base.model'; import { User } from './user'; /** * Representation of users personal note. * @ignore */ export class PersonalNote extends BaseModel { protected _collectionString: string; public id: number; public user_id: number; public notes: Object; public constructor(input: any) { super(); this._collectionString = 'users/personal-note'; if (input) { this.deserialize(input); } } public getUser(): User { return this.DS.get('users/user', this.user_id); } } BaseModel.registerCollectionElement('users/personal-note', PersonalNote);