1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2025-06-21 00:55:17 +00:00

Export the list of movies of the user

This commit is contained in:
2020-03-26 12:13:53 +01:00
parent 7e9e35765e
commit 02739d3973
3 changed files with 13 additions and 2 deletions

View File

@ -9,6 +9,7 @@ import { Post } from "./Post";
import { Comment } from "./Comment";
import { UserLike } from "./UserLike";
import { SurveyResponse } from "./SurveyResponse";
import { Movie } from "./Movies";
export interface AccountExportBuilder {
userID: number;
@ -17,6 +18,7 @@ export interface AccountExportBuilder {
comments: Comment[];
likes: UserLike[];
surveyResponses: SurveyResponse[];
movies: Movie[];
}
export class AccountExport implements AccountExportBuilder {
@ -26,6 +28,7 @@ export class AccountExport implements AccountExportBuilder {
comments: Comment[];
likes: UserLike[];
surveyResponses: SurveyResponse[];
movies: Movie[];
public constructor(info: AccountExportBuilder) {
for (const key in info) {