You've already forked openaccounting-web
mirror of
https://github.com/openaccounting/oa-web.git
synced 2025-12-14 01:30:45 +13:00
initial commit
This commit is contained in:
22
src/app/shared/user.ts
Normal file
22
src/app/shared/user.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
export class User {
|
||||
id: string;
|
||||
inserted: Date;
|
||||
updated: Date;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
email: string;
|
||||
password: string;
|
||||
agreeToTerms: boolean;
|
||||
emailVerified: boolean;
|
||||
constructor(options: any = {}) {
|
||||
this.id = options.id || this.id;
|
||||
this.inserted = options.inserted ? new Date(options.inserted) : null;
|
||||
this.updated = options.updated ? new Date(options.updated) : null;
|
||||
this.firstName = options.firstName || this.firstName;
|
||||
this.lastName = options.lastName || this.lastName;
|
||||
this.email = options.email || this.email;
|
||||
this.password = options.password || this.password;
|
||||
this.agreeToTerms = options.agreeToTerms || false;
|
||||
this.emailVerified = options.emailVerified || this.emailVerified;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user