export class CategoryType {
    code: string;
    name: string;
}

export class CategorySettingType {
    code: string;
    name: string;
}


export class Category {
    id: number = null;
    type: CategoryType;
    name: string;
    description: string;
    icon: string;

    constructor(type: CategoryType, name: string, description: string, icon: string,) {
        this.type = type;
        this.name = name;
        this.description = description;
        this.icon = icon;
    }

    // Метод, который возвращает краткое описание
    getSummary(): string {
        return `${this.name}: ${this.description}`;
    }
}



export class CategorySetting {
    type: CategorySettingType
    settingValue: number
    value: number
}
