Files
Showy/frontend/src/app/shared/models/collection.model.ts
T

35 lines
730 B
TypeScript

import { Media } from './media.model';
import { CollectionEntry } from './collection-entry.model';
import { CollectionEntryDTO } from './dtos/collection-entry-dto.model';
export interface Collection {
id: number;
tmdbId: number;
imdbId: number;
tvdbId: number;
name: string;
description: string;
isUserCollection: boolean;
userRating: number;
medias: Media[];
posterPath: string;
backdropPath: string;
isLocal: boolean;
collectionEntries: CollectionEntry[];
entries: CollectionEntryDTO[];
changed: boolean;
isChecked: boolean;
// * Processed fields
mediasCount: number;
entriesCount: number;
selectedPoster: string;
selectedBackdrop: string;
createdAt: Date;
updatedAt: Date;
}