mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-20 16:45:16 +00:00
Ready to implement account export
This commit is contained in:
20
src/entities/AccountExport.ts
Normal file
20
src/entities/AccountExport.ts
Normal file
@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Account data export
|
||||
*
|
||||
* @author Pierre Hubert
|
||||
*/
|
||||
|
||||
export interface AccountExportBuilder {
|
||||
userID: number;
|
||||
}
|
||||
|
||||
export class AccountExport implements AccountExportBuilder {
|
||||
userID: number;
|
||||
|
||||
public constructor(info: AccountExportBuilder) {
|
||||
for (const key in info) {
|
||||
if (info.hasOwnProperty(key))
|
||||
this[key] = info[key];
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user