1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2025-06-20 08:35:17 +00:00

Export the list of posts of the user

This commit is contained in:
2020-03-25 18:44:51 +01:00
parent 4004d5fd77
commit 336923bee7
4 changed files with 34 additions and 2 deletions

View File

@ -5,15 +5,18 @@
*/
import { User } from "./User";
import { Post } from "./Post";
export interface AccountExportBuilder {
userID: number;
userInfo: User;
postsList: Post[];
}
export class AccountExport implements AccountExportBuilder {
userID: number;
userInfo: User;
postsList: Post[];
public constructor(info: AccountExportBuilder) {
for (const key in info) {