1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2025-06-20 16:45:16 +00:00

Export all user comments

This commit is contained in:
2020-03-25 18:55:25 +01:00
parent 336923bee7
commit 09b2eed63d
4 changed files with 28 additions and 3 deletions

View File

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