Sample class for user

This commit is contained in:
danbulant 2020-02-15 18:04:54 +01:00
parent 8dd83159b5
commit ebeea25c3f

View 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;