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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user