2018-07-23 16:42:17 +02:00
|
|
|
import { BaseModel } from '../base.model';
|
2018-09-04 11:33:28 +02:00
|
|
|
import { User } from './user';
|
2018-07-04 17:51:31 +02:00
|
|
|
|
2018-07-12 14:11:31 +02:00
|
|
|
/**
|
|
|
|
* Representation of users personal note.
|
|
|
|
* @ignore
|
|
|
|
*/
|
2018-07-04 17:51:31 +02:00
|
|
|
export class PersonalNote extends BaseModel {
|
2018-08-29 13:21:25 +02:00
|
|
|
public id: number;
|
|
|
|
public user_id: number;
|
|
|
|
public notes: Object;
|
2018-07-04 17:51:31 +02:00
|
|
|
|
2018-09-04 11:33:28 +02:00
|
|
|
public constructor(input: any) {
|
2018-09-10 11:15:12 +02:00
|
|
|
super('users/personal-note', input);
|
2018-07-04 17:51:31 +02:00
|
|
|
}
|
|
|
|
|
2018-09-13 07:57:38 +02:00
|
|
|
public toString(): string {
|
|
|
|
return this.notes.toString();
|
|
|
|
}
|
2018-07-04 17:51:31 +02:00
|
|
|
}
|
2018-08-24 13:05:03 +02:00
|
|
|
|
|
|
|
BaseModel.registerCollectionElement('users/personal-note', PersonalNote);
|