react-native-lightspeedsdk
Version:
A react-native interface for using the LightspeedSDK
25 lines (21 loc) • 433 B
JavaScript
;
type ScheduleSettingMap = {
dayOfWeek:number,
fromTime:string,
toTime:string
};
/**
* Represents an immutable Schedule
*/
class ScheduleSetting {
dayOfWeek:number;
fromTime:string;
toTime:string;
constructor(map: ScheduleSettingMap) {
this.dayOfWeek = map.dayOfWeek;
this.fromTime = map.fromTime;
this.toTime = map.toTime;
Object.freeze(this);
}
}
module.exports = ScheduleSetting;