mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-15 12:55:14 +00:00
38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
import { FuseUtils } from '../../../../core/fuseUtils';
|
|
|
|
export class Card
|
|
{
|
|
id: string;
|
|
name: string;
|
|
description: string;
|
|
idAttachmentCover: string;
|
|
idMembers: string[];
|
|
idLabels: string[];
|
|
attachments: any[];
|
|
subscribed: boolean;
|
|
checklists: any[];
|
|
checkItems: number;
|
|
checkItemsChecked: number;
|
|
comments: any[];
|
|
activities: any[];
|
|
due: string;
|
|
|
|
constructor(card)
|
|
{
|
|
this.id = card.id || FuseUtils.generateGUID();
|
|
this.name = card.name || '';
|
|
this.description = card.description || '';
|
|
this.idAttachmentCover = card.idAttachmentCover || '';
|
|
this.idMembers = card.idMembers || [];
|
|
this.idLabels = card.idLabels || [];
|
|
this.attachments = card.attachments || [];
|
|
this.subscribed = card.subscribed || true;
|
|
this.checklists = card.checklists || [];
|
|
this.checkItems = card.checkItems || 0;
|
|
this.checkItemsChecked = card.checkItemsChecked || 0;
|
|
this.comments = card.comments || [];
|
|
this.activities = card.activities || [];
|
|
this.due = card.due || '';
|
|
}
|
|
}
|