"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RoomSort = void 0;
var RoomSort;
(function (RoomSort) {
    RoomSort["PriceLow"] = "Lowest Price";
    RoomSort["PriceHigh"] = "Highest Price";
    RoomSort["Recommended"] = "Recommended";
})(RoomSort || (exports.RoomSort = RoomSort = {}));
class RoomSortProvider {
}
// TODO refactor this to use static val instead of request one
RoomSortProvider.getSortByFunction = (sortBy) => {
    switch (sortBy) {
        case RoomSort.PriceHigh:
            return (a, b) => {
                return b.getPriceSortValue() - a.getPriceSortValue();
            };
        case RoomSort.PriceLow:
            return (a, b) => {
                return a.getPriceSortValue() - b.getPriceSortValue();
            };
        case RoomSort.Recommended:
            return (a, b) => {
                return b.getRecommendedSortValue() - a.getRecommendedSortValue();
            };
        default:
            return () => 0;
    }
};
exports.default = RoomSortProvider;
//# sourceMappingURL=RoomSortProvider.js.map