mirror of
https://github.com/danbulant/ester_os
synced 2026-05-19 04:08:44 +00:00
Sample class for user
This commit is contained in:
parent
8dd83159b5
commit
ebeea25c3f
1 changed files with 25 additions and 0 deletions
25
client/src/managers/user.ts
Normal file
25
client/src/managers/user.ts
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import UserDef from '../defs/user';
|
||||
import UserSettings from '../defs/userSettings';
|
||||
|
||||
class User implements UserDef {
|
||||
fetched: boolean = false;
|
||||
sysName: string;
|
||||
uuid: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
|
||||
avatar: URL;
|
||||
backgrounds: URL[];
|
||||
|
||||
async fetchData(){
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
settings: UserSettings;
|
||||
async fetchSettings(){
|
||||
return this.settings;
|
||||
};
|
||||
}
|
||||
|
||||
export default User;
|
||||
Loading…
Reference in a new issue