import { Time } from "@angular/common";

export class Session {
    sessionId: number;
    providerId: number;
    fromDate: Date;
    toDate: Date;
    active: boolean;
    createdBy: number;
    modifiedBy: number;
    createdDate: Date;
    totalItems: number;
    modifiedDate: Date;
    createdByName: string;
    modifiedByName: string;
    slots: Array<SlotsDetail>;
    startTime?: Time;
    endTime?: Time;
    startTimeString: string;
    endTimeString: string;
    sessionTypeName: string;
    sessionTypeId: number;
    doctorName: string;
    date?: Date;
    availabilityCount: number;
    locationName: string;
    locationId: number;
    constructor() {
        this.slots = new Array<SlotsDetail>();
    }
}

export class SlotsDetail {
    sessionTypeId: number;
    fromTime: number;
    toTime: number;
    availabilityCount: number;
}