import { OptionalNullable } from '@humand-packages/common';
import { TimeTrackingCategorizedHourStatus } from '../../../infrastructure/constants/timeTracking/categorizedHourStatus';

export class RecalculatedCategorizedHour {
    constructor(props: OptionalNullable<RecalculatedCategorizedHour>) {
        this.categorizedHourId = props.categorizedHourId;
        this.userId = props.userId;
        this.dateString = props.dateString;
        this.status = props.status;
        this.hourCategory = props.hourCategory;
        this.previousHours = props.previousHours;
        this.newHours = props.newHours;
    }

    readonly categorizedHourId: string;
    readonly userId: number;
    readonly dateString: string;
    readonly status: TimeTrackingCategorizedHourStatus;
    readonly hourCategory: { id: number; name: string };
    readonly previousHours: number;
    readonly newHours: number;
}
